Skip to content

Commit

Permalink
add var to tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
justinthelaw committed Sep 24, 2024
1 parent 0b7c279 commit ea76ef1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
16 changes: 15 additions & 1 deletion tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ variables:
default: ""
- name: NGINX_EXTRA_PORTS
default: "[]"
- name: COREDNS_OVERRIDES
default: |
rewrite {
name regex (.*admin\.uds\.dev) admin-ingressgateway.istio-admin-gateway.svc.cluster.local answer auto
}
rewrite {
name regex (.*\.uds\.dev) tenant-ingressgateway.istio-tenant-gateway.svc.cluster.local answer auto
}
tasks:
- name: default
Expand All @@ -16,7 +24,13 @@ tasks:
cmd: "uds zarf package create --confirm --no-progress"

- description: "Deploy UDS K3d package"
cmd: "uds zarf package deploy zarf-package-uds-k3d-*.tar.zst --confirm --set K3D_IMAGE=${IMAGE_NAME}:${VERSION} --set K3D_EXTRA_ARGS=\"${K3D_EXTRA_ARGS}\" --set NGINX_EXTRA_PORTS=\"${NGINX_EXTRA_PORTS}\" --no-progress"
cmd: |
uds zarf package deploy zarf-package-uds-k3d-*.tar.zst \
--set K3D_IMAGE=${IMAGE_NAME}:${VERSION} \
--set K3D_EXTRA_ARGS="${K3D_EXTRA_ARGS}" \
--set NGINX_EXTRA_PORTS="${NGINX_EXTRA_PORTS}" \
--set COREDNS_OVERRIDES="${COREDNS_OVERRIDES}" \
--no-progress --confirm
- name: validate
actions:
Expand Down
7 changes: 5 additions & 2 deletions zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ variables:
"CoreDNS overrides for rewriting requests. Defaults for `*.uds.dev` are the UDS Core Istio tenant and admin gateways."
autoIndent: true
default: |
rewrite stop {
name regex (.*\.uds\.dev) host.k3d.internal answer auto
rewrite {
name regex (.*admin\.uds\.dev) admin-ingressgateway.istio-admin-gateway.svc.cluster.local answer auto
}
rewrite {
name regex (.*\.uds\.dev) tenant-ingressgateway.istio-tenant-gateway.svc.cluster.local answer auto
}
components:
Expand Down

0 comments on commit ea76ef1

Please sign in to comment.