Skip to content

Commit

Permalink
Fix ingress and add owner references.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed Sep 20, 2023
1 parent d1f22d5 commit 8828977
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ kubectl apply -f https://github.com/educates/labs-vcluster-testing/releases/late
kubectl apply -f https://github.com/educates/labs-vcluster-testing/releases/latest/download/trainingportal.yaml
```

Educates version 2.6.0 or later is required to run these workshops.
Educates version 2.6.12 or later is required to run these workshops.

Note that some workshops have prerequisites that need to be satisified else they
will not work. Check the README for each workshop for more details.
20 changes: 20 additions & 0 deletions workshops/lab-admin-vcluster/resources/workshop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ spec:
extraArgs:
- --tls-san=admin-vcluster.$(session_namespace).svc.$(cluster_domain)
- --out-kube-config-server=https://admin-vcluster.$(session_namespace).svc.$(cluster_domain)
sync:
ingresses:
enabled: true
- apiVersion: kappctrl.k14s.io/v1alpha1
kind: App
metadata:
Expand All @@ -94,6 +97,23 @@ spec:
valuesFrom:
- secretRef:
name: $(session_name)-admin-vcluster-values
- ytt:
inline:
paths:
overlays.yaml: |
#@ load("@ytt:data", "data")
#@ load("@ytt:overlay", "overlay")
#@overlay/match by=overlay.all, expects="1+"
---
metadata:
#@overlay/match missing_ok=True
ownerReferences:
- apiVersion: training.educates.dev/v1beta1
kind: WorkshopSession
blockOwnerDeletion: true
controller: true
name: $(session_name)
uid: $(workshop_session_uid)
deploy:
- kapp:
rawOptions:
Expand Down
20 changes: 20 additions & 0 deletions workshops/lab-shared-vcluster/resources/workshop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ spec:
extraArgs:
- --tls-san=shared-vcluster.$(workshop_namespace).svc.$(cluster_domain)
- --out-kube-config-server=https://shared-vcluster.$(workshop_namespace).svc.$(cluster_domain)
sync:
ingresses:
enabled: true
- apiVersion: kappctrl.k14s.io/v1alpha1
kind: App
metadata:
Expand All @@ -183,6 +186,23 @@ spec:
valuesFrom:
- secretRef:
name: shared-vcluster-values
- ytt:
inline:
paths:
overlays.yaml: |
#@ load("@ytt:data", "data")
#@ load("@ytt:overlay", "overlay")
#@overlay/match by=overlay.all, expects="1+"
---
metadata:
#@overlay/match missing_ok=True
ownerReferences:
- apiVersion: training.educates.dev/v1beta1
kind: WorkshopEnvironment
blockOwnerDeletion: true
controller: true
name: $(environment_name)
uid: $(workshop_environment_uid)
deploy:
- kapp:
rawOptions:
Expand Down

0 comments on commit 8828977

Please sign in to comment.