Project layout for Java-based Operators

    The CLI can generate, or scaffold, a number of packages and files for each Operator project.

    Java-based Operator projects generated by the operator-sdk init command contain the following files and directories:

    File or directoryPurpose

    pom.xml

    File that contains the dependencies required to run the Operator.

    Directory that contains the files that represent the API. If the domain is example.com, this folder is called example/.

    Java file that defines controller implementations.

    MemcachedSpec.java

    Java file that defines the desired state of the Memcached CR.

    Java file that defines the observed state of the Memcached CR.

    Java file that defines the Schema for Memcached APIs.

    target/kubernetes/

    Directory that contains the CRD yaml files.