doitintl / kube-no-trouble

Easily check your clusters for use of deprecated APIs
MIT License
3.2k stars 157 forks source link

[BUG] Kubent reports updated manifests as outdated if their last applied configuration is outdated #619

Closed arthurgbranco closed 1 month ago

arthurgbranco commented 4 months ago

Example:

kubent
...
__________________________________________________________________________________________
>>> Deprecated APIs removed in 1.22 <<<
------------------------------------------------------------------------------------------
KIND                           NAMESPACE     NAME                   API_VERSION                            REPLACE_WITH (SINCE)
MutatingWebhookConfiguration   <undefined>   pod-identity-webhook   admissionregistration.k8s.io/v1beta1   admissionregistration.k8s.io/v1 (1.16.0)
kubectl get MutatingWebhookConfiguration pod-identity-webhook -o yaml

apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"admissionregistration.k8s.io/v1beta1"...

kubent should skip everything inside the annotation kubectl.kubernetes.io/last-applied-configuration while checking for api deprecations if possible.

github-actions[bot] commented 2 months ago

This issue has not seen any activity in last 60 days, and has been marked as stale.

github-actions[bot] commented 1 month ago

This issue was closed because it has been stalled for 90 days with no activity.