aws / eks-charts

Amazon EKS Helm chart repository
Apache License 2.0
1.21k stars 981 forks source link

AWS For Fluent Bit chart fails on K8S 1.20 due to deprecated apiVersion in templates #687

Open andreimarinescu opened 2 years ago

andreimarinescu commented 2 years ago

Describe the bug A concise description of what the bug is.

The clusterrole.yaml and clusterrolebinding.yaml templates have a deprecated apiVersion in Kubernetes 1.20. Trying to deploy the chart results in the following errors:

Error: malformed chart or values:
    templates/clusterrole.yaml: the kind "rbac.authorization.k8s.io/v1beta1 ClusterRole" is deprecated in favor of "rbac.authorization.k8s.io/v1 ClusterRole"
    templates/clusterrolebinding.yaml: the kind "rbac.authorization.k8s.io/v1beta1 ClusterRoleBinding" is deprecated in favor of "rbac.authorization.k8s.io/v1 ClusterRoleBinding"

Steps to reproduce

Expected outcome

The chart deploys successfully.

Environment Terraform 0.14.5 AWS EKS Kubernetes 1.20

Additional Context:

andreimarinescu commented 2 years ago

After additional research, this issue only seems to pop up when using the terraform helm provider, where it actually triggers an error instead of just a warning when running linting on the chart before deployment. (https://github.com/helm/helm/issues/8596 for context)

That being said - those REST api endpoints are indeed deprecated, leaving it to the team to determine if this is something that should be addressed now or later.

matanbaruch commented 2 years ago

+1

joebowbeer commented 2 years ago

Fixed by #662 /close