Skip to content

Commit c8994d1

Browse files
committed
be able to add containers to Kiali pod
part of: kiali/kiali#5028 operator PR: kiali/kiali-operator#524
1 parent 7d4f740 commit c8994d1

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

kiali-operator/templates/deployment.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ spec:
8888
- name: ALLOW_AD_HOC_OSSMCONSOLE_IMAGE
8989
value: {{ .Values.allowAdHocOSSMConsoleImage | quote }}
9090
{{- end }}
91+
- name: ALLOW_AD_HOC_CONTAINERS
92+
value: {{ .Values.allowAdHocContainers | quote }}
9193
- name: ALLOW_SECURITY_CONTEXT_OVERRIDE
9294
value: {{ .Values.allowSecurityContextOverride | quote }}
9395
- name: ALLOW_ALL_ACCESSIBLE_NAMESPACES

kiali-operator/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ allowAdHocKialiImage: false
7777
# This is only applicable when running on OpenShift.
7878
allowAdHocOSSMConsoleImage: false
7979

80+
# allowAdHocContainers tells the operator to allow a user to be able to install additional pod containers to the Kiali pod.
81+
# In other words, it will allow the Kiali CR spec.deployment.additional_pod_containers_yaml to be configured by the user.
82+
allowAdHocContainers: false
83+
8084
# allowSecurityContextOverride tells the operator to allow a user to be able to fully override the Kiali
8185
# container securityContext. If this is false, certain securityContext settings must exist on the Kiali
8286
# container and any attempt to override them will be ignored.

kiali-server/templates/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ spec:
139139
resources:
140140
{{- toYaml .Values.deployment.resources | nindent 10 }}
141141
{{- end }}
142+
{{- if .Values.deployment.additional_pod_containers_yaml }}
143+
{{- toYaml .Values.deployment.additional_pod_containers_yaml | nindent 6 }}
144+
{{- end }}
142145
volumes:
143146
- name: {{ include "kiali-server.fullname" . }}-configuration
144147
configMap:

kiali-server/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ deployment:
3535
# For more control over what the Kial Service Account can see, use the Kiali Operator
3636
accessible_namespaces:
3737
- "**"
38+
additional_pod_containers_yaml: {}
3839
additional_service_yaml: {}
3940
affinity:
4041
node: {}

0 commit comments

Comments
 (0)