diff --git a/data/data/bootstrap/files/usr/local/bin/bootkube.sh.template b/data/data/bootstrap/files/usr/local/bin/bootkube.sh.template index b5e146f48a2..86cec8a7f47 100755 --- a/data/data/bootstrap/files/usr/local/bin/bootkube.sh.template +++ b/data/data/bootstrap/files/usr/local/bin/bootkube.sh.template @@ -20,6 +20,8 @@ KUBE_SCHEDULER_OPERATOR_IMAGE=$(podman run --rm {{.ReleaseImage}} image cluster- OPENSHIFT_HYPERSHIFT_IMAGE=$(podman run --rm {{.ReleaseImage}} image hypershift) OPENSHIFT_HYPERKUBE_IMAGE=$(podman run --rm {{.ReleaseImage}} image hyperkube) +CLUSTER_BOOTSTRAP_IMAGE=$(podman run --rm {{.ReleaseImage}} image cluster-bootstrap) + mkdir --parents ./{bootstrap-manifests,manifests} if [ ! -d cvo-bootstrap ] @@ -191,7 +193,7 @@ echo "etcd cluster up. Killing etcd certificate signer..." podman rm --force etcd-signer rm --force /etc/kubernetes/manifests/machineconfigoperator-bootstrap-pod.yaml -echo "Starting bootkube..." +echo "Starting cluster-bootstrap..." # shellcheck disable=SC2154 podman run \ @@ -199,8 +201,7 @@ podman run \ --volume "$PWD:/assets:z" \ --volume /etc/kubernetes:/etc/kubernetes:z \ --network=host \ - --entrypoint=/bootkube \ - "{{.BootkubeImage}}" \ + "${CLUSTER_BOOTSTRAP_IMAGE}" \ start --asset-dir=/assets --required-pods openshift-kube-apiserver/openshift-kube-apiserver,openshift-kube-scheduler/openshift-kube-scheduler,openshift-kube-controller-manager/openshift-kube-controller-manager,openshift-cluster-version/cluster-version-operator # Workaround for https://github.com/opencontainers/runc/pull/1807 diff --git a/pkg/asset/ignition/bootstrap/bootstrap.go b/pkg/asset/ignition/bootstrap/bootstrap.go index e685af4877e..e52113cf6f3 100644 --- a/pkg/asset/ignition/bootstrap/bootstrap.go +++ b/pkg/asset/ignition/bootstrap/bootstrap.go @@ -37,7 +37,6 @@ const ( // bootstrapTemplateData is the data to use to replace values in bootstrap // template files. type bootstrapTemplateData struct { - BootkubeImage string EtcdCertSignerImage string EtcdCluster string EtcdctlImage string @@ -149,7 +148,6 @@ 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", - BootkubeImage: "quay.io/coreos/bootkube:v0.14.0", ReleaseImage: releaseImage, EtcdCluster: strings.Join(etcdEndpoints, ","), AdminKubeConfigBase64: base64.StdEncoding.EncodeToString(adminKubeConfig),