Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Y-Rookie
Copy link
Collaborator

No description provided.

@Y-Rookie Y-Rookie requested a review from a team as a code owner December 13, 2024 03:50
@github-actions github-actions bot added the size/XS Denotes a PR that changes 0-9 lines. label Dec 13, 2024
@apecloud-bot apecloud-bot added the approved PR Approved Test label Dec 13, 2024
@github-actions github-actions bot removed the size/XS Denotes a PR that changes 0-9 lines. label Dec 13, 2024
@apecloud-bot apecloud-bot removed the approved PR Approved Test label Dec 13, 2024
@github-actions github-actions bot added the size/S Denotes a PR that changes 10-29 lines. label Dec 13, 2024
Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.41%. Comparing base (2f60dc9) to head (ebe9edb).
Report is 4 commits behind head on main.

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     
Flag Coverage Δ
unittests 60.41% <100.00%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -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 {
Copy link
Contributor

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.

Copy link
Collaborator Author

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

@github-actions github-actions bot added size/M Denotes a PR that changes 30-99 lines. and removed size/S Denotes a PR that changes 10-29 lines. labels Dec 13, 2024
@github-actions github-actions bot added size/S Denotes a PR that changes 10-29 lines. and removed size/M Denotes a PR that changes 30-99 lines. labels Dec 13, 2024
@apecloud-bot apecloud-bot added the approved PR Approved Test label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved PR Approved Test size/S Denotes a PR that changes 10-29 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants