Skip to content

Commit adab348

Browse files
committed
Introduce image.otelcol.fips which set the appropriate repo/image and skips migrate-checkpoint if needed
Signed-off-by: Dani Louca <[email protected]>
1 parent cee762c commit adab348

File tree

5 files changed

+28
-6
lines changed

5 files changed

+28
-6
lines changed

.chloggen/fipsswitch.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: bug_fix
3+
# The name of the component, or a single word describing the area of concern, (e.g. agent, clusterReceiver, gateway, operator, chart, other)
4+
component: all
5+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
6+
note: Introduce a new option `image.otelcol.fips`, when set to true, it sets the appropriate repo/image and skips `migrate-checkpoint` when log is enabled
7+
# One or more tracking issues related to the change
8+
issues: []
9+
# (Optional) One or more lines of additional information to render under the primary note.
10+
# These lines will be padded with 2 spaces and then inserted directly into the document.
11+
# Use pipe (|) for multiline entries.
12+
subtext:

helm-charts/splunk-otel-collector/templates/_helpers.tpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@ Create the fluentd image name.
210210
Create the opentelemetry collector image name.
211211
*/}}
212212
{{- define "splunk-otel-collector.image.otelcol" -}}
213-
{{- printf "%s:%s" .Values.image.otelcol.repository (.Values.image.otelcol.tag | default .Chart.AppVersion) -}}
213+
{{- if .Values.image.otelcol.fips -}}
214+
{{- printf "%s:%s" (.Values.image.otelcol.repository | default "quay.io/signalfx/splunk-otel-collector-fips" ) (.Values.image.otelcol.tag | default .Chart.AppVersion) -}}
215+
{{- else }}
216+
{{- printf "%s:%s" (.Values.image.otelcol.repository | default "quay.io/signalfx/splunk-otel-collector" ) (.Values.image.otelcol.tag | default .Chart.AppVersion) -}}
217+
{{- end }}
214218
{{- end -}}
215219

216220
{{/*

helm-charts/splunk-otel-collector/templates/daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ spec:
109109
- name: fluentd-config-json
110110
mountPath: /fluentd/etc/json
111111
{{- else }}
112-
{{- if not (eq .Values.distribution "gke/autopilot") }}
112+
{{- if and (not (eq .Values.distribution "gke/autopilot")) (not .Values.image.otelcol.fips) }}
113113
- name: migrate-checkpoint
114114
image: {{ template "splunk-otel-collector.image.otelcol" . }}
115115
imagePullPolicy: {{ .Values.image.otelcol.pullPolicy }}

helm-charts/splunk-otel-collector/values.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,6 +1111,10 @@
11111111
"Always",
11121112
"Never"
11131113
]
1114+
},
1115+
"fips": {
1116+
"description": "Use FIPS compliant image",
1117+
"type": "boolean"
11141118
}
11151119
}
11161120
},

helm-charts/splunk-otel-collector/values.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -970,14 +970,16 @@ image:
970970
pullPolicy: IfNotPresent
971971

972972
otelcol:
973-
# The registry and name of the opentelemetry collector image to pull
974-
repository: quay.io/signalfx/splunk-otel-collector
975-
# For the FIPS-140 enabled version, use this repository instead:
976-
# repository: quay.io/signalfx/splunk-otel-collector-fips
973+
# The non-default registry and name of the opentelemetry collector image to pull.
974+
# Defaults to `quay.io/signalfx/splunk-otel-collector` when the fips option is not set or set to false
975+
# and `quay.io/signalfx/splunk-otel-collector-fips` when the fips option is set to true
976+
repository: ""
977977
# The tag of the Splunk OTel Collector image, default value is the chart appVersion
978978
tag: ""
979979
# The policy that specifies when the user wants the opentelemetry collector images to be pulled
980980
pullPolicy: IfNotPresent
981+
# To enable FIPS-140, set fips to true
982+
fips: false
981983

982984
# Image to be used by init container that patches log directories on the host, so the collector can read from them as a non-root user.
983985
# Effective only if `agent.securityContext.runAsUser` and `agent.securityContext.runAsGroup` are set to non-zero values.

0 commit comments

Comments
 (0)