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

How to document a list of objects? #185

Open
idogada-akamai opened this issue Jul 26, 2023 · 2 comments
Open

How to document a list of objects? #185

idogada-akamai opened this issue Jul 26, 2023 · 2 comments
Labels
question Further information is requested

Comments

@idogada-akamai
Copy link

Hello,

I have a values file that looks similar to this:

kafka:
  # -- Keda scaledObjects to create and configure
  # Look at the [values.yaml](values.yaml) file for examples
  # @default `[]`
  scaledObjects:

    - # -- The name of the scaled object
      name: kafka-ABC
      # -- The target resource name to scale
      scaleTargetRef: da-ABC
      consumerGroupSuffix: _abc
      topicSuffix: _abc

    - name: kafka-def
      scaleTargetRef: da-def
      consumerGroupSuffix: _def
      topicSuffix: _def

If I generate a doc base on that I get the following table:

Key Type Default Description
kafka.scaledObjects list [] Keda scaledObjects to create and configure Look at the values.yaml file for examples
kafka.scaledObjects[0].name string "kafka-ABC" The name of the scaled object
kafka.scaledObjects[0].scaleTargetRef string "da-ABC" The target resource name to scale

I want to to set kafka.scaledObjects to an empty list ([]). And then have the table looking looking something like this

Key Type Default Description
kafka.scaledObjects list [] Keda scaledObjects to create and configure Look at the values.yaml file for examples
kafka.scaledObjects[].name string The name of the scaled object
kafka.scaledObjects[].scaleTargetRef string The target resource name to scale
kafka.scaledObjects[].topicSuffix string The Kafka topic suffix. Will be prefixed by .Values.instance_name
kafka.scaledObjects[].consumerGroupSuffix string The Kafka consumer group suffix. Will be prefixed by .Values.instance_name

Do you know how can I achieve this?

@Nepo26 Nepo26 added the question Further information is requested label Jul 26, 2023
@idogada-akamai
Copy link
Author

@Nepo26 Can we get an answer to this?

@BarelElbaz
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants