mirror of
https://github.com/hanzo-ml/katib.git
synced 2026-09-24 00:31:27 +00:00
* Backend for getting logs of a trial * Check Write return + use PrimaryPodLabels * Add auth + use constants for labels + cleanup * TODO comment for using controller-runtime client for logs * Authorization for list pods and get logs, reduce RBAC * Use corev1 for specifying resources, edit kf install RBAC * Check namespace and trialName from request * Remove auth checks for listing the pods * Use context.Background()
53 lines
835 B
YAML
53 lines
835 B
YAML
---
|
|
kind: ClusterRole
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: katib-ui
|
|
rules:
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- configmaps
|
|
- namespaces
|
|
verbs:
|
|
- "*"
|
|
- apiGroups:
|
|
- kubeflow.org
|
|
resources:
|
|
- experiments
|
|
- trials
|
|
- suggestions
|
|
verbs:
|
|
- "*"
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- pods
|
|
verbs:
|
|
- list
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- pods/log
|
|
verbs:
|
|
- get
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: katib-ui
|
|
namespace: kubeflow
|
|
---
|
|
kind: ClusterRoleBinding
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: katib-ui
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: katib-ui
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: katib-ui
|
|
namespace: kubeflow
|