mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 07:03:31 +00:00
Merge pull request #48425 from kawych/master
Automatic merge from submit-queue Pass cluster name to Heapster with Stackdriver sink. **What this PR does / why we need it**: Passes cluster name as argument to Heapster when it's used with Stackdriver sink to allow setting resource label 'cluster_name' in exported metrics. **Release note**: ```release-note NONE ```
This commit is contained in:
@@ -605,6 +605,7 @@ function build-kube-env {
|
||||
|
||||
rm -f ${file}
|
||||
cat >$file <<EOF
|
||||
CLUSTER_NAME: $(yaml-quote ${CLUSTER_NAME})
|
||||
ENV_TIMESTAMP: $(yaml-quote $(date -u +%Y-%m-%dT%T%z))
|
||||
INSTANCE_PREFIX: $(yaml-quote ${INSTANCE_PREFIX})
|
||||
NODE_INSTANCE_PREFIX: $(yaml-quote ${NODE_INSTANCE_PREFIX})
|
||||
|
Reference in New Issue
Block a user