This is a cache of https://docs.okd.io/4.6/operators/operator_sdk/osdk-appendices.html. It is a snapshot of the page at 2024-11-01T02:22:15.431+0000.
Appendices - Developing Operators | Operators | OKD 4.6
×

Operator project scaffolding layout

The operator-sdk CLI generates a number of packages for each Operator project. The following sections describes a basic rundown of each generated file and directory.

Ansible-based projects

Ansible-based Operator projects generated using the operator-sdk new --type ansible command contain the following directories and files:

File/folders Purpose

molecule/

Contains the files that are used for testing the Ansible roles.

roles/

Contains the helm chart used while creating the project.

build/

Contains the Dockerfile and build scripts used to build the Operator.

deploy/

Contains various YAML manifests for registering CRDs, setting up RBAC, and deploying the Operator as a deployment.

requirements.yml

Contains the Ansible content that needs to be installed.

watches.yaml

Contains group, version, kind and role.

helm-based projects

helm-based Operator projects generated using the operator-sdk new --type helm command contain the following directories and files:

File/folders Purpose

deploy/

Contains various YAML manifests for registering CRDs, setting up RBAC, and deploying the Operator as a Deployment.

helm-charts/<kind>

Contains a helm chart initialized using the equivalent of the helm create command.

build/

Contains the Dockerfile and build scripts used to build the Operator.

watches.yaml

Contains group, version, kind and helm chart location.