Skip to content

Commit

Permalink
Custom registry from CONTAINER_INFRA_PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
darmach committed Jan 17, 2024
1 parent 25b389d commit 4e25f39
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set -ex
CHART_NAME="tigera-operator"

if [ "$NETWORK_DRIVER" = "calico" ]; then
_prefix=${CONTAINER_INFRA_PREFIX:-quay.io/calico/}
echo "Writing ${CHART_NAME} config"
HELM_CHART_DIR="/srv/magnum/kubernetes/helm/calico"
mkdir -p ${HELM_CHART_DIR}
Expand All @@ -18,6 +19,7 @@ installation:
nodeAddressAutodetectionV4:
cidrs:
- '${CLUSTER_SUBNET_CIDR}'
registry: ${_prefix}
flexVolumePluginDir: /var/lib/kubelet/volumeplugins
EOF
echo "Waiting for Kubernetes API..."
Expand Down

0 comments on commit 4e25f39

Please sign in to comment.