The structure of the kubernetes
and verrazzano
sections of the WDT model are described by schemas based on the Custom Resource Definitions (CRDs) for those products. This is different from other sections of the model that use the alias framework to describe their structures.
NOTE: Verrazzano support is deprecated in WDT 4.0.0.
These schemas are used during model validation to check that folder and attribute names are valid. The Model Help Tool uses them to list the contents of folders and details about their attributes.
CRDs corresponding to the kubernetes
section of the model are contained in the WebLogic Kubernetes Operator (WKO) project. CRDs from this project are merged together to form self-contained OpenAPI schemas.
CRDs corresponding to the verrazzano
section of the model are contained in the
Verrazzano project, and are merged in a similar manner to the WKO CRDs.
You will need to regenerate the CRD schemas when there are changes to CRDs in the corresponding projects.
The tool that builds the CRD schemas is contained in the
WDT project repository, in the module tools/crd-schema
. You can run the tool from the command line, or from within an IDE.
You will need to build the runnable JAR file using Maven:
$ mvn -f <project-dir>/tools/crd-schema/pom.xml clean install
Next, run the JAR file:
$ java -jar <project-dir>/tools/crd-schema/target/crd-schema.jar
This will write the generated schema files to the current directory.
If your IDE supports running Java programs directly, you can run the Java class oracle.weblogic.deploy.crdschema.SchemaGenerator
.
In IntelliJ IDEA, right-click on the SchemaGenerator
source file, and select Run SchemaGenerator.main()
.
This will write the generated schema files to the target directory <project-dir>/tools/crd-schema/target/crd
.
Copy the generated files to the <project-dir>/core/src/main/resources/oracle/weblogic/deploy/crds
directory. Confirm that any changes appear correctly when using the Model Help Tool before checking in the schemas.