Skip to content

Commit

Permalink
Added SSL_CERT_DIR env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
VaniHaripriya committed Feb 26, 2024
1 parent 25a29dd commit db71bb4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions backend/src/v2/compiler/argocompiler/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package argocompiler
import (
"fmt"
"os"
"strings"

wfapi "github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1"
"github.com/kubeflow/pipelines/api/v2alpha1/go/pipelinespec"
Expand Down Expand Up @@ -346,6 +347,20 @@ func (c *workflowCompiler) addContainerExecutorTemplate() string {
caBundleCfgMapKey := os.Getenv("ARTIFACT_COPY_STEP_CABUNDLE_CONFIGMAP_KEY")
caBundleMountPath := os.Getenv("ARTIFACT_COPY_STEP_CABUNDLE_MOUNTPATH")
if caBundleCfgMapName != "" && caBundleCfgMapKey != "" {
var certDirectories = []string{
caBundleMountPath,
"/etc/ssl/certs",
"/etc/pki/tls/certs",
}
sslCertDir := strings.Join(certDirectories, ":")
commonEnvs = append(commonEnvs, k8score.EnvVar{
Name: "SSL_CERT_DIR",
Value: sslCertDir,
})
executor.Container.Env = append(executor.Container.Env, k8score.EnvVar{
Name: "SSL_CERT_DIR",
Value: sslCertDir,
})
volume := k8score.Volume{
Name: volumeNameCABUndle,
VolumeSource: k8score.VolumeSource{
Expand Down

0 comments on commit db71bb4

Please sign in to comment.