diff --git a/backend/src/apiserver/common/config.go b/backend/src/apiserver/common/config.go index 62b2fa7c342b..21e1d62a994c 100644 --- a/backend/src/apiserver/common/config.go +++ b/backend/src/apiserver/common/config.go @@ -38,6 +38,7 @@ const ( SignedURLExpiryTimeSeconds string = "SIGNED_URL_EXPIRY_TIME_SECONDS" CaBundleMountPath string = "ARTIFACT_COPY_STEP_CABUNDLE_MOUNTPATH" CaBundleConfigMapKey string = "ARTIFACT_COPY_STEP_CABUNDLE_CONFIGMAP_KEY" + CaBundleConfigMapName string = "ARTIFACT_COPY_STEP_CABUNDLE_CONFIGMAP_NAME" ) func IsPipelineVersionUpdatedByDefault() bool { diff --git a/backend/src/v2/compiler/argocompiler/common.go b/backend/src/v2/compiler/argocompiler/common.go index 27363dc8915b..c3c471431443 100644 --- a/backend/src/v2/compiler/argocompiler/common.go +++ b/backend/src/v2/compiler/argocompiler/common.go @@ -99,7 +99,7 @@ func GetMLPipelineServicePortGRPC() string { // ConfigureCABundle adds CABundle environment variables and volume mounts // if CA Bundle env vars are specified. func ConfigureCABundle(tmpl *wfapi.Template) { - caBundleCfgMapName := os.Getenv("ARTIFACT_COPY_STEP_CABUNDLE_CONFIGMAP_NAME") + caBundleCfgMapName := os.Getenv(common.CaBundleConfigMapName) caBundleCfgMapKey := os.Getenv(common.CaBundleConfigMapKey) caBundleMountPath := os.Getenv(common.CaBundleMountPath) if caBundleCfgMapName != "" && caBundleCfgMapKey != "" {