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
upcoming releases of k8s/OpenShift are removing some APIs - need to review Kiali server/operator code #5022
Comments
UPDATE: As of May 16, 2022, I believe this is the only one left we have to address.
For CronJob, see all references to |
… newer kubernetes) part of: kiali/kiali#5022
… newer kubernetes) part of: kiali/kiali#5022
… newer kubernetes) part of: kiali/kiali#5022
… newer kubernetes) part of: kiali/kiali#5022
… newer kubernetes) (#536) part of: kiali/kiali#5022
Be aware that with the operator v1.51.0 using
|
Yes. This issue should have been mentioned in the 1.51 release notes (if not, we should make sure we add it).
That used to be the default but no longer is. So just explicitly define it and it will work as before. (UPDATE: didn't make the release notes - I'm adding it now: kiali/kiali.io#534) |
That worked, thanks! |
@AllexVeldman Hmm... so.. you are saying you were getting that original error when BOTH Or are you saying you left spec.deployment.hpa.spec empty/undefined and it didn't create the HPA even though you specified the api_version? Because that IS expected - the hpa.spec controls whether the HPA is created or not. The api_version just indicates WHAT api version the HPA should be declared as. But without a hpa.spec, Kiali will not create anything. However, if it is the former, then we need to find out why. None of our testing is showing that. I wonder if it has to do with removing? Maybe we should do some conditional checking to set the default depending on the k8s version? So - @AllexVeldman can you provide a more succinct description of WHEN you are seeing errors and WHAT workaround fixes it for you? I'm trying to determine if there is an edge case here that we missed. |
The original error happend when there was no Creates error: apiVersion: kiali.io/v1alpha1
kind: Kiali
metadata:
name: kiali
namespace: istio-system
spec:
auth:
strategy: "token"
deployment:
ingress_enabled: false
view_only_mode: true
accessible_namespaces: "**"
...
istio_namespace: "istio-system"
external_services:
grafana:
enabled: true
... Does not create the error: apiVersion: kiali.io/v1alpha1
kind: Kiali
metadata:
name: kiali
namespace: istio-system
spec:
auth:
strategy: "token"
deployment:
ingress_enabled: false
view_only_mode: true
accessible_namespaces: "**"
...
hpa:
api_version: "autoscaling/v2beta2"
istio_namespace: "istio-system"
external_services:
grafana:
enabled: true
... |
@AllexVeldman OK, it must be because we are testing on a cluster newer enough to at least have v2 that we don't see this. Can you provide me a little bit more of the operator logs. Maybe snip a couple of the ansible task logs before and after the error? I would like to try to figure out where this is happening in the code. At the moment, I do not have a cluster that at least does not support hpa v2, so I can't test that right this second. But thanks for at least confirming the workaround. I think this also warrants another github issue (bug issue). UPDATE: I have a feeling it is this: https://github.com/kiali/kiali-operator/blob/v1.51/roles/default/kiali-deploy/tasks/kubernetes/k8s-main.yml#L28-L37 |
Bug issue created - let's continue the discussion there as needed: #5115 |
@jmazzitelli , OS 4.12 is the next release (k8s 1.25), anything left to worry about? Or can we close this? |
all issues relevant to kiali have been addressed. We can close this. |
The operator SDK folks are reminding everyone about the following removals of deprecated k8s APIs. We need to go through our stuff and make sure we do what is necessary to remove anything in our code and in our operator so things don't break in the upcoming new releases of k8s and OpenShift.
See: https://kubernetes.io/docs/reference/using-api/deprecation-guide/
The text was updated successfully, but these errors were encountered: