flux2-kustomize-helm-example icon indicating copy to clipboard operation
flux2-kustomize-helm-example copied to clipboard

"flux get helmreleases --all-namespaces" shows "no HelmRelease objects found in flux-system namespace"

Open seanw2020 opened this issue 3 years ago • 1 comments

Disclaimer: I'm new to flux.

Steps to reproduce:

  1. 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
  1. wait 10 minutes
  2. 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.

seanw2020 avatar Aug 04 '21 14:08 seanw2020

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)

seanw2020 avatar Aug 04 '21 14:08 seanw2020