Skip to content

Commit

Permalink
add comment for image pull secret
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhny committed Aug 13, 2024
1 parent 1dc9b13 commit 644c3be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/resourcegenerator/github/image_pull_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ func (ips *imagePullSecret) Generate(r reconciliation.Reconciliation) error {
if r.GetType() != reconciliation.NamespaceType {
return fmt.Errorf("image pull secret only supports namespace type")
}
// SKIPObject here is a namespace, so thats why we use GetName, not GetNamespace.
// Should NOT be called from any other controller than namespace-controller
secret := corev1.Secret{ObjectMeta: metav1.ObjectMeta{Namespace: r.GetSKIPObject().GetName(), Name: "github-auth"}}
secret.Type = corev1.SecretTypeDockerConfigJson

Expand Down

0 comments on commit 644c3be

Please sign in to comment.