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

acl: modify update endpoints behavior #15580

Merged
merged 6 commits into from
Dec 20, 2022

Conversation

pkazmierczak
Copy link
Contributor

@pkazmierczak pkazmierczak commented Dec 19, 2022

API and RPC endpoints for ACLAuthMethods and ACLBindingRules should allow users to send incomplete objects in order to, e.g., update single fields. This PR provides "merging" functionality for these endpoints.

Relates to #13120

@vercel
Copy link

vercel bot commented Dec 19, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nomad 🔄 Building (Inspect) Dec 19, 2022 at 7:12PM (UTC)
nomad-storybook-and-ui 🔄 Building (Inspect) Dec 19, 2022 at 7:12PM (UTC)

Copy link
Member

@shoenig shoenig left a comment

Choose a reason for hiding this comment

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

LGTM; any chance we can add a test case that stresses the changes to UpsertAuthMethods ?

helper/funcs.go Outdated Show resolved Hide resolved
nomad/acl_endpoint.go Show resolved Hide resolved
nomad/acl_endpoint.go Outdated Show resolved Hide resolved
@shoenig
Copy link
Member

shoenig commented Dec 19, 2022

Oooh actually looks like those test failures might be related

Well maybe related, but they're also broken on main https://github.com/hashicorp/nomad/actions/runs/3733911824/jobs/6335331833

@pkazmierczak
Copy link
Contributor Author

pkazmierczak commented Dec 20, 2022

Oooh actually looks like those test failures might be related

Well maybe related, but they're also broken on main https://github.com/hashicorp/nomad/actions/runs/3733911824/jobs/6335331833

oof that's bad. I'll fix in a separate PR.

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants