Skip to content

Commit 725e3cb

Browse files
fixing reason names. updating condition message
Signed-off-by: Chaitanya Kolluru <[email protected]>
1 parent 95c6dcf commit 725e3cb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

api/v1alpha1/condition_consts.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ const (
4242
// ClusterSelectionFailedReason indicates that the HelmChartProxy controller failed to select the workload Clusters.
4343
ClusterSelectionFailedReason = "ClusterSelectionFailed"
4444

45-
// HelmReleaseProxiesRolloutNotReady indicates that the initial rollout
45+
// HelmReleaseProxiesRolloutNotCompleteReason indicates that the initial rollout
4646
// of HelmReleaseProxies has not been completed.
47-
HelmReleaseProxiesRolloutNotReady = "HelmReleaseProxiesRolloutNotReady"
47+
HelmReleaseProxiesRolloutNotCompleteReason = "HelmReleaseProxiesRolloutNotComplete"
4848

49-
// HelmReleaseProxiesRolloutUndefined indicates that HelmChartProxy doesn't
49+
// HelmReleaseProxiesRolloutUndefinedReason indicates that HelmChartProxy doesn't
5050
// use Rollout Step Size to reconcile HelmReleaseProxies.
51-
HelmReleaseProxiesRolloutUndefined = "HelmReleaseProxiesRolloutUndefined"
51+
HelmReleaseProxiesRolloutUndefinedReason = "HelmReleaseProxiesRolloutUndefined"
5252

5353
// HelmReleaseProxiesReadyCondition indicates that the HelmReleaseProxies are ready, meaning that the Helm installation, upgrade
5454
// or deletion is complete.

controllers/helmchartproxy/helmchartproxy_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func (r *HelmChartProxyReconciler) reconcileNormal(ctx context.Context, helmChar
218218
conditions.MarkFalse(
219219
helmChartProxy,
220220
addonsv1alpha1.HelmReleaseProxiesRolloutCompletedCondition,
221-
addonsv1alpha1.HelmReleaseProxiesRolloutNotReady,
221+
addonsv1alpha1.HelmReleaseProxiesRolloutNotCompleteReason,
222222
clusterv1.ConditionSeverityInfo,
223223
"%d Helm release proxies not yet rolled out",
224224
len(clusters)-len(helmReleaseProxies),
@@ -297,9 +297,9 @@ func (r *HelmChartProxyReconciler) reconcileNormal(ctx context.Context, helmChar
297297
conditions.MarkTrueWithNegativePolarity(
298298
helmChartProxy,
299299
addonsv1alpha1.HelmReleaseProxiesRolloutCompletedCondition,
300-
addonsv1alpha1.HelmReleaseProxiesRolloutUndefined,
300+
addonsv1alpha1.HelmReleaseProxiesRolloutUndefinedReason,
301301
clusterv1.ConditionSeverityInfo,
302-
"HelmChartProxy does not use Rollout Step Size",
302+
"HelmChartProxy does not use rollout step",
303303
)
304304
}
305305

0 commit comments

Comments
 (0)