Repository navigation
feat(cilium): support cluster-id and cluster-name annotations for ck-network - #75
Draft
shipperizer wants to merge 1 commit into
Draft
shipperizer wants to merge 1 commit into
shipperizer wants to merge 1 commit into
Conversation
Author
Summary of Changes
Review & Assessment
Suggested Test Additions (Non-Blocking)
Pre-Merge Requirement
VerdictLGTM / Approve (Pending dependency release). Reviewed by Gemini 3.7 Flash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Consumes the new k8s-snap-api annotation constants and translates them into Helm values for the
ck-network(Cilium) release:consume k8sd/v1alpha1/cilium/cluster-id→cluster.id(int, range 0–255)k8sd/v1alpha1/cilium/cluster-name→cluster.name(string, ≤32 chars, lower-case alphanumeric and dashes, no leading/trailing dash)Validation lives in
internal.go(validateClusterID,validateClusterName); a cross-check rejects a non-zero ID with the default/empty name, which violates the chart constraint. Theclustervalues map is rendered only when at least one annotation is set, preserving current behavior for existing clusters.Testing
Unit tests extended in
internal_test.go(12 new cases) andnetwork_test.go(newClusterIDAndName/ClusterIDAndNameInvalidsub-tests). Run with:Notes for reviewers
go.modcurrently contains a dev-onlyreplacepointing to the local k8s-snap-api checkout. Before merge, update to the tagged k8s-snap-api release that includes the new constants.Part of: Cilium ClusterMesh identity support.