diff --git a/hack/charts/cluster-api-operator/templates/addon.yaml b/hack/charts/cluster-api-operator/templates/addon.yaml index a4acb740c..9095368cd 100644 --- a/hack/charts/cluster-api-operator/templates/addon.yaml +++ b/hack/charts/cluster-api-operator/templates/addon.yaml @@ -28,6 +28,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: {{ $addonNamespace }} --- apiVersion: operator.cluster.x-k8s.io/v1alpha2 @@ -38,6 +39,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" {{- if or $addonVersion $.Values.secretName }} spec: {{- end}} diff --git a/hack/charts/cluster-api-operator/templates/core.yaml b/hack/charts/cluster-api-operator/templates/core.yaml index 21e0dc7ca..013a2ef0b 100644 --- a/hack/charts/cluster-api-operator/templates/core.yaml +++ b/hack/charts/cluster-api-operator/templates/core.yaml @@ -37,6 +37,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" {{- if or $coreVersion $.Values.configSecret.name }} spec: {{- end}} diff --git a/hack/charts/cluster-api-operator/templates/infra-conditions.yaml b/hack/charts/cluster-api-operator/templates/infra-conditions.yaml index 2d1e8ccae..3c3a8a753 100644 --- a/hack/charts/cluster-api-operator/templates/infra-conditions.yaml +++ b/hack/charts/cluster-api-operator/templates/infra-conditions.yaml @@ -9,6 +9,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: capi-kubeadm-bootstrap-system --- apiVersion: operator.cluster.x-k8s.io/v1alpha2 @@ -19,6 +20,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" {{- with .Values.configSecret }} spec: configSecret: @@ -37,6 +39,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: capi-kubeadm-control-plane-system --- apiVersion: operator.cluster.x-k8s.io/v1alpha2 @@ -47,6 +50,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" {{- with .Values.configSecret }} spec: configSecret: diff --git a/hack/charts/cluster-api-operator/templates/infra.yaml b/hack/charts/cluster-api-operator/templates/infra.yaml index 6fdf31703..2a4488c20 100644 --- a/hack/charts/cluster-api-operator/templates/infra.yaml +++ b/hack/charts/cluster-api-operator/templates/infra.yaml @@ -28,6 +28,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: {{ $infrastructureNamespace }} --- apiVersion: operator.cluster.x-k8s.io/v1alpha2 @@ -38,6 +39,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" {{- if or $infrastructureVersion $.Values.configSecret.name $.Values.manager }} spec: {{- end }} diff --git a/test/e2e/resources/all-providers-custom-ns-versions.yaml b/test/e2e/resources/all-providers-custom-ns-versions.yaml index a9efdbb59..cab28eb1e 100644 --- a/test/e2e/resources/all-providers-custom-ns-versions.yaml +++ b/test/e2e/resources/all-providers-custom-ns-versions.yaml @@ -6,6 +6,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: helm-custom-ns --- # Source: cluster-api-operator/templates/bootstrap.yaml @@ -42,6 +43,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: capd-custom-ns --- # Source: cluster-api-operator/templates/addon.yaml @@ -53,6 +55,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: version: v0.1.0-alpha.9 --- @@ -95,6 +98,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: version: v1.5.4 configSecret: @@ -110,6 +114,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: version: v1.5.4 configSecret: diff --git a/test/e2e/resources/all-providers-custom-versions.yaml b/test/e2e/resources/all-providers-custom-versions.yaml index a9e26bf60..4f791637c 100644 --- a/test/e2e/resources/all-providers-custom-versions.yaml +++ b/test/e2e/resources/all-providers-custom-versions.yaml @@ -6,6 +6,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: helm-addon-system --- # Source: cluster-api-operator/templates/bootstrap.yaml @@ -42,6 +43,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: docker-infrastructure-system --- # Source: cluster-api-operator/templates/addon.yaml @@ -53,6 +55,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: version: v0.1.0-alpha.9 --- @@ -95,6 +98,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: version: v1.5.4 configSecret: @@ -110,6 +114,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: version: v1.5.4 configSecret: diff --git a/test/e2e/resources/all-providers-latest-versions.yaml b/test/e2e/resources/all-providers-latest-versions.yaml index 0adc7a776..80b59ec56 100644 --- a/test/e2e/resources/all-providers-latest-versions.yaml +++ b/test/e2e/resources/all-providers-latest-versions.yaml @@ -6,6 +6,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: helm-addon-system --- # Source: cluster-api-operator/templates/bootstrap.yaml @@ -42,6 +43,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: docker-infrastructure-system --- # Source: cluster-api-operator/templates/addon.yaml @@ -53,6 +55,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" --- # Source: cluster-api-operator/templates/bootstrap.yaml apiVersion: operator.cluster.x-k8s.io/v1alpha2 @@ -91,6 +94,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: configSecret: name: test-secret-name @@ -105,6 +109,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: configSecret: name: test-secret-name diff --git a/test/e2e/resources/feature-gates.yaml b/test/e2e/resources/feature-gates.yaml index 2bc1baa8a..e356795d1 100644 --- a/test/e2e/resources/feature-gates.yaml +++ b/test/e2e/resources/feature-gates.yaml @@ -6,6 +6,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: helm-addon-system --- # Source: cluster-api-operator/templates/core.yaml @@ -24,6 +25,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: capi-kubeadm-bootstrap-system --- # Source: cluster-api-operator/templates/infra-conditions.yaml @@ -33,6 +35,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: capi-kubeadm-control-plane-system --- # Source: cluster-api-operator/templates/infra.yaml @@ -42,6 +45,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: aws-infrastructure-system --- # Source: cluster-api-operator/templates/addon.yaml @@ -53,6 +57,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" --- # Source: cluster-api-operator/templates/infra-conditions.yaml apiVersion: operator.cluster.x-k8s.io/v1alpha2 @@ -63,6 +68,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: configSecret: name: aws-variables @@ -77,6 +83,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: configSecret: name: aws-variables @@ -91,6 +98,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: version: v1.6.2 manager: @@ -110,6 +118,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: version: v2.4.0 manager: diff --git a/test/e2e/resources/multiple-infra-custom-ns-versions.yaml b/test/e2e/resources/multiple-infra-custom-ns-versions.yaml index 48ff3c22f..e0ba973ef 100644 --- a/test/e2e/resources/multiple-infra-custom-ns-versions.yaml +++ b/test/e2e/resources/multiple-infra-custom-ns-versions.yaml @@ -15,6 +15,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: capi-kubeadm-bootstrap-system --- # Source: cluster-api-operator/templates/infra-conditions.yaml @@ -24,6 +25,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: capi-kubeadm-control-plane-system --- # Source: cluster-api-operator/templates/infra.yaml @@ -33,6 +35,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: capd-custom-ns --- # Source: cluster-api-operator/templates/infra.yaml @@ -42,6 +45,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: capz-custom-ns --- # Source: cluster-api-operator/templates/infra-conditions.yaml @@ -53,6 +57,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: configSecret: name: test-secret-name @@ -67,6 +72,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: configSecret: name: test-secret-name @@ -95,6 +101,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: version: v1.5.4 configSecret: @@ -110,6 +117,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: version: v1.10.0 configSecret: diff --git a/test/e2e/resources/only-addon.yaml b/test/e2e/resources/only-addon.yaml index 4f444e534..e00af6526 100644 --- a/test/e2e/resources/only-addon.yaml +++ b/test/e2e/resources/only-addon.yaml @@ -6,6 +6,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: helm-addon-system --- # Source: cluster-api-operator/templates/core-conditions.yaml @@ -26,6 +27,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" --- # Source: cluster-api-operator/templates/core-conditions.yaml apiVersion: operator.cluster.x-k8s.io/v1alpha2 diff --git a/test/e2e/resources/only-infra-and-addon.yaml b/test/e2e/resources/only-infra-and-addon.yaml index d4d532144..374fa083f 100644 --- a/test/e2e/resources/only-infra-and-addon.yaml +++ b/test/e2e/resources/only-infra-and-addon.yaml @@ -6,6 +6,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: helm-addon-system --- # Source: cluster-api-operator/templates/core-conditions.yaml @@ -24,6 +25,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: capi-kubeadm-bootstrap-system --- # Source: cluster-api-operator/templates/infra-conditions.yaml @@ -33,6 +35,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: capi-kubeadm-control-plane-system --- # Source: cluster-api-operator/templates/infra.yaml @@ -42,6 +45,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: docker-infrastructure-system --- # Source: cluster-api-operator/templates/addon.yaml @@ -53,6 +57,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" --- # Source: cluster-api-operator/templates/infra-conditions.yaml apiVersion: operator.cluster.x-k8s.io/v1alpha2 @@ -63,6 +68,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: configSecret: name: test-secret-name @@ -77,6 +83,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: configSecret: name: test-secret-name @@ -105,6 +112,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: configSecret: name: test-secret-name diff --git a/test/e2e/resources/only-infra.yaml b/test/e2e/resources/only-infra.yaml index 2a5460e11..8146c7d95 100644 --- a/test/e2e/resources/only-infra.yaml +++ b/test/e2e/resources/only-infra.yaml @@ -15,6 +15,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: capi-kubeadm-bootstrap-system --- # Source: cluster-api-operator/templates/infra-conditions.yaml @@ -24,6 +25,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: capi-kubeadm-control-plane-system --- # Source: cluster-api-operator/templates/infra.yaml @@ -33,6 +35,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "1" + "argocd.argoproj.io/sync-wave": "1" name: docker-infrastructure-system --- # Source: cluster-api-operator/templates/infra-conditions.yaml @@ -44,6 +47,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: configSecret: name: test-secret-name @@ -58,6 +62,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: configSecret: name: test-secret-name @@ -86,6 +91,7 @@ metadata: annotations: "helm.sh/hook": "post-install" "helm.sh/hook-weight": "2" + "argocd.argoproj.io/sync-wave": "2" spec: configSecret: name: test-secret-name