Skip to content

Commit

Permalink
Merge pull request openshift#775 from wking/pull-secret-for-bootkube.sh
Browse files Browse the repository at this point in the history
pkg/asset/ignition/bootstrap: Add /root/.docker/config.json
  • Loading branch information
openshift-merge-robot authored Dec 3, 2018
2 parents ec1abc2 + 791a41c commit 6585f5d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{.PullSecret}}
2 changes: 1 addition & 1 deletion data/data/manifests/bootkube/pull.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"name": "coreos-pull-secret"
},
"data": {
".dockerconfigjson": "{{.PullSecret}}"
".dockerconfigjson": "{{.PullSecretBase64}}"
}
}
2 changes: 2 additions & 0 deletions pkg/asset/ignition/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ type bootstrapTemplateData struct {
EtcdCertSignerImage string
EtcdCluster string
EtcdctlImage string
PullSecret string
ReleaseImage string
AdminKubeConfigBase64 string
}
Expand Down Expand Up @@ -148,6 +149,7 @@ func (a *Bootstrap) getTemplateData(installConfig *types.InstallConfig, adminKub
return &bootstrapTemplateData{
EtcdCertSignerImage: "quay.io/coreos/kube-etcd-signer-server:678cc8e6841e2121ebfdb6e2db568fce290b67d6",
EtcdctlImage: "quay.io/coreos/etcd:v3.2.14",
PullSecret: installConfig.PullSecret,
ReleaseImage: releaseImage,
EtcdCluster: strings.Join(etcdEndpoints, ","),
AdminKubeConfigBase64: base64.StdEncoding.EncodeToString(adminKubeConfig),
Expand Down
2 changes: 1 addition & 1 deletion pkg/asset/manifests/operators.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (m *Manifests) generateBootKubeManifests(dependencies asset.Parents) []*ass
KubeCaKey: base64.StdEncoding.EncodeToString(kubeCA.Key()),
McsTLSCert: base64.StdEncoding.EncodeToString(mcsCertKey.Cert()),
McsTLSKey: base64.StdEncoding.EncodeToString(mcsCertKey.Key()),
PullSecret: base64.StdEncoding.EncodeToString([]byte(installConfig.Config.PullSecret)),
PullSecretBase64: base64.StdEncoding.EncodeToString([]byte(installConfig.Config.PullSecret)),
RootCaCert: string(rootCA.Cert()),
ServiceServingCaCert: base64.StdEncoding.EncodeToString(serviceServingCA.Cert()),
ServiceServingCaKey: base64.StdEncoding.EncodeToString(serviceServingCA.Key()),
Expand Down
2 changes: 1 addition & 1 deletion pkg/asset/manifests/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type bootkubeTemplateData struct {
KubeCaKey string
McsTLSCert string
McsTLSKey string
PullSecret string
PullSecretBase64 string
RootCaCert string
ServiceServingCaCert string
ServiceServingCaKey string
Expand Down

0 comments on commit 6585f5d

Please sign in to comment.