Plugins

    All language-based operator projects provided by SDK (Ansible/Helm/Golang) follow the Kubebuilder standard and have a common base. The common base is generated using kustomize which is a project maintained and adopted by Kubernetes community to help work with the Kubernertes manifests (YAML files) that are used to configure the resources on the clusters.

    The specific files for each language are scaffolded for the language’s plugins. The Operator SDK CLI tool can provide custom plugins and helpers which are common and useful for all language types. To check the common base, you can also run:

    Also, see the topic to understand how it works.

    You can check the Project Layout to better understand the files and directories scaffolded by SDK CLI, which may be common for each language-type.

    By default plugins are used by the Operator SDK to provide the following features:

    • : perform the required scaffolds to provide the helpers to allow the projects to be integrated with OLM.

    Optional/custom plugins

    Users can also use custom plugins when they execute the SDK CLI sub-commands as a helper which includes the following options:

    Note that custom plugins are called via the init sub-command to work as global plugins, and will be added in the field of the PROJECT file. Any sub-command executed will then also be called.

    Contributors are able to create their own plugin(s) using the same standards and approach described by this document. Following them facilitates in-tree (in other words, built with the binary) addition of such community-driven plugins to the Operator SDK project by making review easier and code maintainable. Currently, the SDK cannot discover and use plugins that are not in-tree. However, out-of-tree plugins have been discussed in .

    If you are looking to develop similar solutions to allow users for example to create projects using other languages or that could work as helpers for the projects built with SDK/Kubebuilder projects, then see the Creating your own plugins to see how you can benefit and apply this approach.