Skip to content

Commit

Permalink
Edit pause label check
Browse files Browse the repository at this point in the history
  • Loading branch information
nolancon committed Nov 9, 2023
1 parent 79ae192 commit 9fd5011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/bucket/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (c *external) Update(ctx context.Context, mg resource.Managed) (managed.Ext
if !v1alpha1.IsHealthCheckBucket(bucket) &&
allBucketsReady &&
(bucket.Spec.AutoPause || c.autoPauseBucket) &&
bucket.Labels[meta.AnnotationKeyReconciliationPaused] == "" {
bucket.Labels[meta.AnnotationKeyReconciliationPaused] != "true" {
c.log.Info("Auto pausing bucket", "bucket_name", bucket.Name)

if bucket.ObjectMeta.Labels == nil {
Expand Down

0 comments on commit 9fd5011

Please sign in to comment.