Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into tune-comments
Browse files Browse the repository at this point in the history
  • Loading branch information
flaneur2020 committed Aug 6, 2024
2 parents 8634c2e + 939e5b8 commit bbedaf6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/databend-query/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,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.10.3
version: 0.10.4

# 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
3 changes: 3 additions & 0 deletions charts/databend-query/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
{{- end }}
{{- end }}
{{- if .Values.enableLoadBalance }}
{{- $_ := set .Values.ingress.annotations "nginx.ingress.kubernetes.io/upstream-hash-by" "$http_x_databend_route_hint" }}
{{- end }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
Expand Down
2 changes: 1 addition & 1 deletion charts/databend-query/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
{{- end }}
selector:
{{- include "databend-query.selectorLabels" . | nindent 4 }}
{{- if eq (lower .Values.workload) "statefulset" }}
{{- if and (eq .Values.workload "statefulset") (not .Values.enableLoadBalance) }}
statefulset.kubernetes.io/pod-name: {{ include "databend-query.fullname" . }}-0
{{- end }}
{{- with .Values.service.sessionAffinity }}
Expand Down

0 comments on commit bbedaf6

Please sign in to comment.