mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
Add 'ETCD_DOCKER_REPOSITORY' environment variable override to 'cluster/' scripts.
This allows the etcd docker registry that is currently hard coded to `gcr.io/google_containers/etcd` in the `etcd.manifest` template to be overridden. This can be used to test new versions of etcd with kubernetes that have not yet been published to `gcr.io/google_containers/etcd` and also enables cluster operators to manage the etcd images used by their cluster in an internal repository.
This commit is contained in:
@@ -828,6 +828,12 @@ EOF
|
||||
if [ -n "${ETCD_IMAGE:-}" ]; then
|
||||
cat >>$file <<EOF
|
||||
ETCD_IMAGE: $(yaml-quote ${ETCD_IMAGE})
|
||||
EOF
|
||||
fi
|
||||
# ETCD_DOCKER_REPOSITORY (if set) allows to use a custom etcd docker repository to pull the etcd image from.
|
||||
if [ -n "${ETCD_DOCKER_REPOSITORY:-}" ]; then
|
||||
cat >>$file <<EOF
|
||||
ETCD_DOCKER_REPOSITORY: $(yaml-quote ${ETCD_DOCKER_REPOSITORY})
|
||||
EOF
|
||||
fi
|
||||
# ETCD_VERSION (if set) allows you to use custom version of etcd.
|
||||
|
Reference in New Issue
Block a user