Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/influxdb] Adds missing headless service configuration. #20237

Closed
wants to merge 1 commit into from
Closed

[stable/influxdb] Adds missing headless service configuration. #20237

wants to merge 1 commit into from

Conversation

hydra-bu
Copy link
Contributor

Other modifications:

  1. add release label to statefulset.yaml.
  2. modify annotations syntax in values.yaml.

Signed-off-by: spring-bu bushengquan@gmail.com

Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

What this PR does / why we need it:

https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#limitations

StatefulSets currently require a Headless Service to be responsible for the network identity of the Pods. You are responsible for creating this Service.

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.]

  • DCO signed
  • Chart Version bumped
  • Variables are documented in the README.md
  • Title of the PR starts with chart name (e.g. [stable/mychartname])

Other modifications:
1. add release label to statefulset.yaml.
2. modify annotations syntax in values.yaml.

Signed-off-by: spring-bu <bushengquan@gmail.com>
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: spring-bu
To complete the pull request process, please assign jackzampolin
You can assign the PR to them by writing /assign @jackzampolin in a comment when ready.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@helm-bot helm-bot added the Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). label Jan 20, 2020
@k8s-ci-robot k8s-ci-robot requested a review from Aisuko January 20, 2020 04:50
@helm-bot helm-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 20, 2020
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jan 20, 2020
@k8s-ci-robot
Copy link
Contributor

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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
Copy link
Collaborator

@naseemkullah naseemkullah Feb 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version: 3.2.1
version: 4.0.2

app: {{ template "influxdb.fullname" . }}
chart: {{ template "influxdb.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Copy link
Collaborator

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" . }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
app: {{ template "influxdb.fullname" . }}
{{- include "influxdb.selectorLabels" . | nindent 4 }}

{{- end }}
selector:
app: {{ template "influxdb.fullname" . }}
release: "{{ .Release.Name }}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
release: "{{ .Release.Name }}"

@@ -139,6 +139,10 @@ spec:
volumeClaimTemplates:
- metadata:
Copy link
Collaborator

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:
Copy link
Collaborator

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" . }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
app: {{ template "influxdb.fullname" . }}
{{- include "influxdb.selectorLabels" . | nindent 4 }}

{{- end }}
selector:
app: {{ template "influxdb.fullname" . }}
release: "{{ .Release.Name }}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
release: "{{ .Release.Name }}"

@@ -139,6 +139,10 @@ spec:
volumeClaimTemplates:
- metadata:
name: {{ template "influxdb.fullname" . }}-data
Copy link
Collaborator

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 }}

@davidkarlsen
Copy link
Member

This chart has been deprecated and moved: #21231

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[stable/influxdb] Missing headless service configuration.
5 participants