flux2-kustomize-helm-example
flux2-kustomize-helm-example copied to clipboard
"flux get helmreleases --all-namespaces" shows "no HelmRelease objects found in flux-system namespace"
Disclaimer: I'm new to flux.
Steps to reproduce:
- Follow steps in README.md, specifically: cd ~/git/forks git clone [email protected]:ME/flux2-kustomize-helm-example.git cd flux2-kustomize-helm-example flux check ‐‐pre
► checking prerequisites
✔ kubectl 1.21.2 >=1.18.0-0
✔ Kubernetes 1.20.7-eks-8be107 >=1.16.0-0
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v0.11.1
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v0.13.2
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v0.15.0
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v0.15.3
✔ all checks passed
context=$(kubectl config current-context)
export GITHUB_TOKEN=ksjdfkjasdkfjaksjdf
export GITHUB_USER=ME
export GITHUB_REPO=flux-tutorial-2
flux bootstrap github
--context=${context}
--owner=${GITHUB_USER}
--repository=${GITHUB_REPO}
--branch=main
--personal
--path=clusters/staging
► checking prerequisites
✔ kubectl 1.21.2 >=1.18.0-0
✔ Kubernetes 1.20.7-eks-8be107 >=1.16.0-0
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v0.11.1
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v0.13.2
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v0.15.0
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v0.15.3
✔ all checks passed
- wait 10 minutes
-
flux get helmreleases ‐‐all‐namespaces # no HelmRelease objects found in flux-system namespace
There seems to be a missing step in the instructions. If I'm missing something, I'm not sure what, as I've re-read and re-tried 3 times.
I figured this out. I used the wrong GITHUB_REPO name because I was confused with all the possible GITHUB_REPOs involved, especially after following tutorial 1 here: https://fluxcd.io/docs/get-started/
Could we change this in the documentation?
From:
Fork this repository on your personal GitHub account and export your GitHub access token, username and repo name:
To:
Fork this repository on your personal GitHub account and export your GitHub access token, username and repo name (e.g., flux2-kustomize-helm-example)