Skip to content

Commit

Permalink
chore: rename secrets to manifests
Browse files Browse the repository at this point in the history
A lot of the things we are storing now days are just Kubernetes
manifests and not just secrets so rename this path to make it more clear
what belongs here.
  • Loading branch information
cardoe authored and skrobul committed Oct 16, 2024
1 parent 050b61c commit fc9c07f
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion apps/appsets/argocd/appset-argocd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
value: {{.name}}-cluster-issuer
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
path: '{{.name}}/secrets/argocd'
path: '{{.name}}/manifests/argocd'
ignoreDifferences:
- kind: Secret
namespace: argocd
Expand Down
10 changes: 5 additions & 5 deletions apps/appsets/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
ref: deploy
path: '{{.name}}/secrets/dex'
path: '{{.name}}/manifests/dex'
- repoURL: https://charts.dexidp.io
chart: dex
targetRevision: 0.16.0
Expand All @@ -65,7 +65,7 @@ spec:
path: 'components/openstack'
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
path: '{{.name}}/secrets/openstack'
path: '{{.name}}/manifests/openstack'
- component: undersync
skipComponent: '{{has "undersync" ((default "[]" (index .metadata.annotations "uc_skip_components") | fromJson))}}'
sources:
Expand All @@ -74,7 +74,7 @@ spec:
path: 'components/undersync'
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
path: '{{.name}}/secrets/undersync'
path: '{{.name}}/manifests/undersync'
- component: nautobot
skipComponent: '{{has "nautobot" ((default "[]" (index .metadata.annotations "uc_skip_components") | fromJson))}}'
sources:
Expand All @@ -85,7 +85,7 @@ spec:
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
ref: deploy
path: '{{.name}}/secrets/nautobot'
path: '{{.name}}/manifests/nautobot'
- repoURL: https://nautobot.github.io/helm-charts/
chart: nautobot
targetRevision: 2.1.3
Expand Down Expand Up @@ -169,7 +169,7 @@ spec:
path: 'components/argo-events'
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
path: '{{.name}}/secrets/argo-events'
path: '{{.name}}/manifests/argo-events'
- component: understack-workflows
componentNamespace: argo-events
skipComponent: '{{has "understack-workflows" ((default "[]" (index .metadata.annotations "uc_skip_components") | fromJson))}}'
Expand Down
6 changes: 3 additions & 3 deletions apps/appsets/infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
enabled: true
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
path: '{{.name}}/secrets/cert-manager'
path: '{{.name}}/manifests/cert-manager'
- component: metallb-system
skipComponent: '{{has "metallb" ((default "[]" (index .metadata.annotations "uc_skip_components") | fromJson))}}'
sources:
Expand All @@ -38,7 +38,7 @@ spec:
path: 'bootstrap/metallb'
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
path: '{{.name}}/secrets/metallb'
path: '{{.name}}/manifests/metallb'
ignoreDifferences:
- group: "apiextensions.k8s.io"
kind: CustomResourceDefinition
Expand Down Expand Up @@ -88,7 +88,7 @@ spec:
# and environment specific stuff here
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
path: '{{.name}}/secrets/cilium'
path: '{{.name}}/manifests/cilium'
selector:
# by setting the key in the elements 'skipComponent' to 'true' it will skip installing it
# ArgoCD's templating operates with strings so it's the string "true"
Expand Down
4 changes: 2 additions & 2 deletions apps/appsets/openstack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
ref: understack
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
path: '{{.name}}/secrets/{{.component}}'
path: '{{.name}}/manifests/{{.component}}'
ref: deploy
- repoURL: https://tarballs.opendev.org/openstack/openstack-helm/
chart: '{{.component}}'
Expand All @@ -54,7 +54,7 @@ spec:
valueFiles:
- $understack/components/openstack-2024.1-jammy.yaml
- $understack/components/{{.component}}/aio-values.yaml
- $deploy/{{.name}}/secrets/secret-openstack.yaml
- $deploy/{{.name}}/manifests/secret-openstack.yaml
- $deploy/{{.name}}/helm-configs/{{.component}}.yaml
# don't require all the values files
ignoreMissingValueFiles: true
Expand Down
2 changes: 1 addition & 1 deletion docs/deploy-guide/add-remove-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repo.

### Kustomize

To make changes you will need to add or modify files in `$DEPLOY_NAME/secrets/$APPLICATION/`
To make changes you will need to add or modify files in `$DEPLOY_NAME/manifests/$APPLICATION/`
in your deployment repo.

## Removing an application for a specific deploy
Expand Down
2 changes: 1 addition & 1 deletion docs/deploy-guide/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ kubectl --namespace dex \
--from-literal=client-id={client_id} \
--from-literal=client-secret={client_secret} \
--from-literal=redirect-uri=https://dex.${DNS_ZONE}/callback \
-o yaml > ${UC_DEPLOY}/${DEPLOY_NAME}/secrets/secret-oidc-sso-dex.yaml
-o yaml > ${UC_DEPLOY}/${DEPLOY_NAME}/manifests/secret-oidc-sso-dex.yaml
```

You must remember to add this secret to your secret storage (e.g. for
Expand Down
4 changes: 2 additions & 2 deletions docs/deploy-guide/gitops-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ to your git server so that ArgoCD can access it.
Configure your ArgoCD to be aware of your cluster:

```bash
kubectl -n argocd apply -f "${UC_DEPLOY}/${DEPLOY_NAME}/secrets/argocd/secret-*-cluster.yaml"
kubectl -n argocd apply -f "${UC_DEPLOY}/${DEPLOY_NAME}/manifests/argocd/secret-*-cluster.yaml"
```

Now configure your ArgoCD to have the credential access to your deploy repo:

```bash
kubectl -n argocd apply -f "${UC_DEPLOY}/${DEPLOY_NAME}/secrets/argocd/secret-deploy-repo.yaml"
kubectl -n argocd apply -f "${UC_DEPLOY}/${DEPLOY_NAME}/manifests/argocd/secret-deploy-repo.yaml"
```

Label the node(s) to allow OpenStack control plane installation:
Expand Down
2 changes: 1 addition & 1 deletion scripts/gitops-secrets-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fi

export DNS_ZONE
export DEPLOY_NAME
DEST_DIR="${UC_DEPLOY}/${DEPLOY_NAME}/secrets"
DEST_DIR="${UC_DEPLOY}/${DEPLOY_NAME}/manifests"
mkdir -p "${DEST_DIR}"

###
Expand Down

0 comments on commit fc9c07f

Please sign in to comment.