From be417c385b2a82ffd9d0cc017b90d13381bdb38c Mon Sep 17 00:00:00 2001 From: like-inspur Date: Sat, 23 May 2020 17:39:18 +0800 Subject: [PATCH] add annotation namespace --- entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 22e342a..e741ed2 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,6 +7,7 @@ TLS_CERT_FILE="${TLS_CERT_FILE:-/var/lib/secrets/cert.crt}" TLS_KEY_FILE="${TLS_KEY_FILE:-/var/lib/secrets/cert.key}" CONFIGMAP_LABELS="${CONFIGMAP_LABELS:-app=k8s-sidecar-injector}" CONFIGMAP_NAMESPACE="${CONFIGMAP_NAMESPACE:-}" +ANNOTATION_NAMESPACE="${ANNOTATION_NAMESPACE:-injector.tumblr.com}" LOG_LEVEL="${LOG_LEVEL:-2}" echo "k8s-sidecar-injector starting at $(date) with TLS_PORT=${TLS_PORT} CONFIG_DIR=${CONFIG_DIR} TLS_CERT_FILE=${TLS_CERT_FILE} TLS_KEY_FILE=${TLS_KEY_FILE}" set -x @@ -19,4 +20,5 @@ exec k8s-sidecar-injector \ --tls-key-file="${TLS_KEY_FILE}" \ --configmap-labels="${CONFIGMAP_LABELS}" \ --configmap-namespace="${CONFIGMAP_NAMESPACE}" \ + --annotation-namespace="${ANNOTATION_NAMESPACE}" \ "$@"