From b8264095b27563bfa17ebba4efa8296ca652ba41 Mon Sep 17 00:00:00 2001 From: Chuang Wang Date: Tue, 13 Sep 2022 13:18:58 -0700 Subject: [PATCH] Fix the value for `APISecretNamespaceKey` Related to https://github.com/tektoncd/pipeline/pull/5450. The key for APISecretNamespace in the configmap is named `api-token-secret-namespace`, but the value of `APISecretNamespaceKey` in `pkg/resolution/resolver/git/config.go` is `api-token-namespace`. This will cause resolver to fail to get API token. In this PR, we use the correct key name `api-token-secret-namespace`. Signed-off-by: Chuang Wang --- pkg/resolution/resolver/git/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/resolution/resolver/git/config.go b/pkg/resolution/resolver/git/config.go index c8e3a602a40..a085bdfac39 100644 --- a/pkg/resolution/resolver/git/config.go +++ b/pkg/resolution/resolver/git/config.go @@ -41,5 +41,5 @@ const ( // APISecretKeyKey is the config map key for the containing the token within the token secret APISecretKeyKey = "api-token-secret-key" // APISecretNamespaceKey is the config map key for the token secret's namespace - APISecretNamespaceKey = "api-token-namespace" + APISecretNamespaceKey = "api-token-secret-namespace" )