From 0bd850136e6867423b411982b56b52fccd99afb5 Mon Sep 17 00:00:00 2001 From: Dibyo Mukherjee Date: Tue, 2 Feb 2021 12:36:34 -0500 Subject: [PATCH] Use generateName instead of $(uid) for metadata.name Since $(uid) is now a UUID, this will create names that are too long. See https://github.com/tektoncd/triggers/issues/901#issuecomment-771630287 --- docs/getting-started/triggers.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/triggers.yaml b/docs/getting-started/triggers.yaml index b64b528dd..3f348f2ca 100644 --- a/docs/getting-started/triggers.yaml +++ b/docs/getting-started/triggers.yaml @@ -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