Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk committed Sep 6, 2024
1 parent f6c68c6 commit c721dd3
Show file tree
Hide file tree
Showing 52 changed files with 285 additions and 406 deletions.
3 changes: 1 addition & 2 deletions charts/victoria-logs-single/templates/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ metadata:
labels: {{ include "victoria-logs.server.labels" $ctx | nindent 4 }}
spec:
selector:
{{- $_ := unset $ctx "extraLabels" }}
matchLabels: {{ include "victoria-logs.server.matchLabels" $ctx | nindent 6 }}
matchLabels: {{ include "victoria-logs.server.matchLabels" (omit $ctx "extraLabels") | nindent 6 }}
replicas: 1
{{- if $app.persistentVolume.enabled }}
strategy:
Expand Down
3 changes: 1 addition & 2 deletions charts/victoria-logs-single/templates/server-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,5 @@ spec:
{{- with $app.service.nodePort }}
nodePort: {{ . }}
{{- end }}
{{- $_ := unset $ctx "extraLabels" }}
selector: {{ include "victoria-logs.server.matchLabels" $ctx | nindent 4 }}
selector: {{ include "victoria-logs.server.matchLabels" (omit $ctx "extraLabels") | nindent 4 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ metadata:
spec:
serviceName: {{ $fullname }}
selector:
{{- $_ := unset $ctx "extraLabels" }}
matchLabels: {{ include "victoria-logs.server.matchLabels" $ctx | nindent 6 }}
matchLabels: {{ include "victoria-logs.server.matchLabels" (omit $ctx "extraLabels") | nindent 6 }}
replicas: 1
podManagementPolicy: {{ $app.podManagementPolicy }}
template:
Expand Down
6 changes: 2 additions & 4 deletions charts/victoria-metrics-agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ spec:
strategy: {{ toYaml . | nindent 4 }}
{{- end }}
selector:
{{- $_ := unset $ctx "extraLabels" }}
matchLabels: {{ include "chart.selectorLabels" $ctx | nindent 6 }}
matchLabels: {{ include "chart.selectorLabels" (omit $ctx "extraLabels") | nindent 6 }}
template:
metadata:
{{- $_ := set $ctx "extraLabels" (merge (deepCopy .Values.extraLabels) (deepCopy .Values.podLabels)) }}
Expand Down Expand Up @@ -128,12 +127,11 @@ spec:
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- $_ := unset $ctx "extraLabels" }}
{{- range $constraint := . }}
- {{ toYaml $constraint | nindent 10 | trim }}
{{- if not $constraint.labelSelector }}
labelSelector:
matchLabels: {{ include "chart.selectorLabels" $ctx | nindent 14 }}
matchLabels: {{ include "chart.selectorLabels" (omit $ctx "extraLabels") | nindent 14 }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
3 changes: 1 addition & 2 deletions charts/victoria-metrics-agent/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ spec:
maxUnavailable: {{ . }}
{{- end }}
selector:
{{- $_ := unset $ctx "extraLabels" }}
matchLabels: {{ include "chart.selectorLabels" $ctx | nindent 6 }}
matchLabels: {{ include "chart.selectorLabels" (omit $ctx "extraLabels") | nindent 6 }}
{{- end }}
3 changes: 1 addition & 2 deletions charts/victoria-metrics-agent/templates/service-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ spec:
matchNames:
- {{ include "vm.namespace" . }}
selector:
{{- $_ := unset $ctx "extraLabels" }}
matchLabels: {{ include "chart.selectorLabels" $ctx | nindent 6 }}
matchLabels: {{ include "chart.selectorLabels" (omit $ctx "extraLabels") | nindent 6 }}
endpoints:
- port: http
{{- with $serviceMonitor.basicAuth }}
Expand Down
3 changes: 1 addition & 2 deletions charts/victoria-metrics-agent/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,5 @@ spec:
port: {{ include "vm.port.from.flag" (dict "flag" .) }}
targetPort: opentsdb-tcp
{{- end }}
{{- $_ := unset $ctx "extraLabels" }}
selector: {{ include "chart.selectorLabels" $ctx | nindent 4 }}
selector: {{ include "chart.selectorLabels" (omit $ctx "extraLabels") | nindent 4 }}
{{- end }}
6 changes: 2 additions & 4 deletions charts/victoria-metrics-agent/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ spec:
updateStrategy: {{ toYaml . | nindent 4 }}
{{- end }}
selector:
{{- $_ := unset $ctx "extraLabels" }}
matchLabels: {{ include "chart.selectorLabels" $ctx | nindent 6 }}
matchLabels: {{ include "chart.selectorLabels" (omit $ctx "extraLabels") | nindent 6 }}
template:
metadata:
{{- $_ := set $ctx "extraLabels" (merge (deepCopy .Values.extraLabels) (deepCopy .Values.podLabels)) }}
Expand Down Expand Up @@ -138,12 +137,11 @@ spec:
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- $_ := unset $ctx "extraLabels" }}
{{- range $constraint := . }}
- {{ toYaml $constraint | nindent 10 | trim }}
{{- if not $constraint.labelSelector }}
labelSelector:
matchLabels: {{ include "chart.selectorLabels" $ctx | nindent 14 }}
matchLabels: {{ include "chart.selectorLabels" (omit $ctx "extraLabels") | nindent 14 }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
Loading

0 comments on commit c721dd3

Please sign in to comment.