-
Notifications
You must be signed in to change notification settings - Fork 16.7k
[stable/influxdb] Adds missing headless service configuration. #20237
Conversation
Other modifications: 1. add release label to statefulset.yaml. 2. modify annotations syntax in values.yaml. Signed-off-by: spring-bu <bushengquan@gmail.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: spring-bu The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @spring-bu. Thanks for your PR. I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@@ -1,6 +1,6 @@ | |||
apiVersion: v1 | |||
name: influxdb | |||
version: 3.2.0 | |||
version: 3.2.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version: 3.2.1 | |
version: 4.0.2 |
app: {{ template "influxdb.fullname" . }} | ||
chart: {{ template "influxdb.chart" . }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've updated labels since 4.0.0
you can use:
metadata:
name: {{ include "influxdb.fullname" . }}
labels:
{{- include "influxdb.labels" . | nindent 4 }}
targetPort: {{ .Values.config.rpc.bind_address }} | ||
{{- end }} | ||
selector: | ||
app: {{ template "influxdb.fullname" . }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app: {{ template "influxdb.fullname" . }} | |
{{- include "influxdb.selectorLabels" . | nindent 4 }} |
{{- end }} | ||
selector: | ||
app: {{ template "influxdb.fullname" . }} | ||
release: "{{ .Release.Name }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
release: "{{ .Release.Name }}" |
@@ -139,6 +139,10 @@ spec: | |||
volumeClaimTemplates: | |||
- metadata: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use:
metadata:
name: {{ include "influxdb.fullname" . }}-data
labels:
{{- include "influxdb.labels" . | nindent 4 }}
@@ -0,0 +1,50 @@ | |||
apiversion: v1 | |||
kind: Service | |||
metadata: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With label helpers added in 4.0.0 of the chart, you can now do something like:
metadata:
name: {{ include "influxdb.fullname" . }}-headless
labels:
{{- include "influxdb.labels" . | nindent 4 }}
targetPort: {{ .Values.config.rpc.bind_address }} | ||
{{- end }} | ||
selector: | ||
app: {{ template "influxdb.fullname" . }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app: {{ template "influxdb.fullname" . }} | |
{{- include "influxdb.selectorLabels" . | nindent 4 }} |
{{- end }} | ||
selector: | ||
app: {{ template "influxdb.fullname" . }} | ||
release: "{{ .Release.Name }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
release: "{{ .Release.Name }}" |
@@ -139,6 +139,10 @@ spec: | |||
volumeClaimTemplates: | |||
- metadata: | |||
name: {{ template "influxdb.fullname" . }}-data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With label helpers added in 4.0.0 of the chart, you can now do something like:
metadata:
name: {{ include "influxdb.fullname" . }}-data
labels:
{{- include "influxdb.labels" . | nindent 4 }}
This chart has been deprecated and moved: #21231 |
Other modifications:
Signed-off-by: spring-bu bushengquan@gmail.com
Is this a new chart
What this PR does / why we need it:
Which issue this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
[stable/mychartname]
)