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

Issues with Kubernetes API Deprecation warnings #11973

Closed
3 tasks done
sidewinder12s opened this issue Jan 12, 2023 · 1 comment · Fixed by #12067
Closed
3 tasks done

Issues with Kubernetes API Deprecation warnings #11973

sidewinder12s opened this issue Jan 12, 2023 · 1 comment · Fixed by #12067
Labels
bug Something isn't working component:core Syncing, diffing, cluster state cache type:supportability Enhancements that help operators to run Argo CD type:usability Enhancement of an existing feature

Comments

@sidewinder12s
Copy link

sidewinder12s commented Jan 12, 2023

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

W0112 20:10:35.903374       1 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition

A few issues with how the application-controller logs these warnings:

  • They are insistent and excessive, consuming large volumes of our logging quota.
  • If you have JSON logging enabled, they are not JSON wrapped, screwing up any log parsing you may have setup
  • They are not actionable, they do not say what resource or application is throwing the warning.

To Reproduce

Use a deprecated API.

Expected behavior

These should be properly JSON wrapped, they should be actionable, you should be able to disable this warning.

Version

argocd: v2.5.5+fc3eaec
  BuildDate: 2022-12-16T16:34:36Z
  GitCommit: fc3eaec6f498ddbe49a5fa9d215a219191fba02f
  GitTreeState: clean
  GoVersion: go1.18.9
  Compiler: gc
  Platform: linux/amd64
argocd-server: v2.5.5+fc3eaec
  BuildDate: 2022-12-16T16:10:26Z
  GitCommit: fc3eaec6f498ddbe49a5fa9d215a219191fba02f
  GitTreeState: clean
  GoVersion: go1.18.9
  Compiler: gc
  Platform: linux/amd64
  Kustomize Version: v4.5.7 2022-08-02T16:35:54Z
  Helm Version: v3.10.3+g835b733
  Kubectl Version: v0.24.2
  Jsonnet Version: v0.18.0

Logs

W0112 20:10:35.903374       1 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
@sidewinder12s sidewinder12s added the bug Something isn't working label Jan 12, 2023
@jannfis
Copy link
Member

jannfis commented Jan 15, 2023

I agree, these can be annoying. Seems that the warnings are emitted by Kubernetes' client-go, as described in this blog post.

There seems to be a way to turn them off

@jannfis jannfis added type:usability Enhancement of an existing feature type:supportability Enhancements that help operators to run Argo CD component:core Syncing, diffing, cluster state cache labels Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:core Syncing, diffing, cluster state cache type:supportability Enhancements that help operators to run Argo CD type:usability Enhancement of an existing feature
Projects
None yet
2 participants