Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Infrastructure GitOps
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shivering-Isles
Infrastructure GitOps
Commits
e17a8366
Verified
Commit
e17a8366
authored
1 year ago
by
Sheogorath
Browse files
Options
Downloads
Patches
Plain Diff
fix(system-upgrade): Align permissions even better
parent
be6bac9a
Branches
Branches containing commit
Tags
Tags containing commit
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bootstrap/system-upgrades/clusterrole.yaml
+29
-11
29 additions, 11 deletions
bootstrap/system-upgrades/clusterrole.yaml
bootstrap/system-upgrades/clusterrolebinding.yaml
+12
-0
12 additions, 0 deletions
bootstrap/system-upgrades/clusterrolebinding.yaml
with
41 additions
and
11 deletions
bootstrap/system-upgrades/clusterrole.yaml
+
29
−
11
View file @
e17a8366
...
...
@@ -3,21 +3,12 @@ kind: ClusterRole
metadata
:
name
:
system-upgrade-controller
rules
:
-
apiGroups
:
-
batch
resources
:
-
jobs
verbs
:
-
create
-
delete
-
deletecollection
-
patch
-
update
-
apiGroups
:
-
"
"
resources
:
-
secrets
-
namespaces
-
nodes
-
customresourcedefinitions
verbs
:
-
get
-
list
...
...
@@ -34,6 +25,33 @@ rules:
-
patch
-
delete
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
Role
metadata
:
name
:
system-upgrade-controller
rules
:
-
apiGroups
:
-
batch
resources
:
-
jobs
verbs
:
-
create
-
delete
-
deletecollection
-
patch
-
update
-
get
-
list
-
watch
-
apiGroups
:
-
"
"
resources
:
-
secrets
verbs
:
-
get
-
list
-
watch
---
# Borrowed from https://stackoverflow.com/a/63553032
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
...
...
This diff is collapsed.
Click to expand it.
bootstrap/system-upgrades/clusterrolebinding.yaml
+
12
−
0
View file @
e17a8366
...
...
@@ -20,5 +20,17 @@ roleRef:
kind
:
ClusterRole
name
:
system-upgrade-controller
subjects
:
-
kind
:
ServiceAccount
name
:
system-upgrade
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
metadata
:
name
:
system-upgrade
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
Role
name
:
system-upgrade-controller
subjects
:
-
kind
:
ServiceAccount
name
:
system-upgrade
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment