Skip to content

Commit

Permalink
Mark DataSecretAvailable condition to true when setting dataSecretName (
Browse files Browse the repository at this point in the history
  • Loading branch information
mkmik authored Dec 13, 2022
1 parent 8ed5dec commit 5feaa86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrap/controllers/kthreesconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (r *KThreesConfigReconciler) Reconcile(ctx context.Context, req ctrl.Reques
case configOwner.DataSecretName() != nil && (!config.Status.Ready || config.Status.DataSecretName == nil):
config.Status.Ready = true
config.Status.DataSecretName = configOwner.DataSecretName()
//conditions.MarkTrue(config, bootstrapv1.DataSecretAvailableCondition)
conditions.MarkTrue(config, bootstrapv1.DataSecretAvailableCondition)
return ctrl.Result{}, nil
// Status is ready means a config has been generated.
case config.Status.Ready:
Expand Down Expand Up @@ -594,7 +594,7 @@ func (r *KThreesConfigReconciler) storeBootstrapData(ctx context.Context, scope

scope.Config.Status.DataSecretName = pointer.StringPtr(secret.Name)
scope.Config.Status.Ready = true
// conditions.MarkTrue(scope.Config, bootstrapv1.DataSecretAvailableCondition)
conditions.MarkTrue(scope.Config, bootstrapv1.DataSecretAvailableCondition)
return nil
}

Expand Down

0 comments on commit 5feaa86

Please sign in to comment.