Skip to content

Commit

Permalink
OCPBUGS-17035: fix rbac rules for thanos-querier
Browse files Browse the repository at this point in the history
fix rbac rules for thanos-querier for pods by specifying the correct
apiVersion
  • Loading branch information
rexagod committed Aug 1, 2023
1 parent 45bdf6f commit 426d0fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/thanos-querier/kube-rbac-proxy-secret.yaml
Expand Up @@ -15,7 +15,7 @@ stringData:
config.yaml: |-
"authorization":
"resourceAttributes":
"apiVersion": "metrics.k8s.io/v1beta1"
"apiVersion": "v1"
"namespace": "{{ .Value }}"
"resource": "pods"
"rewrites":
Expand Down
2 changes: 1 addition & 1 deletion jsonnet/components/thanos-querier.libsonnet
Expand Up @@ -144,7 +144,7 @@ function(params)
},
},
resourceAttributes: {
apiVersion: 'metrics.k8s.io/v1beta1',
apiVersion: 'v1',
resource: 'pods',
namespace: '{{ .Value }}',
},
Expand Down

0 comments on commit 426d0fa

Please sign in to comment.