Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc comments in values.yaml results in incomplete autogenerated documentation #1110

Open
voutilad opened this issue Mar 26, 2024 · 4 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@voutilad
Copy link

voutilad commented Mar 26, 2024

What happened?

The reference documentation at https://docs.redpanda.com/current/reference/k-redpanda-helm-spec/#external is incomplete because of the formatting of the comments. Specifically, details on some of the settings under external are missing.

See this section of values.yaml:

# If specified, then it will be appended to the `external.addresses` values as each broker's advertised address
# domain: local
# Optional list of addresses that the Redpanda brokers advertise.
# Provide one entry for each broker in order of StatefulSet replicas.
# The number of brokers is defined in statefulset.replicas.
# The values can be IP addresses or DNS names.
# If external.domain is set, the domain is appended to these values.
# There is an option to define a single external address for all brokers and leverage
# prefixTemplate as it will be calculated during initContainer execution.
# addresses:
# - redpanda-0
# - redpanda-1
# - redpanda-2
#
# annotations:
# For example:
# cloud.google.com/load-balancer-type: "Internal"
# service.beta.kubernetes.io/aws-load-balancer-type: nlb
# If you enable externalDns, each LoadBalancer service instance
# will be annotated with external-dns hostname
# matching external.addresses + external.domain
# externalDns:
# enabled: true
# prefixTemplate: ""

What did you expect to happen?

Expectation is all valid settings (e.g. external.domain, external.addresses...) are documented in the reference listing.

How can we reproduce it (as minimally and precisely as possible)?. Please include values file.

n/a

Anything else we need to know?

No response

Which are the affected charts?

Redpanda

Chart Version(s)

Since commit bfb4e55

Cloud provider

n/a

JIRA Link: K8S-125

@chrisseto
Copy link
Contributor

Thanks for catching this! I don't see a diff from the referenced commit that would result in this happening? I think I upgraded the version of the documentation generator at some point around then, perhaps that's what broke this?

@JakeSCahill can you check if this affects the generated docs for the docs website?

@JakeSCahill
Copy link
Contributor

The issue is due to a limitation with the tool we use to generate the docs.

Here's the issue we are tracking: norwoodj/helm-docs#175

@chrisseto
Copy link
Contributor

oooooooh, Thanks for the reference @JakeSCahill !

I think we'd want to use their nil value example in these cases? The generation will look a bit strange but that should get them to show up something like this:

Name Type default Description
external.prefixTemplate string "" Example value 123 and here's what that would do

@JakeSCahill
Copy link
Contributor

That does look promising. I'll try this out locally and if it's good I'll submit the PR to fix this issue. thanks @chrisseto

@JakeSCahill JakeSCahill self-assigned this Mar 26, 2024
@chrisseto chrisseto added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants