Skip to content

Commit

Permalink
Update to latest workshop scripts and base images.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed Nov 20, 2019
1 parent 9a1533f commit 2a01e6d
Show file tree
Hide file tree
Showing 9 changed files with 202 additions and 253 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule ".workshop/scripts"]
path = .workshop/scripts
url = https://github.com/openshift-homeroom/spawner-scripts.git
branch = stable/1.x
branch = stable/2.x
2 changes: 1 addition & 1 deletion .workshop/scripts
5 changes: 4 additions & 1 deletion .workshop/settings.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
WORKSHOP_NAME=mysql-lab
WORKSHOP_NAME=lab-mysql-operator
WORKSHOP_IMAGE=quay.io/openshiftlabs/lab-mysql-operator:1.7
WORKSHOP_TITLE="Using the MySQL Operator"
WORKSHOP_DESCRIPTION="A workshop on using the MySQL operator"
CONSOLE_IMAGE=quay.io/openshift/origin-console:4.1
RESOURCE_BUDGET=unlimited
17 changes: 12 additions & 5 deletions .workshop/templates/clusterroles-session-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,27 @@ kind: Template
metadata:
name: clusterroles-session-rules
parameters:
- name: SPAWNER_NAMESPACE
- name: NAME_PREFIX
value: ""
required: false
- name: WORKSHOP_NAME
value: ""
required: true
- name: SPAWNER_APPLICATION
- name: SPAWNER_NAMESPACE
value: ""
required: true
- name: SPAWNER_MODE
value: "learning-portal"
required: true
objects:
- apiVersion: authorization.openshift.io/v1
kind: ClusterRole
metadata:
name: ${NAME_PREFIX}${WORKSHOP_NAME}-session-rules
labels:
app: ${SPAWNER_APPLICATION}-${SPAWNER_NAMESPACE}
spawner: learning-portal
name: ${SPAWNER_APPLICATION}-${SPAWNER_NAMESPACE}-session-rules
app: ${NAME_PREFIX}${WORKSHOP_NAME}
spawner: ${SPAWNER_MODE}
class: spawner
rules:
- apiGroups:
- pxc.percona.com
Expand Down
17 changes: 12 additions & 5 deletions .workshop/templates/clusterroles-spawner-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,27 @@ kind: Template
metadata:
name: clusterroles-spawner-rules
parameters:
- name: SPAWNER_NAMESPACE
- name: NAME_PREFIX
value: ""
required: false
- name: WORKSHOP_NAME
value: ""
required: true
- name: SPAWNER_APPLICATION
- name: SPAWNER_NAMESPACE
value: ""
required: true
- name: SPAWNER_MODE
value: "learning-portal"
required: true
objects:
- apiVersion: authorization.openshift.io/v1
kind: ClusterRole
metadata:
name: ${NAME_PREFIX}${WORKSHOP_NAME}-spawner-rules
labels:
app: ${SPAWNER_APPLICATION}-${SPAWNER_NAMESPACE}
spawner: learning-portal
name: ${SPAWNER_APPLICATION}-${SPAWNER_NAMESPACE}-spawner-rules
app: ${NAME_PREFIX}${WORKSHOP_NAME}
spawner: ${SPAWNER_MODE}
class: spawner
rules:
- apiGroups:
- ""
Expand Down
237 changes: 0 additions & 237 deletions .workshop/templates/configmap-extra-resources.yaml

This file was deleted.

Loading

0 comments on commit 2a01e6d

Please sign in to comment.