kubeflow/conformance/1.5/setup.yaml

73 строки
1.9 KiB
YAML

# Copyright 2022 The Kubeflow Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Conformance test profile
apiVersion: kubeflow.org/v1beta1
kind: Profile
metadata:
name: kf-conformance
spec:
owner:
kind: User
name: test@kf-conformance.com
resourceQuotaSpec:
hard:
cpu: "4"
memory: 4Gi
requests.storage: "5Gi"
---
# Service account used by conformance test
apiVersion: v1
kind: ServiceAccount
metadata:
name: kf-conformance
namespace: kf-conformance
---
# Bind service account to kubeflow-admin role
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kf-conformance
namespace: kf-conformance
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kubeflow-admin
subjects:
- kind: ServiceAccount
name: kf-conformance
namespace: kf-conformance
---
# TODO: workaround until this issue can be fixed: https://github.com/kubeflow/pipelines/issues/7657
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kfp-conformance-patch
rules:
- apiGroups: [""]
resources: ["pipelines"]
verbs: ["create"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kfp-conformance-patch
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kfp-conformance-patch
subjects:
- kind: ServiceAccount
name: kf-conformance
namespace: kf-conformance