Skip to content

Apply defaults for Kubernetes Rollout and Multicluster Plugins#6518

Open
rawadhossain wants to merge 1 commit intopipe-cd:masterfrom
rawadhossain:k8s-plugins-defaults
Open

Apply defaults for Kubernetes Rollout and Multicluster Plugins#6518
rawadhossain wants to merge 1 commit intopipe-cd:masterfrom
rawadhossain:k8s-plugins-defaults

Conversation

@rawadhossain
Copy link

What this PR does:
Applies default values in Kubernetes-related plugins by adding UnmarshalJSON methods that call defaults.Set() where configs are unmarshaled without default handling.

Why we need it:
Kubernetes rollout and multicluster configs had default tags that were not applied during unmarshaling.

Part of Issue #6174

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
    • Kubernetes rollout stages now correctly apply default suffixes (primary, canary, baseline) when omitted
    • Kubernetes multicluster applications now correctly apply default variant labels when not specified
  • Is this breaking change: No
  • How to migrate (if breaking change): N/A

Signed-off-by: Rawad Hossain <rawad.hossain00@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant