Created
November 15, 2023 14:19
-
-
Save sbose78/3f87ab0e4ce1921e14598ba0364c47d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TODO: Apply the right annotations/labels to mark this a 'hook' | |
# TODO: Update the kubectl command to use values from the values.yaml | |
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: "apply-tekton-config" | |
spec: | |
template: | |
metadata: | |
name: "apply-tekton-config" | |
spec: | |
restartPolicy: Never | |
containers: | |
- name: wait-for-tekton-config | |
image: "k8s.gcr.io/hyperkube:v1.12.1" | |
command: | |
- /bin/sh | |
- -c | |
- > | |
until kubectl get tektonconfigs.operator.tekton.dev config; do echo "waiting"; sleep 3; done | |
kubectl patch tektonconfig config --type 'merge' --patch '{"spec" :{"pipeline":{"enable-custom-tasks":true}}}'; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment