Skip to content

Commit

Permalink
config.EnableFinalizers is a bool pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
FxKu authored Oct 14, 2023
1 parent a30eae6 commit fc97180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (c *Cluster) Create() (err error) {
}()

c.KubeClient.SetPostgresCRDStatus(c.clusterName(), acidv1.ClusterStatusCreating)
if c.OpConfig.EnableFinalizers {
if c.OpConfig.EnableFinalizers != nil && *c.OpConfig.EnableFinalizers {
c.logger.Info("Adding finalizer.")
if err = c.AddFinalizer(); err != nil {
return fmt.Errorf("could not add Finalizer: %v", err)
Expand Down

0 comments on commit fc97180

Please sign in to comment.