File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ Required environment variables:
1010* ` GCP_PROJECT ` : GCP project parameter for the sidecar
1111* ` SIDECAR_IMAGE_TAG ` : Version parameter for the sidecar
1212
13+ Optional environment variables:
14+ * ` SIDECAR_IMAGE_NAME ` : Image name parameter for the sidecar (default:
15+ gcr.io/stackdriver-prometheus/stackdriver-prometheus-sidecar)
16+
1317If your cluster is not the default context:
1418
1519``` sh
Original file line number Diff line number Diff line change @@ -12,13 +12,16 @@ if [ $# -le 1 ]; then
1212 exit 1
1313fi
1414
15+ # Override to use a different Docker image name for the sidecar.
16+ export SIDECAR_IMAGE_NAME=${SIDECAR_IMAGE_NAME:- ' gcr.io/stackdriver-prometheus/stackdriver-prometheus-sidecar' }
17+
1518kubectl -n " ${KUBE_NAMESPACE} " patch " $1 " " $2 " --type strategic --patch "
1619spec:
1720 template:
1821 spec:
1922 containers:
2023 - name: sidecar
21- image: gcr.io/stackdriver-prometheus/stackdriver-prometheus-sidecar :${SIDECAR_IMAGE_TAG}
24+ image: ${SIDECAR_IMAGE_NAME} :${SIDECAR_IMAGE_TAG}
2225 imagePullPolicy: Always
2326 args:
2427 - \" --stackdriver.project-id=${GCP_PROJECT} \"
You can’t perform that action at this time.
0 commit comments