Skip to content

Instantly share code, notes, and snippets.

View florianmutter's full-sized avatar

Florian Mutter florianmutter

View GitHub Profile
@maxmoehl
maxmoehl / gitCommitLabel.yml
Last active June 19, 2024 13:58
Add the git commit hash to all resources. Due to a bug in kustomize the script will have to be in your path for this to work. Once the bug is fixed it should be possible to have the script relative to the kustomization file.
apiVersion: internal
kind: GitCommitLabel
metadata:
name: whatever
annotations:
config.kubernetes.io/function: |
exec:
path: git_commit_label.sh