|
1 | 1 | #!/bin/bash
|
2 | 2 |
|
3 |
| -# Copyright 2020 The Kubernetes Authors. |
4 | 3 | #
|
5 |
| -# Licensed under the Apache License, Version 2.0 (the "License"); |
6 |
| -# you may not use this file except in compliance with the License. |
7 |
| -# You may obtain a copy of the License at |
| 4 | +# Copyright (c) 2021, Oracle and/or its affiliates. |
| 5 | +# Licensed under the Universal Permissive License v 1.0 as shown at |
| 6 | +# http://oss.oracle.com/licenses/upl. |
8 | 7 | #
|
9 |
| -# http://www.apache.org/licenses/LICENSE-2.0 |
10 |
| -# |
11 |
| -# Unless required by applicable law or agreed to in writing, software |
12 |
| -# distributed under the License is distributed on an "AS IS" BASIS, |
13 |
| -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 |
| -# See the License for the specific language governing permissions and |
15 |
| -# limitations under the License. |
16 | 8 |
|
17 | 9 | # This script orchestrates the code generation procedure. It is executed inside a crdgen
|
18 | 10 | # container in order to minimize the environment dependencies on the host, being Docker only.
|
@@ -82,4 +74,5 @@ bash java-crd-cmd.sh -n "${KUBERNETES_CRD_GROUP_PREFIX}" -p "${PACKAGE_NAME}" -l
|
82 | 74 | # only keep the model classes
|
83 | 75 | mkdir -p "${OUTPUT_DIR}/src/main/java/${PACKAGE_NAME//.//}"
|
84 | 76 | cp -r "${OUTPUT_DIR}/gen/src/main/java/${PACKAGE_NAME//.//}/models" "${OUTPUT_DIR}/src/main/java/${PACKAGE_NAME//.//}"
|
| 77 | +chmod 777 -R "${OUTPUT_DIR}/src" |
85 | 78 | rm -rf "${OUTPUT_DIR}/gen"/gen/openapi
|
0 commit comments