Skip to content

Conversation

@bpradipt
Copy link
Contributor

@bpradipt bpradipt commented Dec 3, 2025

No description provided.

bpradipt and others added 4 commits December 3, 2025 18:26
Trustee KBS only handles dockerconfigjson format. This change automatically
detects and converts legacy .dockercfg format imagePullSecrets to the newer
.dockerconfigjson format before uploading to Trustee.

The conversion wraps registry credentials in an "auths" object while preserving
all authentication data and email fields. The converted key is stored as
dockerconfigjson in KBS and referenced correctly in initdata.

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Pradipta Banerjee <[email protected]>
This commit implements automatic --sidecar-port-forward detection from
Service manifests in multi-document YAML files. The implementation
includes named port resolution by inspecting container ports.

Key features:
- Multi-document YAML parsing with LoadMultiDocument()
- Service targetPort extraction (numeric and named ports)
- Named port resolution by searching container ports
- Automatic port detection when --sidecar is enabled
- Conflict detection for sidecar HTTPS port (8443)
- Backward compatible with single-document manifests

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Pradipta Banerjee <[email protected]>
Added 6 test cases for the real-world vLLM deployment manifest that
includes a headless Service and complex Deployment with probes, volumes,
and resource limits. These tests validate:

1. Service-before-Deployment ordering (GetPrimaryManifest correctness)
2. Named port resolution (targetPort: http -> containerPort: 8000)
3. Headless service support (clusterIP: None)
4. Complex deployment structure handling
5. Existing runtimeClassName preservation
6. Existing annotations preservation

Test cases:
- TestManifestSet_vLLM_ServiceBeforeDeployment
- TestManifestSet_vLLM_NamedPortResolution
- TestManifestSet_vLLM_HeadlessService
- TestManifestSet_vLLM_ComplexDeployment
- TestManifestSet_vLLM_ExistingRuntimeClass
- TestManifestSet_vLLM_ExistingAnnotations

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Pradipta Banerjee <[email protected]>
The type name ManifestSet stutters with the package name manifest.
Following Go naming conventions, renamed to manifest.Set.

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Pradipta Banerjee <[email protected]>
@bpradipt bpradipt merged commit be3d586 into main Dec 3, 2025
3 checks passed
@bpradipt bpradipt deleted the multi-yaml branch December 3, 2025 17:40
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