Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrapping without kustomization component still generates kustomization yaml files #252

Closed
yawboateng opened this issue Sep 22, 2020 · 1 comment · Fixed by #253
Closed
Labels
bug Something isn't working

Comments

@yawboateng
Copy link

yawboateng commented Sep 22, 2020

bootstrapping without kustomization component still generates and commits the kustomization yaml files to the git repo

gotk bootstrap github --owner=<org-name> --repository=<private-repo-name> --team=platform --path=bernard
 --components=source-controller,helm-controller,notification-controller

my expectation was the tool will only generate configs for components that i specify

and when bootstrapping i get the error:

...
...
Waiting for deployment "source-controller" rollout to finish: 0 of 1 updated replicas are available...
deployment "source-controller" successfully rolled out
deployment "helm-controller" successfully rolled out
deployment "notification-controller" successfully rolled out
✔ install completed
► configuring deploy key
✔ deploy key configured
► generating sync manifests
✔ sync manifests pushed
► applying sync manifests
unable to recognize "/var/folders/zc/fl1t5ms151j61x0dnmjpsfvh0000gn/T/gitops-system022718298/bernard/gitops-system/toolkit-kustomization.yaml": no matches for kind "Kustomization" in version "kustomize.toolkit.fluxcd.io/v1alpha1"
Error from server (MethodNotAllowed): error when creating "/var/folders/zc/fl1t5ms151j61x0dnmjpsfvh0000gn/T/gitops-system022718298/bernard/gitops-system/toolkit-source.yaml": create not allowed while custom resource definition is terminating
✗ exit status 1
@stefanprodan
Copy link
Member

stefanprodan commented Sep 22, 2020

Bootstrap doesn't make sense without a Kustomization since that's the component that applies YAMLs into the cluster. The command should error out.

@stefanprodan stefanprodan added the bug Something isn't working label Sep 22, 2020
ybelleguic pushed a commit to ybelleguic/flux2 that referenced this issue Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants