Skip to content

Commit 9e1cf75

Browse files
authored
Merge pull request kubernetes#75381 from rramkumar1/configure-scripts-for-ingress-yaml
Plumb CUSTOM_INGRESS_YAML into other setup scripts
2 parents e1f8d1e + 8ac15cd commit 9e1cf75

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

cluster/gce/config-default.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ fi
352352
if [[ -n "${GCE_GLBC_IMAGE:-}" ]]; then
353353
PROVIDER_VARS="${PROVIDER_VARS:-} GCE_GLBC_IMAGE"
354354
fi
355+
CUSTOM_INGRESS_YAML="${CUSTOM_INGRESS_YAML:-}"
355356

356357
# Admission Controllers to invoke prior to persisting objects in cluster
357358
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,PersistentVolumeClaimResize,DefaultTolerationSeconds,NodeRestriction,Priority,StorageObjectInUseProtection

cluster/gce/config-test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ fi
364364
if [[ -n "${GCE_GLBC_IMAGE:-}" ]]; then
365365
PROVIDER_VARS="${PROVIDER_VARS:-} GCE_GLBC_IMAGE"
366366
fi
367+
CUSTOM_INGRESS_YAML="${CUSTOM_INGRESS_YAML:-}"
367368

368369
if [[ -z "${KUBE_ADMISSION_CONTROL:-}" ]]; then
369370
ADMISSION_CONTROL="NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,PodPreset,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,Priority,StorageObjectInUseProtection,PersistentVolumeClaimResize"

cluster/gce/util.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,8 @@ ADVANCED_AUDIT_WEBHOOK_THROTTLE_BURST: $(yaml-quote ${ADVANCED_AUDIT_WEBHOOK_THR
11651165
ADVANCED_AUDIT_WEBHOOK_INITIAL_BACKOFF: $(yaml-quote ${ADVANCED_AUDIT_WEBHOOK_INITIAL_BACKOFF:-})
11661166
GCE_API_ENDPOINT: $(yaml-quote ${GCE_API_ENDPOINT:-})
11671167
GCE_GLBC_IMAGE: $(yaml-quote ${GCE_GLBC_IMAGE:-})
1168+
CUSTOM_INGRESS_YAML: |
1169+
$(echo "${CUSTOM_INGRESS_YAML:-}" | sed -e "s/'/''/g")
11681170
ENABLE_NODE_JOURNAL: $(yaml-quote ${ENABLE_NODE_JOURNAL:-false})
11691171
PROMETHEUS_TO_SD_ENDPOINT: $(yaml-quote ${PROMETHEUS_TO_SD_ENDPOINT:-})
11701172
PROMETHEUS_TO_SD_PREFIX: $(yaml-quote ${PROMETHEUS_TO_SD_PREFIX:-})

0 commit comments

Comments
 (0)