Skip to content

Commit

Permalink
Address PR comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
z103cb committed Mar 29, 2024
1 parent 62b198e commit 8dd00b8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 43 deletions.
18 changes: 0 additions & 18 deletions manifests/rhoai/binding_admin_roles.yaml

This file was deleted.

19 changes: 2 additions & 17 deletions manifests/rhoai/kubeflow-training-roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kubeflow-training-admin
labels:
# rbac.authorization.kubeflow.org/aggregate-to-kubeflow-admin: "true"
rbac.authorization.k8s.io/aggregate-to-admin: "true"
aggregationRule:
clusterRoleSelectors:
- matchLabels:
# rbac.authorization.kubeflow.org/aggregate-to-kubeflow-training-admin: "true"
rbac.authorization.k8s.io/aggregate-to-admin: "true"
rules: []

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kubeflow-training-edit
name: training-edit
labels:
# rbac.authorization.kubeflow.org/aggregate-to-kubeflow-edit: "true"
# rbac.authorization.kubeflow.org/aggregate-to-kubeflow-training-admin: "true"
Expand Down Expand Up @@ -76,7 +61,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kubeflow-training-view
name: training-view
labels:
# rbac.authorization.kubeflow.org/aggregate-to-kubeflow-view: "true"
rbac.authorization.k8s.io/aggregate-to-view: "true"
Expand Down
6 changes: 2 additions & 4 deletions manifests/rhoai/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace: opendatahub
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: kfto-
namePrefix: kubeflow-

configMapGenerator:
- name: rhoai-config
Expand Down Expand Up @@ -36,12 +36,10 @@ resources:
- ../base
- kubeflow-training-roles.yaml
- monitor.yaml
- binding_admin_roles.yaml
#- webhook_network_policy.yaml
#- batch-user-rolebinding.yaml

patches:
# Mount the controller config file for loading manager configurations
# through a ComponentConfig type
- path: manager_config_patch.yaml
- path: manager_metrics_patch.yaml
- path: manager_delete_metrics_service_patch.yaml
6 changes: 6 additions & 0 deletions manifests/rhoai/manager_delete_metrics_service_patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Delete the service created in base
$patch: delete
apiVersion: v1
kind: Service
metadata:
name: training-operator
2 changes: 0 additions & 2 deletions manifests/rhoai/manager_metrics_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: training-operator
# namespace: opendatahub
spec:
template:
spec:
containers:
- name: training-operator
ports:
- containerPort: 8080
protocol: TCP
name: metrics
3 changes: 1 addition & 2 deletions manifests/rhoai/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: controller-manager-metrics-monitor
namespace: opendatahub
name: training-operator-metrics-monitor
spec:
selector:
matchLabels:
Expand Down

0 comments on commit 8dd00b8

Please sign in to comment.