Skip to content

Conversation

alyssacgoins
Copy link
Contributor

Description of your changes:
Resolves #12381

Checklist:

Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign mprahl for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot requested a review from gmfrasca October 20, 2025 20:50
@google-oss-prow google-oss-prow bot requested a review from mprahl October 20, 2025 20:50
inputParameter(paramRetryBackOffMaxDuration))
}
// Update pod metadata if it defined in the Kubernetes Spec
if k8sExecCfg.GetPodMetadata() != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to your PR, but could you change the condition around ConfigureCustomCABundle to match the other instances?

	if common.GetCaBundleSecretName() != "" && (c.mlPipelineTLSEnabled || common.GetMetadataTLSEnabled()) {
		ConfigureCustomCABundle(executor)
	}

}
caBundleCfgMapName := os.Getenv("EXECUTOR_CABUNDLE_CONFIGMAP_NAME")
caBundleCfgMapKey := os.Getenv("EXECUTOR_CABUNDLE_CONFIGMAP_KEY")
caBundleMountPath := os.Getenv("EXECUTOR_CABUNDLE_MOUNTPATH")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking more along the lines of if common.GetCaBundleSecretName() == "" && caBundleCfgMapName != "" && caBundleCfgMapKey != "" { then mount the ConfigMap at the same location that we do for GetCaBundleSecretName() and keep the launcher logic the same. So in other words, GetCaBundleSecretName takes priority and then we fall back to EXECUTOR_CABUNDLE_CONFIGMAP_NAME.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it - so leave the logic in launcher_v2 untouched, and modify only the container.go logic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(backend): Consolidate system CA bundle logic to a single location

2 participants