Unverified 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:
labels:
controller-tools.k8s.io: "1.0"
name: {{ template "gitlab.operator.crdName" . }}
annotations:
"helm.sh/hook": "pre-install,pre-upgrade"
"helm.sh/hook-delete-policy": "before-hook-creation"
spec:
group: {{ template "gitlab.operator.groupName" . }}
names:
......
......@@ -6,9 +6,6 @@ metadata:
controller-tools.k8s.io: "1.0"
controller.gitlab.com: {{ .Values.version | quote }}
revision: "{{ .Release.Revision }}"
annotations:
"helm.sh/hook": "post-install,post-upgrade"
"helm.sh/hook-delete-policy": "before-hook-creation"
{{ include "gitlab.standardLabels" $ | indent 4 }}
name: {{ template "fullname" . }}
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