Skip to content

Commit

Permalink
Update to latest workshop scripts and base image.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed Nov 22, 2019
1 parent 10bf2f1 commit e932e85
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 20 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
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:
- "tekton.dev"
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
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
apiVersion: template.openshift.io/v1
kind: Template
metadata:
name: configmap-extra-resources
name: configmap-session-resources
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: v1
kind: ConfigMap
metadata:
name: ${SPAWNER_APPLICATION}-res
namespace: ${SPAWNER_NAMESPACE}
name: ${NAME_PREFIX}${WORKSHOP_NAME}-session-resources
labels:
app: ${SPAWNER_APPLICATION}-${SPAWNER_NAMESPACE}
spawner: learning-portal
app: ${NAME_PREFIX}${WORKSHOP_NAME}
spawner: ${SPAWNER_MODE}
class: spawner
data:
extra_resources.yaml: |-
kind: List
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/openshifthomeroom/workshop-dashboard:4.2.0
FROM quay.io/openshifthomeroom/workshop-dashboard:5.0.0

USER root

Expand Down

0 comments on commit e932e85

Please sign in to comment.