Skip to content
This repository was archived by the owner on Aug 4, 2025. It is now read-only.
This repository was archived by the owner on Aug 4, 2025. It is now read-only.

Use Regex Matches in Resource Template #4

Description

@Edward13ruf

It would be incredibly powerful for the match groups from the regex used to match the namespace name to be available to the resource template.

namespace: my-ns-1
regex: my-ns-(?<id>\d+)
resources:

 apiVersion: rbac.authorization.k8s.io/v1
    kind: RoleBinding
    metadata:
      name: dev-rolebinding
    subjects:
    - kind: Group
      name: my-group:${id}
    roleRef:
      kind: Role
      name: dev-role
      apiGroup: rbac.authorization.k8s.io

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions