Skip to content

Commit

Permalink
Merge pull request #74 from rogerioefonseca/updating-rbac-api-to-v1
Browse files Browse the repository at this point in the history
Updating RBAC to version V1 to remove warning deprecation message
  • Loading branch information
brianberzins authored Dec 16, 2021
2 parents 4fd4eb2 + 139da17 commit e172f93
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions chart/pod-reaper/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
---
# minimal permissions required for running pod-reaper at cluster level
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: pod-reaper-cluster-role
rules:
Expand All @@ -22,7 +22,7 @@ rules:

---
# binding the above cluster role (permissions) to the above service account
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: pod-reaper-role-binding
Expand Down
4 changes: 2 additions & 2 deletions examples/cluster-permissions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
---
# minimal permissions required for running pod-reaper at cluster level
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: pod-reaper-cluster-role
rules:
Expand All @@ -29,7 +29,7 @@ rules:

---
# binding the above cluster role (permissions) to the above service account
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: pod-reaper-role-binding
Expand Down
4 changes: 2 additions & 2 deletions examples/complex-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ metadata:
---
# minimal permissions required for running pod-reaper at cluster level
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: pod-reaper-cluster-role
rules:
Expand All @@ -28,7 +28,7 @@ rules:

---
# binding the above cluster role (permissions) to the above service account
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: pod-reaper-role-binding
Expand Down
4 changes: 2 additions & 2 deletions examples/namespace-permissions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
---
# minimal permissions required for running pod-reaper
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: reaper
name: pod-reaper-role
Expand All @@ -30,7 +30,7 @@ rules:

---
# binding the above role (permissions) to the above service account
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: pod-reaper-role-binding
Expand Down
4 changes: 2 additions & 2 deletions examples/one-time-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
---
# minimal permissions required for running pod-reaper at cluster level
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: pod-reaper-cluster-role
rules:
Expand All @@ -29,7 +29,7 @@ rules:

---
# binding the above cluster role (permissions) to the above service account
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: pod-reaper-role-binding
Expand Down

0 comments on commit e172f93

Please sign in to comment.