hashicorp / terraform-enterprise-helm

The official repo for Terraform Enterprise helm charts
Mozilla Public License 2.0
16 stars 17 forks source link

Add openshift support #71

Closed kosyfrances closed 5 months ago

kosyfrances commented 5 months ago

Jira

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. Screenshot 2024-05-21 at 1 26 45 PM

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. Screenshot 2024-05-21 at 1 27 08 PM Screenshot 2024-05-21 at 1 27 33 PM

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. Screenshot 2024-05-21 at 1 40 17 PM Screenshot 2024-05-21 at 2 04 15 PM

Screenshot 2024-05-21 at 2 04 31 PM