提交 63b43cc6 编写于 作者: S Sharif Elgamal

allow access to artifact registry as well

上级 73641d2b
...@@ -93,7 +93,7 @@ func enableAddonGCPAuth(cfg *config.ClusterConfig) error { ...@@ -93,7 +93,7 @@ func enableAddonGCPAuth(cfg *config.ClusterConfig) error {
// Only try to add secret if Token was found // Only try to add secret if Token was found
if err == nil { if err == nil {
data := map[string][]byte{ data := map[string][]byte{
".dockercfg": []byte(fmt.Sprintf(`{"https://gcr.io":{"username":"oauth2accesstoken","password":"%s","email":"none"}}`, token.AccessToken)), ".dockercfg": []byte(fmt.Sprintf(`{"https://gcr.io":{"username":"oauth2accesstoken","password":"%s","email":"none"}, "https://us-docker.pkg.dev":{"username":"oauth2accesstoken","password":"%s","email":"none"}}`, token.AccessToken, token.AccessToken)),
} }
namespaces, err := client.Namespaces().List(context.TODO(), metav1.ListOptions{}) namespaces, err := client.Namespaces().List(context.TODO(), metav1.ListOptions{})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册