[fluentd-gcp addon] Pass region in seperate field

This commit is contained in:
Marek Siarkowicz 2018-04-20 14:21:31 +02:00
parent 2bfe40a1d1
commit f351b00a99
4 changed files with 9 additions and 3 deletions

View File

@ -50,7 +50,7 @@ spec:
image: k8s.gcr.io/event-exporter:v0.1.9
command:
- /event-exporter
- -sink-opts=-location={{ event_exporter_zone }}
- -sink-opts=-location={{ event_exporter_location }}
# BEGIN_PROMETHEUS_TO_SD
- name: prometheus-to-sd-exporter
image: k8s.gcr.io/prometheus-to-sd:v0.2.4

View File

@ -2112,7 +2112,12 @@ function update-prometheus-to-sd-parameters {
# Updates parameters in yaml file for event-exporter configuration
function update-event-exporter {
sed -i -e "s@{{ *event_exporter_zone *}}@${ZONE:-}@g" "$1"
if [[ "${MULTIMASTER:-}" == "true" ]]; then
local -r location=${REGION:-}
else
local -r location=${ZONE:-}
fi
sed -i -e "s@{{ *event_exporter_location *}}@${location}@g" "$1"
}
function update-dashboard-controller {

View File

@ -890,6 +890,7 @@ CONTAINER_RUNTIME_NAME: $(yaml-quote ${CONTAINER_RUNTIME_NAME:-})
NODE_LOCAL_SSDS_EXT: $(yaml-quote ${NODE_LOCAL_SSDS_EXT:-})
LOAD_IMAGE_COMMAND: $(yaml-quote ${LOAD_IMAGE_COMMAND:-})
ZONE: $(yaml-quote ${ZONE})
REGION: $(yaml-quote ${REGION})
VOLUME_PLUGIN_DIR: $(yaml-quote ${VOLUME_PLUGIN_DIR})
KUBELET_ARGS: $(yaml-quote ${KUBELET_ARGS})
REQUIRE_METADATA_KUBELET_CONFIG_FILE: $(yaml-quote true)

View File

@ -163,7 +163,7 @@ var _ = instrumentation.SIGDescribe("Cluster level logging implemented by Stackd
ginkgo.By("Waiting for events to ingest")
location := framework.TestContext.CloudConfig.Zone
if framework.TestContext.CloudConfig.MultiZone {
if framework.TestContext.CloudConfig.MultiMaster {
location = framework.TestContext.CloudConfig.Region
}
c := utils.NewLogChecker(p, utils.UntilFirstEntryFromLocation(location), utils.JustTimeout, "")