Skip to content

Commit

Permalink
Fix the value for APISecretNamespaceKey
Browse files Browse the repository at this point in the history
Related to #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 <[email protected]>
  • Loading branch information
chuangw6 authored and tekton-robot committed Sep 14, 2022
1 parent f9e275c commit b7c29b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resolution/resolver/git/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

0 comments on commit b7c29b4

Please sign in to comment.