Skip to content

Commit

Permalink
Fix eks git version pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce committed Oct 22, 2024
1 parent 9151c2a commit 012ba10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/datadog/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ Create RBACs for custom resources
Return true if container runtime is known to discard uncompressed layers
*/}}
{{- define "should-support-discard-uncompressed-layers" -}}
{{- if or .Values.datadog.sbom.containerImage.uncompressedLayersSupport .Values.datadog.sbom.containerImage.overlayFSDirectScan (and .Values.datadog.sbom.containerImage.enabled (or (contains "-gke." .Capabilities.KubeVersion.GitVersion) (contains "-eks." .Capabilities.KubeVersion.GitVersion))) -}}
{{- if or .Values.datadog.sbom.containerImage.uncompressedLayersSupport .Values.datadog.sbom.containerImage.overlayFSDirectScan (and .Values.datadog.sbom.containerImage.enabled (or (contains "-gke." .Capabilities.KubeVersion.GitVersion) (contains "-eks-" .Capabilities.KubeVersion.GitVersion))) -}}
{{- if not (eq (include "should-enable-container-image-collection" .) "true") -}}
{{- fail "Container runtime support has to be enabled for SBOM collection to work. Please enable it using `datadog.containerRuntimeSupport.enabled`." -}}
{{- end -}}
Expand Down

0 comments on commit 012ba10

Please sign in to comment.