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

fix: correctly handle project field during partial cluster update #7994

Merged
merged 1 commit into from
Dec 20, 2021

Conversation

alexmt
Copy link
Collaborator

@alexmt alexmt commented Dec 19, 2021

Signed-off-by: Alexander Matyushentsev [email protected]

The #7039 introduced project scoped clusters support and introduced access check that ensures that user has permissions to change project. We did not take partial cluster update (using updatedFields query parameter) . The permission check should be done only is "full" update is executed or request updates "project" field.

@codecov
Copy link

codecov bot commented Dec 19, 2021

Codecov Report

Merging #7994 (932f820) into master (e50d03e) will decrease coverage by 0.00%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7994      +/-   ##
==========================================
- Coverage   41.49%   41.49%   -0.01%     
==========================================
  Files         173      173              
  Lines       22576    22591      +15     
==========================================
+ Hits         9369     9375       +6     
- Misses      11875    11885      +10     
+ Partials     1332     1331       -1     
Impacted Files Coverage Δ
server/cluster/cluster.go 27.36% <66.66%> (+2.49%) ⬆️
util/settings/settings.go 46.85% <0.00%> (-0.75%) ⬇️
util/oidc/oidc.go 19.21% <0.00%> (+0.18%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e50d03e...932f820. Read the comment docs.

@jannfis
Copy link
Member

jannfis commented Dec 19, 2021

Just a nit, but I think you linked the wrong issue :)

@alexmt
Copy link
Collaborator Author

alexmt commented Dec 20, 2021

You are right @jannfis ! I did not read the issue description carefully. Updated description.

@alexmt alexmt force-pushed the 7948-save-cluster-error branch from 0c7fa5e to 932f820 Compare December 20, 2021 17:16
Copy link
Member

@jannfis jannfis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jannfis jannfis added the cherry-pick/2.2 Candidate for cherry picking into the 2.2 release branch label Dec 20, 2021
@alexmt alexmt merged commit 487db97 into argoproj:master Dec 20, 2021
@alexmt alexmt deleted the 7948-save-cluster-error branch December 20, 2021 20:52
alexmt pushed a commit that referenced this pull request Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick/2.2 Candidate for cherry picking into the 2.2 release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants