Skip to content

Commit

Permalink
fix: hardcode rancher selector label
Browse files Browse the repository at this point in the history
The lookup does not work as expected

Signed-off-by: Bruno Bressi <[email protected]>
  • Loading branch information
puffitos committed Jan 21, 2025
1 parent 7e9668a commit 8b16fcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ annotations:
catalog.cattle.io/display-name: CaaS Cluster Monitoring V3
name: caas-cluster-monitoring
description: A Helm chart for Rancher Cluster Monitoring V3
version: "1.0.0-rc5"
version: "1.0.0-rc6"
appVersion: "68.1.1"
icon: https://raw.githubusercontent.com/caas-team/caas-project-monitoring/main/logo.png
keywords:
Expand Down
4 changes: 3 additions & 1 deletion templates/exporters/rancher-monitoring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ spec:
replacement: {{ .Values.global.cattle.clusterName }}
{{- end }}
jobLabel: rancher
selector: {{ (lookup "apps/v1" "Deployment" "cattle-system" "rancher") }}
selector:
matchLabels:
app: rancher
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down

0 comments on commit 8b16fcf

Please sign in to comment.