Skip to content

Commit

Permalink
Don't exclude pull secret from backup
Browse files Browse the repository at this point in the history
  • Loading branch information
divolgin committed Jul 23, 2020
1 parent 2b1c3a2 commit 9b340ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/docker/registry/registry.go
Expand Up @@ -9,7 +9,6 @@ import (

"github.com/pkg/errors"
kotsv1beta1 "github.com/replicatedhq/kots/kotskinds/apis/kots/v1beta1"
"github.com/replicatedhq/kots/pkg/kotsadm/types"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down Expand Up @@ -91,7 +90,6 @@ func PullSecretForRegistries(registries []string, username, password string, nam
ObjectMeta: metav1.ObjectMeta{
Name: "kotsadm-replicated-registry",
Namespace: namespace,
Labels: types.GetKotsadmLabels(),
},
Type: corev1.SecretTypeDockerConfigJson,
Data: map[string][]byte{
Expand Down
1 change: 1 addition & 0 deletions pkg/kotsadm/kotsadm_version.go
Expand Up @@ -76,6 +76,7 @@ func kotsadmPullSecret(namespace string, options types.KotsadmOptions) *corev1.S
}

secret.ObjectMeta.Name = types.PrivateKotsadmRegistrySecret
secret.ObjectMeta.Labels = types.GetKotsadmLabels()

return secret
}

0 comments on commit 9b340ee

Please sign in to comment.