fluent / fluent-bit-kubernetes-logging

Fluent Bit Kubernetes Daemonset
Apache License 2.0
468 stars 248 forks source link

extra line in fluent-bit role file for 1.22 #93

Open lucj opened 2 years ago

lucj commented 2 years ago

I got the following error when creating the fluent-bit role on a 1.22 cluster:

error: error parsing https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role-1.22.yaml

This is due to a remaining "git diff" at the end of the file:

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: fluent-bit-read
rules:
- apiGroups: [""]
  resources:
  - namespaces
  - pods
  verbs: ["get", "list", "watch"]
diff --git a/fluent-bit-role-binding-1.22.yaml b/fluent-bit-role-binding-1.22.yaml
linyuuki commented 2 years ago

I found this problem and submitted a comment. I thought maybe I could submit an issue. Then I found you. This problem resulted in no permission to obtain kubernetes api meta, and then unable to use auto_kubernetes_labels on to automatically generate labels.