pingcap / pingcap/tidb-operator

Issue with the indent in deployment-discovery template for resources

Open
#4,985 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
1.3k
Forks
540
Avg merge
3d 2h
Merged PRs (30d)
18

Description

This https://github.com/pingcap/tidb-operator/blob/master/charts/tidb-cluster/templates/discovery-deployment.yaml#L50
should not be 12 rather 10.

Suggestion:

{{- with .Values.discovery.resources }}
resources:
{{ toYaml . | nindent 10 }}
{{- end }}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open charts/tidb-cluster/templates/discovery-deployment.yaml at line 50 and inspect the discovery resources block. Change the indentation argument from 12 to 10 as suggested, then render the chart to verify the generated Kubernetes Deployment has correctly indented resources.

Written by the indexing model from the issue text.

Assessment

Tech stack
helm, kubernetes
Domain
infrastructure
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.