Skip to content

Commit

Permalink
chore: rename secrets ref in appset to deploy
Browse files Browse the repository at this point in the history
The ref name secrets wasn't good because a lot of times this is where we
are getting a helm values file from so rename it to 'deploy' to be more
clear.
  • Loading branch information
cardoe authored and skrobul committed Oct 16, 2024
1 parent 50633cb commit 050b61c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
13 changes: 6 additions & 7 deletions apps/appsets/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
value: 'understack-cluster-issuer'
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
ref: secrets
ref: deploy
path: '{{.name}}/secrets/dex'
- repoURL: https://charts.dexidp.io
chart: dex
Expand All @@ -55,7 +55,7 @@ spec:
DNS_ZONE: '{{index .metadata.annotations "dns_zone" }}'
valueFiles:
- $understack/components/dex/values.yaml
- $secrets/{{.name}}/helm-configs/dex.yaml
- $deploy/{{.name}}/helm-configs/dex.yaml
ignoreMissingValueFiles: true
- component: openstack
skipComponent: '{{has "openstack" ((default "[]" (index .metadata.annotations "uc_skip_components") | fromJson))}}'
Expand Down Expand Up @@ -84,7 +84,7 @@ spec:
ref: understack
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
ref: secrets
ref: deploy
path: '{{.name}}/secrets/nautobot'
- repoURL: https://nautobot.github.io/helm-charts/
chart: nautobot
Expand All @@ -99,7 +99,7 @@ spec:
hostname: 'nautobot.{{index .metadata.annotations "dns_zone" }}'
valueFiles:
- $understack/components/nautobot/nautobot-values.yaml
- $secrets/{{.name}}/helm-configs/nautobot.yaml
- $deploy/{{.name}}/helm-configs/nautobot.yaml
ignoreMissingValueFiles: true
fileParameters:
- name: nautobot.config
Expand Down Expand Up @@ -169,7 +169,6 @@ spec:
path: 'components/argo-events'
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
ref: secrets
path: '{{.name}}/secrets/argo-events'
- component: understack-workflows
componentNamespace: argo-events
Expand Down Expand Up @@ -197,14 +196,14 @@ spec:
ref: understack
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
ref: secrets
ref: deploy
- repoURL: registry.scs.community/openstack-exporter
chart: prometheus-openstack-exporter
targetRevision: 0.4.5
helm:
releaseName: prometheus-openstack-exporter
valueFiles:
- $secrets/{{.name}}/helm-configs/openstack-exporter.yaml
- $deploy/{{.name}}/helm-configs/openstack-exporter.yaml
ignoreMissingValueFiles: true
selector:
# by setting the key in the elements 'skipComponent' to 'true' it will skip installing it
Expand Down
6 changes: 3 additions & 3 deletions apps/appsets/infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ spec:
sources:
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
ref: secrets
ref: deploy
- repoURL: https://kubernetes.github.io/ingress-nginx
chart: ingress-nginx
targetRevision: 4.9.1
helm:
releaseName: ingress-nginx
valueFiles:
- $secrets/{{.name}}/helm-configs/ingress-nginx.yaml
- $deploy/{{.name}}/helm-configs/ingress-nginx.yaml
ignoreMissingValueFiles: true
- repoURL: https://kubernetes.github.io/ingress-nginx
chart: ingress-nginx
Expand All @@ -79,7 +79,7 @@ spec:
default: false
controllerValue: "k8s.io/provisioning-ingress-nginx" # default: k8s.io/ingress-nginx
valueFiles:
- $secrets/{{.name}}/helm-configs/provisioning-ingress-nginx.yaml
- $deploy/{{.name}}/helm-configs/provisioning-ingress-nginx.yaml
ignoreMissingValueFiles: true
- component: cilium
skipComponent: '{{has "cilium" ((default "[]" (index .metadata.annotations "uc_skip_components") | fromJson))}}'
Expand Down
6 changes: 3 additions & 3 deletions apps/appsets/openstack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ spec:
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
path: '{{.name}}/secrets/{{.component}}'
ref: secrets
ref: deploy
- repoURL: https://tarballs.opendev.org/openstack/openstack-helm/
chart: '{{.component}}'
targetRevision: '{{.chartVersion}}'
Expand All @@ -54,8 +54,8 @@ spec:
valueFiles:
- $understack/components/openstack-2024.1-jammy.yaml
- $understack/components/{{.component}}/aio-values.yaml
- $secrets/{{.name}}/secrets/secret-openstack.yaml
- $secrets/{{.name}}/helm-configs/{{.component}}.yaml
- $deploy/{{.name}}/secrets/secret-openstack.yaml
- $deploy/{{.name}}/helm-configs/{{.component}}.yaml
# don't require all the values files
ignoreMissingValueFiles: true
ignoreDifferences:
Expand Down
6 changes: 3 additions & 3 deletions docs/deploy-guide/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ spec:
helm:
# context omitted
valuesFiles:
- $values/components/dexidp/values-generic.yaml
- $values/components/dexidp/values-azure.yaml
- $secrets/YOUR_CLUSTER/helm-configs/dexidp.yaml
- $understack/components/dexidp/values-generic.yaml
- $understack/components/dexidp/values-azure.yaml
- $deploy/YOUR_CLUSTER/helm-configs/dexidp.yaml
# rest omitted
```

Expand Down

0 comments on commit 050b61c

Please sign in to comment.