Skip to content

Commit

Permalink
operators-installer - fix argo sync waves so that operator is install…
Browse files Browse the repository at this point in the history
…ed before sync wave 0 where it is likley (due to it being default) that that is where CRs using the CRDs installed by these operators will be
  • Loading branch information
itewk committed Jul 19, 2023
1 parent ae0ec34 commit 60f5bbe
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/operators-installer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.3.1
version: 2.3.2

home: https://github.com/redhat-cop/helm-charts

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ metadata:
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "20"
{{- else }}
argocd.argoproj.io/sync-wave: "20"
argocd.argoproj.io/sync-wave: "-20"
{{- end }}
spec:
completions: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ metadata:
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "30"
{{- else }}
argocd.argoproj.io/sync-wave: "30"
argocd.argoproj.io/sync-wave: "-10"
{{- end }}
spec:
completions: 1
Expand Down
2 changes: 2 additions & 0 deletions charts/operators-installer/templates/Namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ metadata:
name: {{ .name | default $.Release.Namespace }}
labels:
{{- include "operators-installer.labels" $ | nindent 4 }}
annotations:
argocd.argoproj.io/sync-wave: "-60"
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/operators-installer/templates/OperatorGroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
namespace: {{ .name | default $.Release.Namespace }}
labels:
{{- include "operators-installer.labels" $ | nindent 4 }}
annotations:
argocd.argoproj.io/sync-wave: "-50"
spec:
targetNamespaces:
{{- if .targetOwnNamespace }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "10"
{{- else }}
argocd.argoproj.io/sync-wave: "10"
argocd.argoproj.io/sync-wave: "-30"
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "10"
{{- else }}
argocd.argoproj.io/sync-wave: "10"
argocd.argoproj.io/sync-wave: "-30"
{{- end }}
rules:
- apiGroups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ metadata:
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "10"
{{- else }}
argocd.argoproj.io/sync-wave: "10"
argocd.argoproj.io/sync-wave: "-30"
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/operators-installer/templates/Subscription.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
namespace: {{ .namespace | default $.Release.Namespace }}
labels:
{{- include "operators-installer.labels" $ | nindent 4 }}
annotations:
argocd.argoproj.io/sync-wave: "-40"
spec:
channel: {{ .channel }}
installPlanApproval: {{ .installPlanApproval }}
Expand Down

0 comments on commit 60f5bbe

Please sign in to comment.