Commit f654ee1f authored by Ian Baum's avatar Ian Baum

Swap out hook usage

* Remove hooks from GitLab custom resource
* Add pre hooks to CRD creation
parent 6397aff6
Pipeline #57326964 passed with stages
in 48 minutes and 19 seconds
...@@ -5,6 +5,9 @@ metadata: ...@@ -5,6 +5,9 @@ metadata:
labels: labels:
controller-tools.k8s.io: "1.0" controller-tools.k8s.io: "1.0"
name: {{ template "gitlab.operator.crdName" . }} name: {{ template "gitlab.operator.crdName" . }}
annotations:
"helm.sh/hook": "pre-install,pre-upgrade"
"helm.sh/hook-delete-policy": "before-hook-creation"
spec: spec:
group: {{ template "gitlab.operator.groupName" . }} group: {{ template "gitlab.operator.groupName" . }}
names: names:
......
...@@ -6,9 +6,6 @@ metadata: ...@@ -6,9 +6,6 @@ metadata:
controller-tools.k8s.io: "1.0" controller-tools.k8s.io: "1.0"
controller.gitlab.com: {{ .Values.version | quote }} controller.gitlab.com: {{ .Values.version | quote }}
revision: "{{ .Release.Revision }}" revision: "{{ .Release.Revision }}"
annotations:
"helm.sh/hook": "post-install,post-upgrade"
"helm.sh/hook-delete-policy": "before-hook-creation"
{{ include "gitlab.standardLabels" $ | indent 4 }} {{ include "gitlab.standardLabels" $ | indent 4 }}
name: {{ template "fullname" . }} name: {{ template "fullname" . }}
spec: spec:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment