-
Notifications
You must be signed in to change notification settings - Fork 718
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
Patching of v1beta1 ES resource with v1 on k8s 1.12 fails #2308
Comments
Changing Also it seems once the resource has been updated once by the v1 operator (whereby it presumably changes the storage version to So this is IMO not a blocker. |
Retested and it is not a caching issue. Does not go away even after 30 mins. Another couple of insights:
|
I got the same issue on EKS 1.12 |
I reverted the version to Also it only affects |
Likely caused by kubernetes/kubernetes#73752, removing the webhook solves the issue. Fix has been back-ported to |
I was wondering why I didn't get the issue on OpenShift 3.11. I did some additional tests and just discovered that ... Once enabled I get the exact same issue. |
Here is a "one liner" to apply the aforementioned workaround on all the Elasticsearch resources in a cluster: for ns in `kubectl get ns --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}'`; do \
for es in `kubectl get elasticsearch.elasticsearch.k8s.elastic.co --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}' -n ${ns}`; do \
kubectl get elasticsearch.elasticsearch.k8s.elastic.co/${es} -n ${ns} -o yaml | \
sed -E 's/apiVersion: elasticsearch.k8s.elastic.co\/v1/apiVersion: elasticsearch.k8s.elastic.co\/v1beta1/' | \
kubectl apply --validate=false -f -
done
done
|
Sum up of the different options that have been discussed offline:
In any case we should document that once ECK has been upgraded to 1.0 on K8S < 1.13 only cc @agup006 |
Looking at the workaround I'm worried some folks will run into unforseen issues, or find it problematic to run the script on OpenShift 3.11 and K8s 1.13. As we still have some flexibility going from beta -> GA the cleaner option is to tell folks from that platform to uninstall and reinstall the operator. |
Superseded by #2357 |
Same issue after upgrading the operator |
@iahmad-khan , did you uninstall and reinstall the operator going from beta to GA? |
k8s 1.12 running ECK
1.0.0-rc3
upgraded fromv1beta1
When upgrading what was created in
v1beta1
aswith
I run into the following error:
The text was updated successfully, but these errors were encountered: