Skip to content

fix(k8s): reject unsupported image.auth with actionable error#364

Merged
Pangjiping merged 1 commit intoalibaba:mainfrom
liuxiaopai-ai:codex/k8s-reject-image-auth
Mar 6, 2026
Merged

fix(k8s): reject unsupported image.auth with actionable error#364
Pangjiping merged 1 commit intoalibaba:mainfrom
liuxiaopai-ai:codex/k8s-reject-image-auth

Conversation

@liuxiaopai-ai
Copy link
Copy Markdown
Contributor

Summary

  • add explicit validation in Kubernetes runtime to reject per-request image.auth
  • return 400 INVALID_PARAMETER with actionable guidance to use imagePullSecrets
  • add unit test to verify fail-fast behavior and ensure no workload is created

Why

Issue #328 shows user confusion when private images fail in K8s mode. Today image.auth is silently ignored in K8s runtime, which leads to late timeout errors and poor debuggability. Failing fast with a clear message prevents misconfiguration.

Testing

  • pytest -q server/tests/k8s/test_kubernetes_service.py
  • result: 20 passed

Refs #328

@Pangjiping
Copy link
Copy Markdown
Collaborator

Thanks for this fix. 😊

Copy link
Copy Markdown
Collaborator

@Pangjiping Pangjiping left a comment

Choose a reason for hiding this comment

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

lgtm

@Pangjiping Pangjiping merged commit d1eed94 into alibaba:main Mar 6, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working component/server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants