Skip to content

Commit 7d2c39d

Browse files
author
Vinay Devadiga
committed
feat(rolling-update): add hyperpod-patching subchart with RBAC for pod eviction
1 parent 84963ab commit 7d2c39d

File tree

6 files changed

+36
-2
lines changed

6 files changed

+36
-2
lines changed

helm_chart/HyperPodHelmChart/Chart.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,8 @@ dependencies:
7474
- name: team-role-and-bindings
7575
version: "0.1.0"
7676
repository: "file://charts/team-role-and-bindings"
77-
condition: team-role-and-bindings.enabled
77+
condition: team-role-and-bindings.enabled
78+
- name: hyperpod-patching
79+
version: "0.1.0"
80+
repository: "file://charts/hyperpod-patching"
81+
condition: hyperpod-patching.enabled
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: v2
2+
name: hyperpod-patching
3+
description: A subchart for RBAC used by HyperPod patching workflows
4+
version: 0.1.0
5+
appVersion: "1.0"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: hyperpod-patching
5+
rules:
6+
- apiGroups: [""]
7+
resources: ["pods"]
8+
verbs: ["list"]
9+
- apiGroups: [""]
10+
resources: ["pods/eviction"]
11+
verbs: ["create"]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRoleBinding
3+
metadata:
4+
name: hyperpod-patching
5+
subjects:
6+
- kind: User
7+
name: hyperpod-service-linked-role
8+
apiGroup: rbac.authorization.k8s.io
9+
roleRef:
10+
kind: ClusterRole
11+
name: hyperpod-patching
12+
apiGroup: rbac.authorization.k8s.io

helm_chart/HyperPodHelmChart/charts/hyperpod-patching/values.yaml

Whitespace-only changes.

helm_chart/HyperPodHelmChart/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,4 +259,6 @@ health-monitoring-agent:
259259
deep-health-check:
260260
enabled: true
261261
job-auto-restart:
262-
enabled: true
262+
enabled: true
263+
hyperpod-patching:
264+
enabled: true

0 commit comments

Comments
 (0)