Rename apply succeeded reason
This commit is contained in:
parent
3d7687e216
commit
40ff1a7038
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -348,7 +348,7 @@ func (r *KustomizationReconciler) reconcile(
|
|||
kustomization,
|
||||
snapshot,
|
||||
source.GetArtifact().Revision,
|
||||
kustomizev1.ApplySucceedReason,
|
||||
kustomizev1.ApplySucceededReason,
|
||||
"Applied revision: "+source.GetArtifact().Revision,
|
||||
), nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ metadata:
|
|||
`,
|
||||
},
|
||||
},
|
||||
waitForReason: kustomizev1.ApplySucceedReason,
|
||||
waitForReason: kustomizev1.ApplySucceededReason,
|
||||
expectStatus: corev1.ConditionTrue,
|
||||
expectRevision: "branch/commit1",
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue