Rename apply succeeded reason

This commit is contained in:
stefanprodan 2020-07-30 14:48:29 +03:00
parent 3d7687e216
commit 40ff1a7038
4 changed files with 7 additions and 7 deletions

View File

@ -54,8 +54,8 @@ const (
)
const (
// ApplySucceedReason represents the fact that the kustomization apply succeed.
ApplySucceedReason string = "ApplySucceed"
// ApplySucceededReason represents the fact that the kustomization apply succeeded.
ApplySucceededReason string = "ApplySucceeded"
// ApplyFailedReason represents the fact that the kustomization apply failed.
ApplyFailedReason string = "ApplyFailed"

View File

@ -348,7 +348,7 @@ func (r *KustomizationReconciler) reconcile(
kustomization,
snapshot,
source.GetArtifact().Revision,
kustomizev1.ApplySucceedReason,
kustomizev1.ApplySucceededReason,
"Applied revision: "+source.GetArtifact().Revision,
), nil
}

View File

@ -177,7 +177,7 @@ metadata:
`,
},
},
waitForReason: kustomizev1.ApplySucceedReason,
waitForReason: kustomizev1.ApplySucceededReason,
expectStatus: corev1.ConditionTrue,
expectRevision: "branch/commit1",
}),

View File

@ -100,8 +100,8 @@ Status condition reasons:
```go
const (
// ApplySucceedReason represents the fact that the kustomization apply succeed.
ApplySucceedReason string = "ApplySucceed"
// ApplySucceededReason represents the fact that the kustomization apply succeeded.
ApplySucceededReason string = "ApplySucceeded"
// ApplyFailedReason represents the fact that the kustomization apply failed.
ApplyFailedReason string = "ApplyFailed"
@ -402,7 +402,7 @@ status:
conditions:
- lastTransitionTime: "2020-04-23T19:28:48Z"
message: kustomization was successfully applied
reason: ApplySucceed
reason: ApplySucceeded
status: "True"
type: Ready
lastAppliedRevision: master/a1afe267b54f38b46b487f6e938a6fd508278c07