Rename apply succeeded reason
This commit is contained in:
parent
3d7687e216
commit
40ff1a7038
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -177,7 +177,7 @@ metadata:
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
waitForReason: kustomizev1.ApplySucceedReason,
|
waitForReason: kustomizev1.ApplySucceededReason,
|
||||||
expectStatus: corev1.ConditionTrue,
|
expectStatus: corev1.ConditionTrue,
|
||||||
expectRevision: "branch/commit1",
|
expectRevision: "branch/commit1",
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue