Skip to content

Commit

Permalink
[newrelic-infra] Add cluster name custom attribute (helm#11053)
Browse files Browse the repository at this point in the history
* [newrelic-infra] Add cluster name custom attribute

Signed-off-by: JF Joly <[email protected]>

* [newrelic-infra] Increment chart version number

Signed-off-by: JF Joly <[email protected]>

* Move custom attributes to values.yaml

Signed-off-by: JF Joly <[email protected]>

* Updating quotes for the custom attribute value

Signed-off-by: JF Joly <[email protected]>
  • Loading branch information
jfjoly authored and k8s-ci-robot committed Feb 14, 2019
1 parent 3ab100a commit f077671
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/newrelic-infrastructure/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart to deploy the New Relic Infrastructure Agent as a DaemonSet
name: newrelic-infrastructure
version: 0.7.0
version: 0.8.0
appVersion: 1.3.1
home: https://hub.docker.com/r/newrelic/infrastructure/
source:
Expand Down
2 changes: 2 additions & 0 deletions stable/newrelic-infrastructure/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ spec:
fieldRef:
apiVersion: "v1"
fieldPath: "spec.nodeName"
- name: "NRIA_CUSTOM_ATTRIBUTES"
value: {{ .Values.customAttribues }}
- name: "NRIA_PASSTHROUGH_ENVIRONMENT"
value: "KUBERNETES_SERVICE_HOST,KUBERNETES_SERVICE_PORT,CLUSTER_NAME,CADVISOR_PORT,NRK8S_NODE_NAME,KUBE_STATE_METRICS_URL,TIMEOUT"
{{- if .Values.verboseLog }}
Expand Down
3 changes: 3 additions & 0 deletions stable/newrelic-infrastructure/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,6 @@ nodeSelector: {}
tolerations: []

updateStrategy: RollingUpdate

# Custom attributes to be passed to the New Relic agent
customAttribues: "'{\"clusterName\":\"$(CLUSTER_NAME)\"}'"

0 comments on commit f077671

Please sign in to comment.