Skip to content

Commit

Permalink
Merge pull request #67 from sustainable-computing-io/issue66
Browse files Browse the repository at this point in the history
consolidate labels as needed
  • Loading branch information
trent-s authored Mar 22, 2024
2 parents 0510f5e + a3bc834 commit 1e3009c
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 1e3009c

Please sign in to comment.