-
Notifications
You must be signed in to change notification settings - Fork 187
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
chore: forbidden vars value and valueFrom are specified #8635
base: main
Are you sure you want to change the base?
chore: forbidden vars value and valueFrom are specified #8635
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8635 +/- ##
==========================================
- Coverage 60.49% 60.41% -0.08%
==========================================
Files 378 378
Lines 45623 45626 +3
==========================================
- Hits 27598 27567 -31
- Misses 15441 15477 +36
+ Partials 2584 2582 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
pkg/controller/component/vars.go
Outdated
@@ -340,6 +340,9 @@ func resolveClusterObjectRefVars(ctx context.Context, cli client.Reader, synthes | |||
} | |||
vars1, vars2 := make([]corev1.EnvVar, 0), make([]corev1.EnvVar, 0) | |||
for _, v := range definedVars { | |||
if len(v.Value) > 0 && v.ValueFrom != nil { |
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.
Perform this check in the cmpd controller.
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.
Perform this check in the cmpd controller.
done
No description provided.