Created
October 5, 2018 12:35
-
-
Save mjudeikis/a857144bc1d27c236dbe6407e8cecce2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Template | |
metadata: | |
creationTimestamp: null | |
name: project-request | |
objects: | |
- apiVersion: project.openshift.io/v1 | |
kind: Project | |
metadata: | |
annotations: | |
openshift.io/description: ${PROJECT_DESCRIPTION} | |
openshift.io/display-name: ${PROJECT_DISPLAYNAME} | |
openshift.io/requester: ${PROJECT_REQUESTING_USER} | |
creationTimestamp: null | |
name: ${PROJECT_NAME} | |
spec: {} | |
status: {} | |
- apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: RoleBinding | |
metadata: | |
annotations: | |
openshift.io/description: Allows all pods in this namespace to pull images from | |
this namespace. It is auto-managed by a controller; remove subjects to disable. | |
creationTimestamp: null | |
name: system:image-pullers | |
namespace: ${PROJECT_NAME} | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: system:image-puller | |
subjects: | |
- apiGroup: rbac.authorization.k8s.io | |
kind: Group | |
name: system:serviceaccounts:${PROJECT_NAME} | |
- apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: RoleBinding | |
metadata: | |
annotations: | |
openshift.io/description: Allows builds in this namespace to push images to | |
this namespace. It is auto-managed by a controller; remove subjects to disable. | |
creationTimestamp: null | |
name: system:image-builders | |
namespace: ${PROJECT_NAME} | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: system:image-builder | |
subjects: | |
- kind: ServiceAccount | |
name: builder | |
namespace: ${PROJECT_NAME} | |
- apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: RoleBinding | |
metadata: | |
annotations: | |
openshift.io/description: Allows deploymentconfigs in this namespace to rollout | |
pods in this namespace. It is auto-managed by a controller; remove subjects | |
to disable. | |
creationTimestamp: null | |
name: system:deployers | |
namespace: ${PROJECT_NAME} | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: system:deployer | |
subjects: | |
- kind: ServiceAccount | |
name: deployer | |
namespace: ${PROJECT_NAME} | |
- apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: RoleBinding | |
metadata: | |
creationTimestamp: null | |
name: admin | |
namespace: ${PROJECT_NAME} | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: admin | |
subjects: | |
- apiGroup: rbac.authorization.k8s.io | |
kind: User | |
name: ${PROJECT_ADMIN_USER} | |
parameters: | |
- name: PROJECT_NAME | |
0:[tmux]* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment