-
Notifications
You must be signed in to change notification settings - Fork 941
auth: Add entitlements to LXD entities (part 2: Enrich LXD resources with entitlements) #14748
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
auth: Add entitlements to LXD entities (part 2: Enrich LXD resources with entitlements) #14748
Conversation
d5f0001
to
3cae833
Compare
e653ad9
to
7f5457a
Compare
171b326
to
1a09849
Compare
1a09849
to
e18b874
Compare
@minaelee thanks for the feedbacks. Fixing that right now |
6f763e7
to
c793358
Compare
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.
Approach and format seems all right from my point of view. Left some comments below.
Signed-off-by: Gabriel Mougard <[email protected]>
Signed-off-by: Gabriel Mougard <[email protected]>
Signed-off-by: Gabriel Mougard <[email protected]>
Signed-off-by: Gabriel Mougard <[email protected]>
…alization This comes from golangci-lint: "Consider preallocating [filterDBBuckets] (prealloc)" But since we use 'continue' statement in the loop, we can't really forecast a preallocation size, so instead we use `make([]*db.StorageBucket, 0)` which is the same as `var .. []*db.StorageBucket` but it stops the linter from complaining... Signed-off-by: Gabriel Mougard <[email protected]>
Signed-off-by: Gabriel Mougard <[email protected]>
Signed-off-by: Gabriel Mougard <[email protected]>
Signed-off-by: Gabriel Mougard <[email protected]>
Signed-off-by: Gabriel Mougard <[email protected]>
…-group' entities Signed-off-by: Gabriel Mougard <[email protected]>
Signed-off-by: Gabriel Mougard <[email protected]>
Signed-off-by: Gabriel Mougard <[email protected]>
Signed-off-by: Gabriel Mougard <[email protected]>
Signed-off-by: Gabriel Mougard <[email protected]>
Signed-off-by: Gabriel Mougard <[email protected]>
Signed-off-by: Gabriel Mougard <[email protected]>
ced5d8b
to
970b227
Compare
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 thanks!
…entitlements' fields Signed-off-by: Gabriel Mougard <[email protected]>
970b227
to
4cc2a37
Compare
@tomponline auth test passed (it was a simple formatting error with |
@gabrielmougard thanks, please update your jira task and epic to reflect this is done now. |
…with entitlements) (canonical#14748) This is the second part of a group of three stacked PRs. * First part: canonical#14745 Signed-off-by: hamistao <[email protected]>
This should fix the issues discussed here: https://chat.canonical.com/canonical/pl/c3bjkis1g3nmbytao6q5gcaxuc This also add entitlement enrichment for API entities that weren't added as part as #14748
This is the second part of a group of three stacked PRs.
IsFineGrained
field) #14745