From ae9263f4fea385138af939f127d75483d1fea8ed Mon Sep 17 00:00:00 2001 From: Chuang Wang Date: Thu, 22 Sep 2022 12:02:55 -0700 Subject: [PATCH] Update how-to-write-a-resolver doc The service account name and namespace for resolvers were the old one used in the resolution repo. Now both service account and namespace used for resolvers should be `how-to-write-a-resolver`. Signed-off-by: Chuang Wang --- docs/how-to-write-a-resolver.md | 8 ++++---- .../config/demo-resolver-deployment.yaml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/how-to-write-a-resolver.md b/docs/how-to-write-a-resolver.md index 1a8a067d859..29903b6d64e 100644 --- a/docs/how-to-write-a-resolver.md +++ b/docs/how-to-write-a-resolver.md @@ -272,8 +272,8 @@ along with some environment variables and other configuration that the underlying `knative` framework expects. The deployed application is put in the `tekton-pipelines` namespace and uses `ko` to build its container image. Finally the `ServiceAccount` our deployment uses is -`resolver`, which is the default `ServiceAccount` shared by all -resolvers in the `tekton-pipelines` namespace. +`tekton-pipelines-resolvers`, which is the default `ServiceAccount` shared by all +resolvers in the `tekton-pipelines-resolvers` namespace. The full configuration follows: @@ -282,7 +282,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: demoresolver - namespace: tekton-pipelines + namespace: tekton-pipelines-resolvers spec: replicas: 1 selector: @@ -302,7 +302,7 @@ spec: app: demoresolver topologyKey: kubernetes.io/hostname weight: 100 - serviceAccountName: resolver + serviceAccountName: tekton-pipelines-resolvers containers: - name: controller image: ko://example.com/demoresolver/cmd/demoresolver diff --git a/docs/resolver-template/config/demo-resolver-deployment.yaml b/docs/resolver-template/config/demo-resolver-deployment.yaml index fb2c4ad002d..4100bdee67b 100644 --- a/docs/resolver-template/config/demo-resolver-deployment.yaml +++ b/docs/resolver-template/config/demo-resolver-deployment.yaml @@ -15,7 +15,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: demoresolver - namespace: tekton-pipelines + namespace: tekton-pipelines-resolvers spec: replicas: 1 selector: @@ -35,7 +35,7 @@ spec: app: demoresolver topologyKey: kubernetes.io/hostname weight: 100 - serviceAccountName: resolver + serviceAccountName: tekton-pipelines-resolvers containers: - name: controller image: ko://github.com/tektoncd/pipeline/docs/resolver-template/cmd/demoresolver