Skip to content

Commit

Permalink
conditional datadog
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Pickering <[email protected]>
  • Loading branch information
alexvpickering committed Mar 29, 2023
1 parent 87efa63 commit ae6f568
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chart-infra/templates/datadog-sidecar-rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if eq .Values.myAccount.datadogEnabled "true" -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand All @@ -9,4 +10,5 @@ roleRef:
subjects:
- kind: ServiceAccount
name: deployment-runner
namespace: "{{.Release.Namespace}}"
namespace: "{{.Release.Namespace}}"
{{- end -}}
2 changes: 2 additions & 0 deletions chart-infra/templates/pod-template.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
resources:
requests:
memory: "{{ .Values.memoryRequest }}"
{{- if eq .Values.myAccount.datadogEnabled "true" }}
- name: datadog-agent
image: datadog/agent
env:
Expand Down Expand Up @@ -55,6 +56,7 @@
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
{{- end }}
volumes:
- name: podinfo
downwardAPI:
Expand Down

0 comments on commit ae6f568

Please sign in to comment.