Skip to content

Commit

Permalink
Merge pull request #111 from waiterQ/enable-openapi-gen
Browse files Browse the repository at this point in the history
Enable openapi-gen
  • Loading branch information
volcano-sh-bot authored Jul 18, 2023
2 parents 33f6726 + d11d46d commit 408ba43
Show file tree
Hide file tree
Showing 5 changed files with 3,990 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ git clone https://github.com/volcano-sh/apis.git
## generate

```shell
bash ./hack/generate-groups.sh all volcano.sh/apis/pkg/client volcano.sh/apis/pkg/apis "batch:v1alpha1 bus:v1alpha1 nodeinfo:v1alpha1 scheduling:v1beta1" --go-header-file ./hack/boilerplate.go.txt
bash ./hack/generate-groups.sh conversion volcano.sh/apis/pkg/client volcano.sh/apis/pkg/apis "scheduling:v1beta1" --go-header-file ./hack/boilerplate.go.txt
bash ./hack/update-codegen.sh
```
4 changes: 2 additions & 2 deletions hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ bash ${SCRIPT_ROOT}/hack/generate-groups.sh "deepcopy,client,informer,lister" \

echo "--------------------"

bash ${SCRIPT_ROOT}/hack/generate-internal-groups.sh "deepcopy,conversion" \
bash ${SCRIPT_ROOT}/hack/generate-internal-groups.sh "deepcopy,conversion,openapi" \
volcano.sh/apis/pkg/apis/ volcano.sh/apis/pkg/apis volcano.sh/apis/pkg/apis \
"scheduling:v1beta1" \
"batch:v1alpha1 scheduling:v1beta1" \
--output-base "$(dirname "${BASH_SOURCE[0]}")/../../.." \
--go-header-file ${SCRIPT_ROOT}/hack/boilerplate.go.txt

1 change: 1 addition & 0 deletions pkg/apis/batch/v1alpha1/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ limitations under the License.
// +kubebuilder:object:generate=true
// +groupName=batch.volcano.sh
// +k8s:deepcopy-gen=package
// +k8s:openapi-gen=true
package v1alpha1
Loading

0 comments on commit 408ba43

Please sign in to comment.