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

[Bug]: <Remove helm package is not working properly for CRD> #249

Open
3 of 4 tasks
rubensalazarblq opened this issue Oct 25, 2023 · 1 comment
Open
3 of 4 tasks

Comments

@rubensalazarblq
Copy link

Checklist

  • I've searched for similar issues and couldn't find anything matching
  • I've included steps to reproduce the behavior

Affected Components

  • K8sGPT (CLI)
  • K8sGPT Operator

K8sGPT Version

v0.3.18

Kubernetes Version

v1.28.2

Host OS and its Version

Ubuntu

Steps to reproduce

1- Follow the basic instructions to install using helm using a custom namespace

helm repo add k8sgpt https://charts.k8sgpt.ai/
helm repo update
helm install release k8sgpt/k8sgpt-operator -n test-k8sgpt --create-namespace

2- Now remove it
helm delete release k8sgpt/k8sgpt-operator
3-Try to install it one more time with helm
helm install release k8sgpt/k8sgpt-operator -n k8sgpt-operator-system --create-namespace
4- An error is displaying complaining about the CRD definition "k8sgpt.core.k8sgpt.ai" in namespace test-k8spt exists and cannot be imported.

A workaround for this was modify the CRD
Kubectl edit crd k8sgpt.core.k8sgpt.ai
and remove the finalizer instruction, once that was remove I Could be able to installed again.

Expected behaviour

The helm delete should be able to remove the CRD

Actual behaviour

CRD are note removed properly, so a new installation cannot be done.

Additional Information

No response

@rubensalazarblq rubensalazarblq changed the title [Remove heml package is not working properly]: <Customer Resources Definition> [Bug]: <Remove helm package is not working properly for CRD> Oct 25, 2023
@arbreezy
Copy link
Member

that sounds a bit odd considering that we put CRDs in templates/ and not crd/ folders; in which version was the issue occurring and do you still have issue deleting CRDs whilst helm uninstall operations ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants