Skip to content

Instantly share code, notes, and snippets.

@sbose78
Created November 15, 2023 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbose78/3f87ab0e4ce1921e14598ba0364c47d7 to your computer and use it in GitHub Desktop.
Save sbose78/3f87ab0e4ce1921e14598ba0364c47d7 to your computer and use it in GitHub Desktop.
# 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