diff --git a/manifests/rhoai/binding_admin_roles.yaml b/manifests/rhoai/binding_admin_roles.yaml deleted file mode 100644 index fcd89266f1..0000000000 --- a/manifests/rhoai/binding_admin_roles.yaml +++ /dev/null @@ -1,18 +0,0 @@ -kind: ClusterRoleBinding -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: admin-rolebinding -subjects: - - kind: Group - apiGroup: rbac.authorization.k8s.io - name: rhods-admins - - kind: Group - apiGroup: rbac.authorization.k8s.io - name: odh-admins - - kind: Group - apiGroup: rbac.authorization.k8s.io - name: dedicated-admins -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: kubeflow-training-admin diff --git a/manifests/rhoai/kubeflow-training-roles.yaml b/manifests/rhoai/kubeflow-training-roles.yaml index cc270f3266..27c258eac7 100644 --- a/manifests/rhoai/kubeflow-training-roles.yaml +++ b/manifests/rhoai/kubeflow-training-roles.yaml @@ -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" @@ -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" diff --git a/manifests/rhoai/kustomization.yaml b/manifests/rhoai/kustomization.yaml index b173bb7374..702fe6e4e6 100644 --- a/manifests/rhoai/kustomization.yaml +++ b/manifests/rhoai/kustomization.yaml @@ -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 @@ -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 diff --git a/manifests/rhoai/manager_delete_metrics_service_patch.yaml b/manifests/rhoai/manager_delete_metrics_service_patch.yaml new file mode 100644 index 0000000000..e373d0c38c --- /dev/null +++ b/manifests/rhoai/manager_delete_metrics_service_patch.yaml @@ -0,0 +1,6 @@ +# Delete the service created in base +$patch: delete +apiVersion: v1 +kind: Service +metadata: + name: training-operator diff --git a/manifests/rhoai/manager_metrics_patch.yaml b/manifests/rhoai/manager_metrics_patch.yaml index a0e41e63cc..2d53ca8ade 100644 --- a/manifests/rhoai/manager_metrics_patch.yaml +++ b/manifests/rhoai/manager_metrics_patch.yaml @@ -2,7 +2,6 @@ apiVersion: apps/v1 kind: Deployment metadata: name: training-operator -# namespace: opendatahub spec: template: spec: @@ -10,5 +9,4 @@ spec: - name: training-operator ports: - containerPort: 8080 - protocol: TCP name: metrics diff --git a/manifests/rhoai/monitor.yaml b/manifests/rhoai/monitor.yaml index 9465686a7c..ca8fac49d1 100644 --- a/manifests/rhoai/monitor.yaml +++ b/manifests/rhoai/monitor.yaml @@ -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: