Skip to content

Commit

Permalink
Merge pull request #1315 from wking/etcdctl-from-release-image
Browse files Browse the repository at this point in the history
data/bootstrap/files/usr/local/bin/bootkube: etcdctl from release image
  • Loading branch information
openshift-merge-robot authored Feb 26, 2019
2 parents 7630fb9 + 825cd71 commit 958724a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions data/data/bootstrap/files/usr/local/bin/bootkube.sh.template
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ until podman run \
--name etcdctl \
--env ETCDCTL_API=3 \
--volume /opt/openshift/tls:/opt/openshift/tls:ro,z \
"{{.EtcdctlImage}}" \
/usr/local/bin/etcdctl \
--entrypoint etcdctl \
"${MACHINE_CONFIG_ETCD_IMAGE}" \
--dial-timeout=10m \
--cacert=/opt/openshift/tls/etcd-client-ca.crt \
--cert=/opt/openshift/tls/etcd-client.crt \
Expand Down
3 changes: 0 additions & 3 deletions pkg/asset/ignition/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const (
rootDir = "/opt/openshift"
bootstrapIgnFilename = "bootstrap.ign"
etcdCertSignerImage = "quay.io/coreos/kube-etcd-signer-server:678cc8e6841e2121ebfdb6e2db568fce290b67d6"
etcdctlImage = "quay.io/coreos/etcd:v3.3.10"
ignitionUser = "core"
)

Expand All @@ -45,7 +44,6 @@ var (
type bootstrapTemplateData struct {
EtcdCertSignerImage string
EtcdCluster string
EtcdctlImage string
PullSecret string
ReleaseImage string
}
Expand Down Expand Up @@ -182,7 +180,6 @@ func (a *Bootstrap) getTemplateData(installConfig *types.InstallConfig) (*bootst

return &bootstrapTemplateData{
EtcdCertSignerImage: etcdCertSignerImage,
EtcdctlImage: etcdctlImage,
PullSecret: installConfig.PullSecret,
ReleaseImage: releaseImage,
EtcdCluster: strings.Join(etcdEndpoints, ","),
Expand Down

0 comments on commit 958724a

Please sign in to comment.