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

v2-lib: auto add labels from a top level structure #746

Merged
merged 4 commits into from
Oct 31, 2024
Merged

Conversation

stavros-k
Copy link
Contributor

@stavros-k stavros-k commented Oct 30, 2024

Automatically parse a top level labels list if it exists, and add the labels to each targeted container.
Also checks if there are any non-existent containers and raises an error, to avoid any typos.

Questions will look like this:

  - variable: labels
    label: Labels
    group: Labels
    schema:
      type: dict
      attrs:
        - variable: key
          label: Key
          description: Key
          schema:
            type: string
            required: true
        - variable: value
          label: Value
          description: Value
          schema:
            type: string
        - variable: containers
          label: Containers
          description: Containers
          schema:
            type: list
            items:
              - variable: container
                label: Container
                description: Container
                schema:
                  type: string
                  required: true
                  enum:
                    - value: filebrowser

@stavros-k stavros-k marked this pull request as ready for review October 31, 2024 13:03
@stavros-k stavros-k merged commit faf0b84 into master Oct 31, 2024
5 checks passed
@stavros-k stavros-k deleted the labels-parse branch October 31, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants