Skip to content

Commit

Permalink
consolidate labels as needed
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Trent <[email protected]>
  • Loading branch information
trent-s committed Mar 22, 2024
1 parent 0510f5e commit a3bc834
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/servicemonitor/susql-smon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ spec:
jobLabel: app.kubernetes.io/name
selector:
matchLabels:
sustainable-computing.io/app: susql
sustainable-computing.io/app: susql-controller
4 changes: 2 additions & 2 deletions deployment/susql-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ spec:
replicas: 1
selector:
matchLabels:
deployment.apps: {{ .Values.name }}
sustainable-computing.io/app: {{ .Values.name }}
template:
metadata:
name: {{ .Values.name }}
namespace: {{ .Values.namespace }}
labels:
deployment.apps: {{ .Values.name }}
sustainable-computing.io/app: {{ .Values.name }}
spec:
automountServiceAccountToken: true
serviceAccount: {{ .Values.name }}
Expand Down
4 changes: 3 additions & 1 deletion deployment/susql-controller/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ kind: Service
metadata:
name: {{ required "Please specify a 'name' in the user file" .Values.name }}
namespace: {{ required "Please specify a 'namespace' in the user file" .Values.namespace }}
labels:
sustainable-computing.io/app: {{ .Values.name }}
spec:
type: ClusterIP
selector:
deployment.apps: susql-controller
sustainable-computing.io/app: {{ .Values.name }}
ports:
- name: metrics
port: 8082
Expand Down

0 comments on commit a3bc834

Please sign in to comment.