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

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

Open
andreimarinescu opened this issue Feb 9, 2022 · 3 comments · May be fixed by #1168
Open
Labels
bug Something isn't working

Comments

@andreimarinescu
Copy link

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

  • Provision an EKS Cluster with Kubernetes 1.20.
  • Attempt to deploy the helm chart

Expected outcome

The chart deploys successfully.

Environment
Terraform 0.14.5
AWS EKS
Kubernetes 1.20

  • Chart name: aws-for-fluent-bit
  • Chart version: 0.1.12
  • Kubernetes version: 1.20
  • Using EKS (yes/no), if so version?
    Yes, eks.3

Additional Context:

@andreimarinescu andreimarinescu added the bug Something isn't working label Feb 9, 2022
@andreimarinescu
Copy link
Author

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. (helm/helm#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
Copy link

+1

@joebowbeer
Copy link
Contributor

Fixed by #662
/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants