For an ingress definition like:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example-ingress
namespace: example
annotations:
cert-manager.io/cluster-issuer: "letsencrypt"
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-secret: example-ingress-auth
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required'
spec:
ingressClassName: nginx
tls:
- hosts: [] # Host names go here...
secretName: example-ingress-tls
rules: [] # Ingress rules go here...
example-ingress-tls is correctly recognized as a used secret, but the example-ingress-auth used in the ingress-nginx-specific annotation is not. It would be cool if kor would also check a pre-defined list of annotations for secret references (at least for ingresses).
For an ingress definition like:
example-ingress-tlsis correctly recognized as a used secret, but theexample-ingress-authused in the ingress-nginx-specific annotation is not. It would be cool ifkorwould also check a pre-defined list of annotations for secret references (at least for ingresses).