Autoscaler from aws examples errors with csidrivers and csistoragecapacities #4262
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added missing rules for csidrivers and csistoragecapacities in aws examples
which used in documentation of installation https://docs.aws.amazon.com/eks/latest/userguide/cluster-autoscaler.html
but we have errors in autoscaler logs such as
0813 09:04:42.593671 1 reflector.go:138] k8s.io/client-go/informers/factory.go:134: Failed to watch *v1beta1.CSIStorageCapacity: failed to list *v1beta1.CSIStorageCapacity: csistoragecapacities.storage.k8s.io is forbidden: User system:serviceaccount:kube-system:cluster-autoscaler cannot list resource csistoragecapacities in API group storage.k8s.io at the cluster scope
or
E0813 09:04:42.594510 1 reflector.go:138] k8s.io/client-go/informers/factory.go:134: Failed to watch *v1.CSIDriver: failed to list *v1.CSIDriver: csidrivers.storage.k8s.io is forbidden: User system:serviceaccount:kube-system:cluster-autoscaler cannot list resource csidrivers in API group storage.k8s.io at the cluster scope
It was fixed in issue #4114 but only for helm chart, and not for aws examples, so this MR to fix the issue