This PR adds support for openshift on the helm chart.
If Values.openshift.enabled is true, TFE_RUN_PIPELINE_KUBERNETES_OPEN_SHIFT_ENABLED is set to true on the configmap.
If Values.container.securityContext is not set when openshift is enabled, then it gets set on the deployment file.
If Values.agentWorkerPodTemplate.securityContext is not set when openshift is enabled, then TFE_RUN_PIPELINE_KUBERNETES_POD_TEMPLATE gets set with the security context on the configmap.
If Values.agentWorkerPodTemplate was set but no securityContext when openshift is enabled, then TFE_RUN_PIPELINE_KUBERNETES_POD_TEMPLATE still gets set with the value of agentWorkerPodTemplate including security context on the configmap.
Jira
This PR adds support for openshift on the helm chart.
If
Values.openshift.enabled
istrue
,TFE_RUN_PIPELINE_KUBERNETES_OPEN_SHIFT_ENABLED
is set totrue
on the configmap. IfValues.container.securityContext
is not set when openshift is enabled, then it gets set on the deployment file.If
Values.agentWorkerPodTemplate.securityContext
is not set when openshift is enabled, thenTFE_RUN_PIPELINE_KUBERNETES_POD_TEMPLATE
gets set with the security context on the configmap.If
Values.agentWorkerPodTemplate
was set but nosecurityContext
when openshift is enabled, thenTFE_RUN_PIPELINE_KUBERNETES_POD_TEMPLATE
still gets set with the value of agentWorkerPodTemplate including security context on the configmap.