|
|
@ -268,7 +268,7 @@ func objectReconciled(kube client.Client, objKey client.ObjectKey, clientObject
|
|
|
|
func hasRevision(kind string, obj map[string]interface{}, expectedRev string) (bool, error) {
|
|
|
|
func hasRevision(kind string, obj map[string]interface{}, expectedRev string) (bool, error) {
|
|
|
|
var rev string
|
|
|
|
var rev string
|
|
|
|
switch kind {
|
|
|
|
switch kind {
|
|
|
|
case sourcev1.GitRepositoryKind, sourcev1b2.OCIRepositoryKind, sourcev1b2.BucketKind, sourcev1b2.HelmChartKind:
|
|
|
|
case sourcev1.GitRepositoryKind, sourcev1b2.OCIRepositoryKind, sourcev1b2.BucketKind, sourcev1.HelmChartKind:
|
|
|
|
rev, _, _ = unstructured.NestedString(obj, "status", "artifact", "revision")
|
|
|
|
rev, _, _ = unstructured.NestedString(obj, "status", "artifact", "revision")
|
|
|
|
case kustomizev1.KustomizationKind:
|
|
|
|
case kustomizev1.KustomizationKind:
|
|
|
|
rev, _, _ = unstructured.NestedString(obj, "status", "lastAttemptedRevision")
|
|
|
|
rev, _, _ = unstructured.NestedString(obj, "status", "lastAttemptedRevision")
|
|
|
|