Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Go Tests
on:
push:
branches:
- main
paths:
- "go/**"
- .github/workflows/go-test.yaml
pull_request:
paths:
- "go/**"
- .github/workflows/go-test.yaml
workflow_dispatch:
merge_group:
types: [checks_requested]
paths:
- "go/**"
- .github/workflows/go-test.yaml

permissions:
contents: read

jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6

- name: List Applications
id: list_dirs
run: |
apps=$(ls -d go/* | xargs -n1 basename | jq -R -s -c 'split("\n")[:-1]')
echo "apps=${apps}"
# TODO: dexop does not pass tests
#echo "apps=%s" "${app_array}" >> "$GITHUB_OUTPUT"
echo "apps=[\"understackctl\"]" >> "$GITHUB_OUTPUT"
shell: bash
outputs:
apps: ${{ steps.list_dirs.outputs.apps }}

test:
runs-on: ubuntu-latest
needs: setup
strategy:
matrix:
app: ${{ fromJson(needs.setup.outputs.apps) }}
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6

- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
with:
go-version-file: go/${{ matrix.app }}/go.mod

- name: Test ${{ matrix.app }}
working-directory: go/${{ matrix.app }}
run: go test -v ./...
2 changes: 1 addition & 1 deletion charts/argocd-understack/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Examples:
deploy_path_prefix: "us/east" -> "us/east/uc-iad3-prod"

Usage in valueFiles:
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/dex.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/manifests/dex/values.yaml

Usage in source path:
path: {{ include "understack.deploy_path" $ }}/manifests/dex
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
ref: understack
repoURL: {{ include "understack.understack_url" $ }}
targetRevision: {{ include "understack.understack_ref" $ }}
- path: {{ include "understack.deploy_path" $ }}/manifests/argo-events-workflows
- path: {{ include "understack.deploy_path" $ }}/argo-events-workflows
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
ref: understack
repoURL: {{ include "understack.understack_url" $ }}
targetRevision: {{ include "understack.understack_ref" $ }}
- path: {{ include "understack.deploy_path" $ }}/manifests/argo-events
- path: {{ include "understack.deploy_path" $ }}/argo-events
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
server: {{ $.Values.cluster_server }}
project: understack
sources:
- path: {{ include "understack.deploy_path" $ }}/manifests/argo-workflows
- path: {{ include "understack.deploy_path" $ }}/argo-workflows
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
server: {{ $.Values.cluster_server }}
project: understack-infra
sources:
- path: {{ include "understack.deploy_path" $ }}/manifests/cilium
- path: {{ include "understack.deploy_path" $ }}/cilium
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
4 changes: 2 additions & 2 deletions charts/argocd-understack/templates/application-dex.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ spec:
releaseName: dex
valueFiles:
- $understack/components/dex/values.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/dex.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/dex/values.yaml
repoURL: https://charts.dexidp.io
targetRevision: 0.16.0
- path: components/dex
ref: understack
repoURL: {{ include "understack.understack_url" $ }}
targetRevision: {{ include "understack.understack_ref" $ }}
- path: {{ include "understack.deploy_path" $ }}/manifests/dex
- path: {{ include "understack.deploy_path" $ }}/dex
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ spec:
ignoreMissingValueFiles: true
valueFiles:
- $understack/components/envoy-configs/values.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/envoy-configs.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/envoy-configs/values.yaml
ref: understack
repoURL: {{ include "understack.understack_url" $ }}
targetRevision: {{ include "understack.understack_ref" $ }}
- path: {{ include "understack.deploy_path" $ }}/manifests/envoy-configs
- path: {{ include "understack.deploy_path" $ }}/envoy-configs
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ spec:
releaseName: gateway-helm
valueFiles:
- $understack/components/envoy-gateway/values.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/envoy-gateway.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/envoy-gateway/values.yaml
repoURL: docker.io/envoyproxy
targetRevision: v1.6.0
- path: components/envoy-gateway
ref: understack
repoURL: {{ include "understack.understack_url" $ }}
targetRevision: {{ include "understack.understack_ref" $ }}
- path: {{ include "understack.deploy_path" $ }}/manifests/envoy-gateway
- path: {{ include "understack.deploy_path" $ }}/envoy-gateway
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
ignoreMissingValueFiles: true
valueFiles:
- $understack/components/etcdbackup/values.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/etcdbackup.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/etcdbackup/values.yaml
path: components/etcdbackup
ref: understack
repoURL: {{ include "understack.understack_url" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ spec:
ignoreMissingValueFiles: true
releaseName: external-dns-rackspace
valueFiles:
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/external-dns.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/external-dns/values.yaml
repoURL: ghcr.io/rackerlabs/charts
targetRevision: 0.2.0
- path: {{ include "understack.deploy_path" $ }}/manifests/external-dns
- path: {{ include "understack.deploy_path" $ }}/external-dns
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
ref: understack
repoURL: {{ include "understack.understack_url" $ }}
targetRevision: {{ include "understack.understack_ref" $ }}
- path: {{ include "understack.deploy_path" $ }}/manifests/global-workflows
- path: {{ include "understack.deploy_path" $ }}/global-workflows
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
ignoreMissingValueFiles: true
releaseName: ingress-nginx
valueFiles:
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/ingress-nginx.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/ingress-nginx/values.yaml
repoURL: https://kubernetes.github.io/ingress-nginx
targetRevision: 4.12.1
- ref: deploy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
releaseName: kube-prometheus-stack
valueFiles:
- $understack/operators/monitoring/values.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/monitoring.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/manifests/monitoring/values.yaml
repoURL: https://prometheus-community.github.io/helm-charts
targetRevision: 79.5.0
- path: operators/monitoring
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
server: {{ $.Values.cluster_server }}
project: understack
sources:
- path: {{ include "understack.deploy_path" $ }}/manifests/nautobot-site
- path: {{ include "understack.deploy_path" $ }}/nautobot-site
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ spec:
releaseName: nautobot
valueFiles:
- $understack/components/nautobot/values.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/nautobot.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/nautobot/values.yaml
repoURL: https://nautobot.github.io/helm-charts/
targetRevision: 2.5.6
- path: components/nautobot
ref: understack
repoURL: {{ include "understack.understack_url" $ }}
targetRevision: {{ include "understack.understack_ref" $ }}
- path: {{ include "understack.deploy_path" $ }}/manifests/nautobot
- path: {{ include "understack.deploy_path" $ }}/nautobot
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ spec:
ignoreMissingValueFiles: true
releaseName: nautobotop
valueFiles:
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/nautobotop.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/nautobotop/values.yaml
repoURL: ghcr.io/rackerlabs/charts
targetRevision: 0.0.1
- path: {{ include "understack.deploy_path" $ }}/manifests/nautobotop
- path: {{ include "understack.deploy_path" $ }}/nautobotop
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
releaseName: openebs
valueFiles:
- $understack/operators/openebs/values.yaml
- $deploy/{{ $.Release.Name }}/helm-configs/openebs.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/openebs/values.yaml
repoURL: https://openebs.github.io/openebs
targetRevision: 4.4.0
- path: operators/openebs
Expand All @@ -28,7 +28,7 @@ spec:
- ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
path: {{ include "understack.deploy_path" $ }}/manifests/openebs
path: {{ include "understack.deploy_path" $ }}/openebs
syncPolicy:
automated:
prune: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
releaseName: prometheus-openstack-exporter
valueFiles:
- $understack/components/openstack-exporter/values.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/openstack-exporter.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/openstack-exporter/values.yaml
repoURL: registry.scs.community/openstack-exporter
targetRevision: 0.4.5
- ref: understack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ spec:
valueFiles:
- $understack/components/images-openstack.yaml
- $understack/components/{{ $appName }}/values.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/manifests/secret-openstack.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/manifests/images-openstack.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/{{ $appName }}.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/secret-openstack.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/images-openstack.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/{{ $appName }}/values.yaml
- path: components/{{ $appName }}/
ref: understack
repoURL: {{ include "understack.understack_url" $ }}
targetRevision: {{ include "understack.understack_ref" $ }}
- path: {{ include "understack.deploy_path" $ }}/manifests/{{ $appName }}
- path: {{ include "understack.deploy_path" $ }}/{{ $appName }}
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
releaseName: memcached
valueFiles:
- $understack/components/openstack/memcached-values.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/openstack-memcached.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/openstack-memcached/values.yaml
repoURL: https://charts.bitnami.com/bitnami
targetRevision: 7.8.6
- ref: understack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ spec:
helm:
ignoreMissingValueFiles: true
valueFiles:
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/openstack.yaml
- path: {{ include "understack.deploy_path" $ }}/manifests/openstack
- $deploy/{{ include "understack.deploy_path" $ }}/openstack/values.yaml
- path: {{ include "understack.deploy_path" $ }}/openstack
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
releaseName: opentelemetry-operator
valueFiles:
- $understack/operators/opentelemetry-operator/values.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/opentelemetry-operator.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/opentelemetry-operator/values.yaml
repoURL: https://open-telemetry.github.io/opentelemetry-helm-charts
targetRevision: 0.95.1
- path: operators/opentelemetry-operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ spec:
valueFiles:
- $understack/components/images-openstack.yaml
- $understack/components/openvswitch/values.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/manifests/secret-openstack.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/manifests/images-openstack.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/openvswitch.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/secret-openstack.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/images-openstack.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/openvswitch/values.yaml
- path: components/openvswitch/
ref: understack
repoURL: {{ include "understack.understack_url" $ }}
targetRevision: {{ include "understack.understack_ref" $ }}
- path: {{ include "understack.deploy_path" $ }}/manifests/openvswitch
- path: {{ include "understack.deploy_path" $ }}/openvswitch
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
server: {{ $.Values.cluster_server }}
project: understack
sources:
- path: {{ include "understack.deploy_path" $ }}/manifests/otel-collector
- path: {{ include "understack.deploy_path" $ }}/otel-collector
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
8 changes: 4 additions & 4 deletions charts/argocd-understack/templates/application-ovn.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ spec:
valueFiles:
- $understack/components/images-openstack.yaml
- $understack/components/ovn/values.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/manifests/secret-openstack.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/manifests/images-openstack.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/ovn.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/secret-openstack.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/images-openstack.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/ovn/values.yaml
- path: components/ovn/
ref: understack
repoURL: {{ include "understack.understack_url" $ }}
targetRevision: {{ include "understack.understack_ref" $ }}
- path: {{ include "understack.deploy_path" $ }}/manifests/ovn
- path: {{ include "understack.deploy_path" $ }}/ovn
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
4 changes: 2 additions & 2 deletions charts/argocd-understack/templates/application-rook.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
releaseName: rook-ceph
valueFiles:
- $understack/operators/rook/values-operator.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/rook-operator.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/rook-operator/values.yaml
repoURL: https://charts.rook.io/release
targetRevision: v1.16.4
- chart: rook-ceph-cluster
Expand All @@ -27,7 +27,7 @@ spec:
releaseName: rook-ceph-cluster
valueFiles:
- $understack/operators/rook/values-cluster.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/rook-cluster.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/rook-cluster/values.yaml
repoURL: https://charts.rook.io/release
targetRevision: v1.16.4
- path: operators/rook
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
ref: understack
repoURL: {{ include "understack.understack_url" $ }}
targetRevision: {{ include "understack.understack_ref" $ }}
- path: {{ include "understack.deploy_path" $ }}/manifests/site-workflows
- path: {{ include "understack.deploy_path" $ }}/site-workflows
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
ignoreMissingValueFiles: true
releaseName: prometheus-snmp-exporter
valueFiles:
- $deploy/{{ include "understack.deploy_path" $ }}/helm-configs/prometheus-snmp-exporter.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/prometheus-snmp-exporter/values.yaml
repoURL: https://prometheus-community.github.io/helm-charts
targetRevision: 5.6.0
- ref: understack
Expand Down
Loading
Loading