Skip to content

Commit

Permalink
fix npm and autopilot and gdc
Browse files Browse the repository at this point in the history
  • Loading branch information
fanny-jiang committed Jan 30, 2025
1 parent b746a4e commit af4890c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/datadog/ci/gke-gdc-values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
providers:
gke:
gdc: true
autopilot: true

datadog:
apiKey: "00000000000000000000000000000000"
Expand Down
18 changes: 11 additions & 7 deletions charts/datadog/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -404,27 +404,31 @@ The option is overriden to avoid mounting volumes that are not allowed which wou

{{- end }}

{{- if .Values.datadog.networkMonitoring.enabled }}
{{- end }}

{{- if or .Values.providers.gke.autopilot .Values.providers.gke.gdc }}

{{- if or .Values.datadog.sbom.containerImage.enabled .Values.datadog.sbom.host.enabled }}

#######################################################################################
#### WARNING: Network Performance Monitoring is not supported on GKE Autopilot ####
#### WARNING: SBOM Monitoring is not supported on GKE Autopilot ####
#######################################################################################

{{- fail "On GKE Autopilot environments, Network Performance Monitoring is not supported. The option 'datadog.networkMonitoring.enabled' must be set to 'false'" }}
On GKE Autopilot environments, SBOM Monitoring is not supported. The options 'datadog.sbom.containerImage.enabled' and 'datadog.sbom.host.enabled' must be set to 'false'.

{{- end }}

{{- end }}

{{- if or .Values.providers.gke.autopilot .Values.providers.gke.gdc }}
{{- if .Values.providers.gke.gdc }}

{{- if or .Values.datadog.sbom.containerImage.enabled .Values.datadog.sbom.host.enabled }}
{{- if .Values.datadog.networkMonitoring.enabled }}

#######################################################################################
#### WARNING: SBOM Monitoring is not supported on GKE Autopilot ####
#### WARNING: Network Performance Monitoring is not supported on GKE GDC ####
#######################################################################################

On GKE Autopilot environments, SBOM Monitoring is not supported. The options 'datadog.sbom.containerImage.enabled' and 'datadog.sbom.host.enabled' must be set to 'false'.
{{- fail "On GKE GDC environments, Network Performance Monitoring is not supported. The option 'datadog.networkMonitoring.enabled' must be set to 'false'" }}

{{- end }}

Expand Down

0 comments on commit af4890c

Please sign in to comment.