-
Notifications
You must be signed in to change notification settings - Fork 183
[K8s Plugin] Add helper function to add variant label and annotation #5857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[K8s Plugin] Add helper function to add variant label and annotation #5857
Conversation
…ifests. Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
…nifests. Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
…uster plugin Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5857 +/- ##
==========================================
- Coverage 27.79% 27.77% -0.02%
==========================================
Files 510 510
Lines 54329 54316 -13
==========================================
- Hits 15101 15088 -13
Misses 38082 38082
Partials 1146 1146 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost LGTM
|
||
for _, tc := range testcases { | ||
t.Run(tc.name, func(t *testing.T) { | ||
manifests, err := provider.ParseManifests(tc.inputYAML) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add t.Parallel()? (I'm not confident😅)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, thank you. I'll add it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
c98d2af
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ipe-cd#5857) * Add a function to add variant labels and annotations to the given manifests. Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]> * Use a helper function to add variant labels and annotations to all manifests. Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]> * Define and use addVariantLabelsAndAnnotations function in k8s_multicluster plugin Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]> * Add t.Parallel() to test cases. Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]> --------- Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]> Signed-off-by: Arya Soni <[email protected]>
What this PR does:
as title
Why we need it:
to simplify codes
Which issue(s) this PR fixes:
Part of #5764
Does this PR introduce a user-facing change?: No