Skip to content

Commit

Permalink
Setting status message fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
akgalwas committed Oct 24, 2023
1 parent 732f400 commit b780cd7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 9 additions & 0 deletions api/v1/gardenercluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,17 @@ func getMessage(reason ConditionReason) string {
switch reason {
case ConditionReasonKubeconfigSecretCreated:
return "Secret created successfully."
case ConditionReasonKubeconfigSecretRotated:
return "Secret rotated successfully."
case ConditionReasonFailedToCreateSecret:
return "Failed to create secret."
case ConditionReasonFailedToUpdateSecret:
return "Failed to rotate secret."
case ConditionReasonFailedToGetSecret:
return "Failed to get secret."
case ConditionReasonFailedToGetKubeconfig:
return "Failed to get kubeconfig."

default:
return "Unknown condition"
}
Expand Down
1 change: 0 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ func main() {

setupLog.Info("Starting Manager", "kubeconfigExpirationTime", expirationTime, "kubeconfigRotationPeriod", rotationPeriod)

setupLog.Info("starting manager")
if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil {
setupLog.Error(err, "problem running manager")
os.Exit(1)
Expand Down

0 comments on commit b780cd7

Please sign in to comment.