Skip to content

Commit

Permalink
Merge pull request #88 from shahidhk/issue-83
Browse files Browse the repository at this point in the history
close #83, prefix regsecret with remote name
  • Loading branch information
tirumaraiselvan authored Jul 27, 2018
2 parents f87df24 + f908495 commit c1a0111
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/cmd/remote_generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,7 @@ dockerRegistryPrompt:
if !skipRegistry {
s := corev1.Secret{
ObjectMeta: metav1.ObjectMeta{
// TODO: handle secret name conflicts
Name: "regsecret",
Name: o.Remote.GetName() + "-regsecret",
Namespace: o.Remote.GetNamespace(),
},
Type: corev1.SecretTypeDockerConfigJson,
Expand Down Expand Up @@ -284,7 +283,7 @@ dockerRegistryPrompt:
o.Remote.Spec.Registry = v1alpha1.RegistrySpec{
Url: fmt.Sprintf("%s/%s", registry, username),
Credentials: v1alpha1.CredentialsSpec{
SecretRef: "regsecret",
SecretRef: o.Remote.GetName() + "-regsecret",
},
}
}
Expand Down

0 comments on commit c1a0111

Please sign in to comment.