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

doc: Correction of rbac api group for AppVersionRevision #1154

Merged
merged 1 commit into from
May 25, 2023

Conversation

patriknw
Copy link
Member

  • pods is in core "" api group
  • replicasets is in "apps" api group

* pods is in core "" api group
* replicasets is in "apps" api group
resources: ["pods"] # access to get replicaset
verbs: ["get", "list"]
- apiGroups: ["apps"]
resources: ["replicasets"] # access to get revision annotation
Copy link
Member Author

Choose a reason for hiding this comment

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

it works to define it as ["apps", ""] but it's rather confusing

Copy link
Contributor

Choose a reason for hiding this comment

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

indeed, better now

@@ -296,7 +296,7 @@ PUTs must contain resourceVersions. Response:
Unmarshal(response.entity)
.to[String]
.map(body =>
throw new PodCostException(
throw new UnauthorizedException(
Copy link
Member Author

Choose a reason for hiding this comment

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

doesn't matter what exception is used here, but since handleUnauthorized is also used for the revision

Copy link
Contributor

@efgpinto efgpinto left a comment

Choose a reason for hiding this comment

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

LGTM

resources: ["pods"] # access to get replicaset
verbs: ["get", "list"]
- apiGroups: ["apps"]
resources: ["replicasets"] # access to get revision annotation
Copy link
Contributor

Choose a reason for hiding this comment

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

indeed, better now

@patriknw patriknw merged commit b0ed247 into main May 25, 2023
13 checks passed
@patriknw patriknw deleted the wip-rolling-update-rbac-patriknw branch May 25, 2023 15:01
@patriknw patriknw added this to the 1.4.2 milestone May 25, 2023
@johanandren johanandren modified the milestones: 1.4.2, 1.5.0 May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants