Skip to content

Commit

Permalink
fix labels
Browse files Browse the repository at this point in the history
  • Loading branch information
oldsj committed Mar 19, 2024
1 parent 821aceb commit ff5d5f5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/vespa/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Service
metadata:
name: {{ .Values.service.name }}
labels:
{{- toYaml .Values.labels | nindent 4 }}
{{- include "vespa.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
5 changes: 3 additions & 2 deletions charts/vespa/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ spec:
{{- end }}
selector:
matchLabels:
{{- toYaml .Values.selectorLabels | nindent 6 }}
{{- include "vespa.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "vespa.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down Expand Up @@ -64,4 +65,4 @@ spec:
resources:
requests:
storage: {{ .spec.resources.requests.storage }}
{{- end }}
{{- end }}
11 changes: 4 additions & 7 deletions charts/vespa/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""

podAnnotations: {}
podLabels:
app: vespa

selectorLabels:
app: vespa
# Additional annotations and labels to apply to pods
podAnnotations: {}
podLabels: {}

statefulSet:
name: vespa
Expand Down Expand Up @@ -132,4 +129,4 @@ volumeClaimTemplates:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storage: 1Gi

0 comments on commit ff5d5f5

Please sign in to comment.