Skip to content

Commit

Permalink
Revert "Fix labels and service selector"
Browse files Browse the repository at this point in the history
  • Loading branch information
JayGhiya authored Mar 27, 2024
1 parent 74fe08a commit 1e5145d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/vespa/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.2
version: 0.2.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
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:
{{- include "vespa.labels" . | nindent 4 }}
{{- toYaml .Values.labels | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
7 changes: 3 additions & 4 deletions charts/vespa/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,22 @@ kind: StatefulSet
metadata:
name: {{ .Values.statefulSet.name }}
labels:
{{- include "vespa.labels" . | nindent 4 }}
{{- toYaml .Values.labels | nindent 4 }}
spec:
serviceName: {{ .Values.statefulSet.name }}
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "vespa.selectorLabels" . | nindent 6 }}
{{- toYaml .Values.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 @@ -65,4 +64,4 @@ spec:
resources:
requests:
storage: {{ .spec.resources.requests.storage }}
{{- end }}
{{- end }}
11 changes: 7 additions & 4 deletions charts/vespa/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""


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

selectorLabels:
app: vespa


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

0 comments on commit 1e5145d

Please sign in to comment.