diff --git a/tinkerbell/stack/templates/hook.yaml b/tinkerbell/stack/templates/hook.yaml index c5103ea5..56a82cca 100644 --- a/tinkerbell/stack/templates/hook.yaml +++ b/tinkerbell/stack/templates/hook.yaml @@ -1,4 +1,5 @@ {{- if .Values.stack.hook.enabled }} +{{- if .Values.stack.hook.downloadEnabled }} --- apiVersion: v1 kind: ConfigMap @@ -39,7 +40,7 @@ spec: containers: - name: download-hook image: {{ .Values.stack.hook.image }} - command: ["/script/entrypoint.sh"] + command: [ "/script/entrypoint.sh" ] volumeMounts: - mountPath: /output name: hook-artifacts @@ -55,4 +56,5 @@ spec: configMap: defaultMode: 0700 name: download-hook +{{- end }} {{- end }} \ No newline at end of file diff --git a/tinkerbell/stack/values.yaml b/tinkerbell/stack/values.yaml index d2e36e0e..1452ff42 100644 --- a/tinkerbell/stack/values.yaml +++ b/tinkerbell/stack/values.yaml @@ -23,6 +23,7 @@ stack: # downloadURL only works with the > 0.8.1 Hook release because # previous Hook versions didn't provide a checksum file. downloadURL: https://github.com/tinkerbell/hook/releases/download/latest + downloadEnabled: true # Set to false if you somehow download Hook manually; if set to True will include a download Job kubevip: enabled: true name: kube-vip