che-operator/deploy/role_binding_oauth.yaml

32 lines
810 B
YAML

#
# Copyright (c) 2012-2019 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Red Hat, Inc. - initial API and implementation
kind: Template
apiVersion: v1
metadata:
name: che-operator
objects:
- kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: che-operator
subjects:
- kind: ServiceAccount
name: che-operator
namespace: ${NAMESPACE}
roleRef:
kind: ClusterRole
name: che-operator
apiGroup: rbac.authorization.k8s.io
parameters:
- name: NAMESPACE
displayName: Namespace
description: Namespace
required: true