From 0da9bfc426a08c2a1e2fef28de46d69c53099a9b Mon Sep 17 00:00:00 2001 From: greg pereira Date: Thu, 31 Oct 2024 13:13:10 -0700 Subject: [PATCH] point back to upstream and add SS docs Signed-off-by: greg pereira --- README.md | 21 +++++++++++++++++++++ argocd/overlays/applicaitons/qa.yaml | 7 +++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 04f9dc6c..7031f6a4 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,27 @@ report a bug, open an [issue](https://github.com/instructlab/ui/issues)! We'd lo For more, check out the [InstructLab UI Contribution Guide](CONTRIBUTING.md) and [InstructLab Community Guide](https://github.com/instructlab/community/blob/main/CONTRIBUTING.md). +## Updating the Sealed Secrets + +To update the sealed secret, you must communicate with the controller that lives in the `kube-system` namespace of the qa cluster. +After signing in to the cluster, you can re-writing the secret file that you want to seal. Then you simply `cat` the secret file, +and pipe that to the `kubeseal` binary as follows: + +```bash +cat | kubeseal \ + --controller-name=sealed-secrets-controller \ + --controller-namespace=kube-system \ + --format yaml > +``` + +This will generate the new encrypted sealed-secret manifest in the file you specified with ``. After this please +BE CERTAIN to delete the un-encrypted secret file, we do not want to leak these values in `git`. Finally you can move the `sealed-secret` +to its correct location within this repo. + +### Common issues + +- `error: cannot get sealed secret service: Unauthorized`: You must be signed in to the qa cluster to be able to communicate with the sealed secrets controller. + ## Community Meeting We have a weekly community meeting to discuss the project and contributions. Meeting happens **every Wednesday 10AM PST**. diff --git a/argocd/overlays/applicaitons/qa.yaml b/argocd/overlays/applicaitons/qa.yaml index 4324e2e2..b16cfd80 100644 --- a/argocd/overlays/applicaitons/qa.yaml +++ b/argocd/overlays/applicaitons/qa.yaml @@ -5,10 +5,13 @@ metadata: spec: project: default source: - repoURL: https://github.com/gregory-pereira/ui.git + repoURL: https://github.com/instructlab/ui.git path: deploy/k8s/overlays/openshift/qa - targetRevision: argocd-deployment + targetRevision: main destination: namespace: instructlab name: in-cluster + syncPolicy: + automated: + selfHeal: true