-
Notifications
You must be signed in to change notification settings - Fork 700
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
Upgrading the Kubeapps chart deletes the apprepositores CRD #800
Comments
I am already investigating the issue |
Thanks @andresmgot for the heads up. Let us know |
Fix is available in #801 but I am not sure why I am seeing this now. |
I think the reason why we haven't always noticed this is because you will only run into this if you try to upgrade the first Kubeapps release you installed in your cluster. If you install Kubeapps for the first time, and then never upgrade but delete the release, the App CRD will be kept due to the resource policy annotation. Subsequent installs of the Kubeapps chart will not include the App CRD (because it already exists), and so upgrading does not have this issue. |
I can confirm @prydonius theory. Basically the system behaves correctly if you have installed and deleted a previous release, meaning that you are upgrading another one. Scenario 1: You are upgrading the first instance of Kubeapps ever installed in the cluster
Scenario 2: You are upgrading a second+ instance of Kubeapps
I can confirm that in my case I am experiencing the scenario 2. I am running kubeapps 0.9.4
which manifest does not include the CRD
but I have a crd installed by Kubeapps 0.3.0 $ kubectl get crd apprepositories.kubeapps.com -o yaml
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
helm.sh/resource-policy: keep
creationTimestamp: 2018-08-27T21:08:03Z
generation: 1
labels:
app: miguel-kubeapps-apprepository-controller
chart: kubeapps-0.3.0
heritage: Tiller
release: miguel-kubeapps version that is not part of my current release, note that my first one is 0.4.6
|
BTW, I think that this is an instance of the issue #625 |
Somehow the upgrade process is deleting the apprepositories CRD for me:
The text was updated successfully, but these errors were encountered: