Skip to content

Commit

Permalink
chore: added manifests output to example provisioner
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Meier <[email protected]>
  • Loading branch information
astromechza committed May 10, 2024
1 parent a8aebbc commit b1cde5c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions internal/provisioners/default/zz-default.provisioners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@
# Instead of returning secret outputs as plaintext. They can be embedded as reference to Kubernetes Secrets. When
# these are detected, they can be used in environment variables or file contents securely.
secret-reference: {{ encodeSecretRef "my-secret" "my-key" }}
# (Optional) The manifests template gets evaluated as a list of Kubernetes object manifests to be added to the output.
manifests: |
- apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Uid }}
annotations:
k8s.score.dev/source-workload: {{ .SourceWorkload }}
k8s.score.dev/resource-uid: {{ .Uid }}
k8s.score.dev/resource-guid: {{ .Guid }}
data:
key: {{ .Init.key }}
# As an example we have a 'volume' type which returns an emptyDir volume.
# In production or for real applications you may want to replace this with a provisioner for a tmpfs, host path, or
Expand Down

0 comments on commit b1cde5c

Please sign in to comment.