Skip to content

Commit

Permalink
be able to add containers to Kiali pod
Browse files Browse the repository at this point in the history
  • Loading branch information
jmazzitelli committed Dec 6, 2023
1 parent 7d4f740 commit c8994d1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kiali-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ spec:
- name: ALLOW_AD_HOC_OSSMCONSOLE_IMAGE
value: {{ .Values.allowAdHocOSSMConsoleImage | quote }}
{{- end }}
- name: ALLOW_AD_HOC_CONTAINERS
value: {{ .Values.allowAdHocContainers | quote }}
- name: ALLOW_SECURITY_CONTEXT_OVERRIDE
value: {{ .Values.allowSecurityContextOverride | quote }}
- name: ALLOW_ALL_ACCESSIBLE_NAMESPACES
Expand Down
4 changes: 4 additions & 0 deletions kiali-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ allowAdHocKialiImage: false
# This is only applicable when running on OpenShift.
allowAdHocOSSMConsoleImage: false

# allowAdHocContainers tells the operator to allow a user to be able to install additional pod containers to the Kiali pod.
# In other words, it will allow the Kiali CR spec.deployment.additional_pod_containers_yaml to be configured by the user.
allowAdHocContainers: false

# allowSecurityContextOverride tells the operator to allow a user to be able to fully override the Kiali
# container securityContext. If this is false, certain securityContext settings must exist on the Kiali
# container and any attempt to override them will be ignored.
Expand Down
3 changes: 3 additions & 0 deletions kiali-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ spec:
resources:
{{- toYaml .Values.deployment.resources | nindent 10 }}
{{- end }}
{{- if .Values.deployment.additional_pod_containers_yaml }}
{{- toYaml .Values.deployment.additional_pod_containers_yaml | nindent 6 }}
{{- end }}
volumes:
- name: {{ include "kiali-server.fullname" . }}-configuration
configMap:
Expand Down
1 change: 1 addition & 0 deletions kiali-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ deployment:
# For more control over what the Kial Service Account can see, use the Kiali Operator
accessible_namespaces:
- "**"
additional_pod_containers_yaml: {}
additional_service_yaml: {}
affinity:
node: {}
Expand Down

0 comments on commit c8994d1

Please sign in to comment.