-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
argocd-k8s-auth calling removed v1beta1 api #9786
Comments
We are seeing the same issue with these beta APIs, GKE and argo.
|
This is the normal behavior of the application controller. It establishes a watch on all available resources in the clusters it manages. It is not an API used by the application controller, or any other Argo CD component. As long as none of your applications manages a deprecated resource, you can safely upgrade your cluster version and the messages will disappear (because the API is not available anymore). |
@jannfis can you explain why I didn't see logs for it before setting up |
@rwong2888 Then, there are three different problems here:
I think 1 and 2 are not related to the Argo CD, so you should ask the GCP support if needed. But regarding 3, it can be improved by Argo CD side. (I think it is better to create a new Issue for 3.) |
I am still seeing some hits on a remote cluster post upgrade for the connection closed early. I don't think it is a big deal. Do I have to upgrade my argocd cluster to 1.22 to remove completely @toVersus ? |
Ah sorry, I forgot to share the most important thing. That's because the GKE reverts the removal of Ingress v1beta1 API since 1.22.7-gke.300. (I think this life-prolonging treatment taken by GKE ended up causing a lot of confusion.) So, you will continue to see the connection closed early audit logs until GKE 1.23 or later. Also, the deprecation insights may still show the alerts after upgrade. We confirm that
The available APIs on v1.22.8-gke.202 cluster: ❯ kubectl version
(...)
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.8-gke.202", GitCommit:"88deae00580af268497b9656f216cb092b630563", GitTreeState:"clean", BuildDate:"2022-06-03T03:27:52Z", GoVersion:"go1.16.14b7", Compiler:"gc", Platform:"linux/amd64"}
# The deprecated extensions/v1beta1 Ingress API is still listed
❯ kubectl api-resources | grep ingresses
ingresses ing extensions/v1beta1 true Ingress
ingresses ing networking.k8s.io/v1 true Ingress
No, the calls of Ingress v1beta1 APIs on a remote cluster has nothing to do with the version of Argo CD cluster. If you upgrade your Argo CD cluster to 1.22, you will still see the same audit logs or deprecation insights message on a remote cluster. |
Thank you @toVersus , that was very thorough. Closing the issue |
Using
argocd 2.4.2
I am on
gke 1.21
and trying to prepare for1.22
where apis have been removed.I recently have implemented
argocd-k8s-auth
as mentioned here, here, and here.In my gke audit logs, I am seeing our argo service account with workload identity call
v1beta1
every 10 minutes starting on the day argocd-k8s-auth was implementedI believe this to be a blocker to upgrading to
gke 1.22
and would like argocd to use the gav1
apis.The text was updated successfully, but these errors were encountered: