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 ( const (
// ApplySucceedReason represents the fact that the kustomization apply succeed. // ApplySucceededReason represents the fact that the kustomization apply succeeded.
ApplySucceedReason string = "ApplySucceed" ApplySucceededReason string = "ApplySucceeded"
// ApplyFailedReason represents the fact that the kustomization apply failed. // ApplyFailedReason represents the fact that the kustomization apply failed.
ApplyFailedReason string = "ApplyFailed" ApplyFailedReason string = "ApplyFailed"

View File

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

View File

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

View File

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