根据CRD的yaml文件生成java的models类
docker run \
> --rm \
> -v "$LOCAL_MANIFEST_FILE":"$LOCAL_MANIFEST_FILE" \
> -v /var/run/:/var/run/ \
> -v "$(pwd)":"$(pwd)" \
> -ti \
> --network host \
> /kubernetes-client/java/crd-model-gen:v1.0.6 \
> / \
> -u $LOCAL_MANIFEST_FILE \
> -n \ #ips的group name为,所以这里设置的值为
-p \
-o "$(pwd)" -p \
-o "$(pwd)"Creating cluster "kind" ...
✓ Ensuring node image (kindest/node:v1.21.1)
✓ Preparing nodes
✓ Writing configuration
✓ Starting control-plane ️
✓ Installing CNI
✓ Installing StorageClass
Set kubectl context to "kind-kind"
You can now use your cluster with:
kubectl cluster-info --context kind-kind
Have a nice day!
./ created
Verifying CRD installation.
....省略
)
[WARNING] Multiple schemas found in the OAS 'content' section, returning only the first one (application/json)
[WARNING] Multiple schemas found in the OAS 'content' section, returning only the first one (application/json)
[WARNING] Multiple schemas found in the OAS 'content' section, returning only the first one (application/json)
[WARNING] Multiple schemas found in the OAS 'content' section, returning only the first one (application/json)
[INFO] Environment variable JAVA_POST_PROCESS_FILE not defined so the Java code may not be properly formatted. To define it, try 'export JAVA_POST_PROCESS_FILE="/usr/local/bin/clang-format -i"' (Linux/Mac)
[INFO] NOTE: To enable file post-processing, 'enablePostProcessFile' must be set to `true` (--enable-post-process-file for CLI).
[INFO] Processing operation readIP
[INFO] Processing operation replaceIP
[WARNING] Multiple schemas found in the OAS 'content' section, returning only the first one (application/json)
[INFO] Processing operation deleteIP
[WARNING] Multiple schemas found in the OAS 'content' section, returning only the first one (application/json)
[INFO] Processing operation patchIP
[WARNING] Multiple schemas found in the OAS 'content' section, returning only the first one (application/json-patch+json)
[INFO] Processing operation listIP
[INFO] Processing operation createIP
[WARNING] Multiple schemas found in the OAS 'content' section, returning only the first one (application/json)
[INFO] Processing operation deleteCollectionIP
[INFO] 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
[INFO] 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
[WARNING] #/components/schemas/ is not defined
[WARNING] #/components/schemas/ is not defined
[WARNING] #/components/schemas/ is not defined
[WARNING] #/components/schemas/ is not defined
[WARNING] #/components/schemas/ is not defined
[WARNING] #/components/schemas/ is not defined
[WARNING] #/components/schemas/ is not defined
[WARNING] #/components/schemas/ is not defined
[WARNING] #/components/schemas/ is not defined
[WARNING] #/components/schemas/ is not defined
[WARNING] #/components/schemas/ is not defined
[WARNING] #/components/schemas/ is not defined
[WARNING] #/components/schemas/ is not defined
[WARNING] #/components/schemas/ is not defined
[INFO] writing file /output_dir/src/main/java/io/kubeovn/models/
[INFO] Skipped /output_dir/docs/ (Skipped by modelDocs options supplied by user.)
[INFO] writing file /output_dir/src/main/java/io/kubeovn/models/
[INFO] Skipped /output_dir/docs/ (Skipped by modelDocs options supplied by user.)
[INFO] writing file /output_dir/src/main/java/io/kubeovn/models/
[INFO] Skipped /output_dir/docs/ (Skipped by modelDocs options supplied by user.)
[INFO] Skipping generation of APIs.
[INFO] 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
[INFO] writing file /output_dir/
[INFO] writing file /output_dir/
[INFO] writing file /output_dir/
[INFO] writing file /output_dir/
[INFO] writing file /output_dir/
[INFO] writing file /output_dir/
[INFO] writing file /output_dir/src/main/
[INFO] writing file /output_dir/.
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/
[INFO] writing file /output_dir/api/
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/auth/
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/auth/
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/auth/
[INFO] writing file /output_dir/gradlew
[INFO] writing file /output_dir/
[INFO] writing file /output_dir/gradle/wrapper/
[INFO] writing file /output_dir/gradle/wrapper/
[INFO] writing file /output_dir/git_push.sh
[INFO] writing file /output_dir/.gitignore
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/auth/
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/
[INFO] writing file /output_dir/src/main/java/io/kubernetes/client/openapi/
[INFO] writing file /output_dir/.openapi-generator-ignore
[INFO] writing file /output_dir/.openapi-generator/VERSION
[INFO] writing file /output_dir/.openapi-generator/FILES
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.814 s
[INFO] Finished at: 2023-01-11T06:38:17Z
[INFO] ------------------------------------------------------------------------
---Done.
---Done.
[root@xxx java]# 如上代表成功