Skip to content

Commit

Permalink
variablizeed CoreDNS domain
Browse files Browse the repository at this point in the history
  • Loading branch information
justinthelaw committed Jul 1, 2024
1 parent 6de6bfb commit b6e4836
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/leapfrogai/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ components:
description: "Setup rewrites for Supabase's authentication callback to the KeycLoak SSO service"
actions:
onDeploy:
before:
- cmd: |
echo ${ZARF_VAR_DOMAIN} | sed 's/[.\/]/\\&/g'
description: "Add special escape characters to given domain"
setVariables:
- name: MODIFIED_DOMAIN
after:
- cmd: |
sudo uds zarf tools kubectl patch configmap rke2-coredns-rke2-coredns -n kube-system --patch "
Expand All @@ -45,10 +51,10 @@ components:
loadbalance
rewrite {
name regex (.*uds\.dev) tenant-ingressgateway.istio-tenant-gateway.svc.cluster.local answer auto
name regex (.*${ZARF_VAR_MODIFIED_DOMAIN}) tenant-ingressgateway.istio-tenant-gateway.svc.cluster.local answer auto
}
rewrite {
name regex (.*admin\.uds\.dev) admin-ingressgateway.istio-admin-gateway.svc.cluster.local answer auto
name regex (.*admin\.${ZARF_VAR_MODIFIED_DOMAIN}) admin-ingressgateway.istio-admin-gateway.svc.cluster.local answer auto
}
}
"
Expand All @@ -64,3 +70,5 @@ components:
namespace: kube-system
condition: "'{.status.conditions[2].status}'=True"
maxTotalSeconds: 300
onFailure:
- cmd: uds zarf tools kubectl describe nodes

0 comments on commit b6e4836

Please sign in to comment.