Skip to content

Commit

Permalink
Use generateName instead of $(uid) for metadata.name
Browse files Browse the repository at this point in the history
Since $(uid) is now a UUID, this will create names that are too long.
See #901 (comment)
  • Loading branch information
dibyom authored and tekton-robot committed Feb 2, 2021
1 parent 6e1a16e commit 3bfdd40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting-started/triggers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
- apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: getting-started-pipeline-run-$(uid)
generateName: getting-started-pipeline-run-
namespace: $(tt.params.namespace)
spec:
serviceAccountName: tekton-triggers-example-sa
Expand Down

0 comments on commit 3bfdd40

Please sign in to comment.