mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
[fluentd-gcp addon] Pass region in seperate field
This commit is contained in:
parent
2bfe40a1d1
commit
f351b00a99
@ -50,7 +50,7 @@ spec:
|
|||||||
image: k8s.gcr.io/event-exporter:v0.1.9
|
image: k8s.gcr.io/event-exporter:v0.1.9
|
||||||
command:
|
command:
|
||||||
- /event-exporter
|
- /event-exporter
|
||||||
- -sink-opts=-location={{ event_exporter_zone }}
|
- -sink-opts=-location={{ event_exporter_location }}
|
||||||
# BEGIN_PROMETHEUS_TO_SD
|
# BEGIN_PROMETHEUS_TO_SD
|
||||||
- name: prometheus-to-sd-exporter
|
- name: prometheus-to-sd-exporter
|
||||||
image: k8s.gcr.io/prometheus-to-sd:v0.2.4
|
image: k8s.gcr.io/prometheus-to-sd:v0.2.4
|
||||||
|
@ -2112,7 +2112,12 @@ function update-prometheus-to-sd-parameters {
|
|||||||
|
|
||||||
# Updates parameters in yaml file for event-exporter configuration
|
# Updates parameters in yaml file for event-exporter configuration
|
||||||
function update-event-exporter {
|
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 {
|
function update-dashboard-controller {
|
||||||
|
@ -890,6 +890,7 @@ CONTAINER_RUNTIME_NAME: $(yaml-quote ${CONTAINER_RUNTIME_NAME:-})
|
|||||||
NODE_LOCAL_SSDS_EXT: $(yaml-quote ${NODE_LOCAL_SSDS_EXT:-})
|
NODE_LOCAL_SSDS_EXT: $(yaml-quote ${NODE_LOCAL_SSDS_EXT:-})
|
||||||
LOAD_IMAGE_COMMAND: $(yaml-quote ${LOAD_IMAGE_COMMAND:-})
|
LOAD_IMAGE_COMMAND: $(yaml-quote ${LOAD_IMAGE_COMMAND:-})
|
||||||
ZONE: $(yaml-quote ${ZONE})
|
ZONE: $(yaml-quote ${ZONE})
|
||||||
|
REGION: $(yaml-quote ${REGION})
|
||||||
VOLUME_PLUGIN_DIR: $(yaml-quote ${VOLUME_PLUGIN_DIR})
|
VOLUME_PLUGIN_DIR: $(yaml-quote ${VOLUME_PLUGIN_DIR})
|
||||||
KUBELET_ARGS: $(yaml-quote ${KUBELET_ARGS})
|
KUBELET_ARGS: $(yaml-quote ${KUBELET_ARGS})
|
||||||
REQUIRE_METADATA_KUBELET_CONFIG_FILE: $(yaml-quote true)
|
REQUIRE_METADATA_KUBELET_CONFIG_FILE: $(yaml-quote true)
|
||||||
|
@ -163,7 +163,7 @@ var _ = instrumentation.SIGDescribe("Cluster level logging implemented by Stackd
|
|||||||
|
|
||||||
ginkgo.By("Waiting for events to ingest")
|
ginkgo.By("Waiting for events to ingest")
|
||||||
location := framework.TestContext.CloudConfig.Zone
|
location := framework.TestContext.CloudConfig.Zone
|
||||||
if framework.TestContext.CloudConfig.MultiZone {
|
if framework.TestContext.CloudConfig.MultiMaster {
|
||||||
location = framework.TestContext.CloudConfig.Region
|
location = framework.TestContext.CloudConfig.Region
|
||||||
}
|
}
|
||||||
c := utils.NewLogChecker(p, utils.UntilFirstEntryFromLocation(location), utils.JustTimeout, "")
|
c := utils.NewLogChecker(p, utils.UntilFirstEntryFromLocation(location), utils.JustTimeout, "")
|
||||||
|
Loading…
Reference in New Issue
Block a user