Uploaded image for project: 'Operator Runtime'
  1. Operator Runtime
  2. OPRUN-4016

Add support for kubebuilder generation of RBAC standard/experimental [upstream]

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • Nidoran Sprint 274

      Kubebuilder uses tags to generate RBAC for controllers, if a controller is disabled in the standard manifest, then RBAC should not be generated for that controller.

      This does not require a new generator (like the crd-generator), but go build tags can be used. The tags would only be passed to the kubebuilder generator.

      Experimental controllers would need to include the following comment:

      //go:build !standard 

      Note the negation of the standard tag. This is because the executable build does not specify standard nor experimental. Only the generation does.

       

      The same can be done for webhooks as RBAC.

              pegoncal@redhat.com Per Goncalves da Silva
              tshort@redhat.com Todd Short
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: