Skip to content

Commit

Permalink
Merge pull request #301 from hms-dbmi-cellenics/biomage-changes-3
Browse files Browse the repository at this point in the history
conditional datadog
  • Loading branch information
alexvpickering authored Mar 29, 2023
2 parents 3e82d35 + ff7ad7a commit e8233df
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 e8233df

Please sign in to comment.