Skip to content

Commit 1d2951d

Browse files
authored
Merge pull request #218 from dockersamples/add-ca-trust-to-sdlc-variant
Fix workspace CA cert trust setup and add missing volume
2 parents 64db26b + 128eff1 commit 1d2951d

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

compose.override.sdlc.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ services:
2121
volumes:
2222
- gitea-outputs:/gitea-outputs:ro
2323
- k3s-output:/kubeconfig:ro
24+
- type: volume
25+
source: labspace-traefik-certs
26+
target: /traefik-ca
27+
volume:
28+
subpath: ca/
2429
- type: volume
2530
source: labspace-support
2631
target: /etc/labspace-support/k8s-setup
@@ -49,6 +54,8 @@ services:
4954
target: /startup-scripts/15-configure-k3s-coredns.sh
5055
mode: 0755
5156
depends_on:
57+
cert_creator:
58+
condition: service_completed_successfully
5259
git:
5360
condition: service_healthy
5461
k3s:
@@ -375,7 +382,7 @@ configs:
375382
376383
# Sets up the CA cert used by Traefik (the reverse proxy for all of the lab) in the workspace, so that the
377384
# workspace can trust the TLS connections to Gitea and k3s using the Traefik certs
378-
workspace-ca-cert-setup: |
385+
workspace-ca-cert-setup:
379386
content: |
380387
#!/bin/bash
381388

0 commit comments

Comments
 (0)