Skip to content

Fix/gateway_name#59

Merged
iasthc merged 4 commits intomainfrom
fix/initcontainer_mount_harbor_secret
Apr 1, 2026
Merged

Fix/gateway_name#59
iasthc merged 4 commits intomainfrom
fix/initcontainer_mount_harbor_secret

Conversation

@george-wu20250203
Copy link
Copy Markdown
Contributor

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the default gateway name to otterscale-llm-d-infra-inference-gateway and introduces a hardcoded fsGroup of 1000 for the model artifact job's security context. While the implementation is functional, it is recommended to make the fsGroup configurable rather than hardcoded to improve the operator's flexibility and compatibility across different Kubernetes environments and security policies.

Comment thread internal/modelartifact/job.go Outdated
// so that kit push authenticates transparently without an explicit login step
func BuildJob(artifact *modelv1alpha1.ModelArtifact, kitImage string, labels map[string]string) *batchv1.Job {
env := buildEnvVars(artifact)
fsGroup := int64(1000)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Hardcoding the fsGroup to 1000 limits the operator's flexibility in environments with strict security policies (e.g., OpenShift) or when using custom kit images that expect a different GID. Since the kit-image is already configurable via a flag, consider making the fsGroup configurable as well to improve the operator's portability and compatibility with various cluster configurations.

@iasthc iasthc merged commit ca17623 into main Apr 1, 2026
10 checks passed
@iasthc iasthc deleted the fix/initcontainer_mount_harbor_secret branch April 1, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants