Skip to content

Commit a40163f

Browse files
fix(backend): the metacontroller is broken since kubeflow#11474 (kubeflow#11608)
* Update cluster-role-binding.yaml Signed-off-by: Julius von Kohout <[email protected]> * Create cluster-role.yaml Signed-off-by: juliusvonkohout <[email protected]> * Update kustomization.yaml Signed-off-by: juliusvonkohout <[email protected]> * Update stateful-set.yaml Signed-off-by: juliusvonkohout <[email protected]> --------- Signed-off-by: Julius von Kohout <[email protected]> Signed-off-by: juliusvonkohout <[email protected]>
1 parent 0178d41 commit a40163f

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed

manifests/kustomize/third-party/metacontroller/base/cluster-role-binding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
roleRef:
66
apiGroup: rbac.authorization.k8s.io
77
kind: ClusterRole
8-
name: cluster-admin
8+
name: kubeflow-metacontroller
99
subjects:
1010
- kind: ServiceAccount
1111
name: meta-controller-service
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: kubeflow-metacontroller
5+
rules:
6+
- apiGroups: [""]
7+
resources: ["namespaces"]
8+
verbs: ["get", "list", "watch"]
9+
- apiGroups: [""]
10+
resources: ["secrets", "configmaps"]
11+
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
12+
- apiGroups: ["apps"]
13+
resources: ["deployments"]
14+
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
15+
- apiGroups: [""]
16+
resources: ["services"]
17+
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
18+
- apiGroups: ["networking.istio.io"]
19+
resources: ["destinationrules"]
20+
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
21+
- apiGroups: ["security.istio.io"]
22+
resources: ["authorizationpolicies"]
23+
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
24+
- apiGroups: ["metacontroller.k8s.io"]
25+
resources: ["compositecontrollers", "controllerrevisions", "decoratorcontrollers"]
26+
verbs: ["get", "list", "watch"]

manifests/kustomize/third-party/metacontroller/base/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: kubeflow
44
resources:
5+
- cluster-role.yaml
56
- cluster-role-binding.yaml
67
- crd.yaml
78
- service-account.yaml
89
- stateful-set.yaml
910
commonLabels:
1011
kustomize.component: metacontroller
11-
1212
# Update metacontroller CRD:
1313
# Copy the upstream file to crd.yaml in this folder.
14-
# Upstream file: https://github.com/metacontroller/metacontroller/blob/master/manifests/production/metacontroller-crds-v1.yaml
14+
# Upstream file: https://github.com/metacontroller/metacontroller/blob/master/manifests/production/metacontroller-crds-v1.yaml

manifests/kustomize/third-party/metacontroller/base/stateful-set.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
privileged: false
4242
allowPrivilegeEscalation: false
4343
name: metacontroller
44-
image: 'ghcr.io/metacontroller/metacontroller:v4.11.21'
44+
image: 'ghcr.io/metacontroller/metacontroller:v2.6.1'
4545
serviceAccountName: meta-controller-service
4646
# Workaround for https://github.com/kubernetes-sigs/kustomize/issues/677
4747
volumeClaimTemplates: []

0 commit comments

Comments
 (0)