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

CRDs should be removed with Istio Helm charts #10749

Closed
arun-gupta opened this issue Jan 5, 2019 · 5 comments
Closed

CRDs should be removed with Istio Helm charts #10749

arun-gupta opened this issue Jan 5, 2019 · 5 comments

Comments

@arun-gupta
Copy link

Describe the bug

CRDs are not deleted during Istio Helm chart deletion

Expected behavior

Deleted Istio as:

helm del --purge istio

Tried installing Istio again using the Helm chart. It reported:

Error: customresourcedefinitions.apiextensions.k8s.io "gateways.networking.istio.io" already exists

CRDs should have been removed for a clean removal of Istio.

Steps to reproduce the bug

Install Istio:

helm install \
		--wait \
		--name istio \
		--namespace istio-system \
		install/kubernetes/helm/istio

Delete istio: helm del --purge istio

Install again

Version

Version: 1.0.5
GitRevision: c1707e45e71c75d74bf3a5dec8c7086f32f32fad
User: root@6f6ea1061f2b
Hub: docker.io/istio
GolangVersion: go1.10.4
BuildStatus: Clean

Installation

Helm charts

@rvennam
Copy link
Contributor

rvennam commented Jan 5, 2019

This is expected. Please see #7688

@arun-gupta
Copy link
Author

Helm version:

helm version
Client: &version.Version{SemVer:"v2.12.1", GitCommit:"02a47c7249b1fc6d8fd3b94e6b4babf9d818144e", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.12.1", GitCommit:"02a47c7249b1fc6d8fd3b94e6b4babf9d818144e", GitTreeState:"clean"}

This is a freshly installed k8s cluster.

What else should be done?

@sdake
Copy link
Member

sdake commented Jan 6, 2019

@arun-gupta for Istio 1.0.z you can manually delete the crds that have been registered using
kubectl delete -f install/kubernetes/helm/templates/crds.yaml. In 1.1, we are resolving this by adding an initializaiton chart. You can follow that work here:

#10562

@arun-gupta
Copy link
Author

@sdake yep, I've been deleting it manually for now, will close the issue.

@ajaychebbi
Copy link

ajaychebbi commented Mar 7, 2019

@arun-gupta for Istio 1.0.z you can manually delete the crds that have been registered using
kubectl delete -f install/kubernetes/helm/templates/crds.yaml. In 1.1, we are resolving this by adding an initializaiton chart. You can follow that work here:

#10562

In istio 1.0.6 I had to use kubectl delete -f install/kubernetes/helm/istio-init/files/crd-10.yaml to delete the crds manually

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

4 participants