Skip to content

Commit

Permalink
refactor: io.k8s.storage.snapshot (volumesnapshot) generated from Ope…
Browse files Browse the repository at this point in the history
…nAPI schemas (6432)

refactor: io.k8s.storage.snapshot (volumesnapshot) generated from OpenAPI schemas (Go side)

Signed-off-by: Marc Nuri <[email protected]>
---
refactor: io.k8s.storage.snapshot (volumesnapshot) generated from OpenAPI schemas (Java side)

Signed-off-by: Marc Nuri <[email protected]>
  • Loading branch information
manusa authored Oct 8, 2024
1 parent 89d398c commit d00b10d
Show file tree
Hide file tree
Showing 34 changed files with 905 additions and 1,119 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ openapi-generate-schema:
.PHONY: openapi-generate-java-classes
openapi-generate-java-classes:
cd kubernetes-model-generator && mvn $(MAVEN_ARGS) -Pgenerate clean install
# TODO: run generate from extensions module root once all extensions are migrated
cd extensions && mvn $(MAVEN_ARGS) -N clean install
cd extensions/volumesnapshot && mvn $(MAVEN_ARGS) -N clean install
cd extensions/volumesnapshot/model && mvn $(MAVEN_ARGS) -Pgenerate clean install

# Legacy generation of the model: TODO: remove
.PHONY: generate-model-legacy
Expand Down
3 changes: 2 additions & 1 deletion extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>kubernetes-client-project</artifactId>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-model-generator</artifactId>
<version>7.0-SNAPSHOT</version>
<relativePath>../kubernetes-model-generator</relativePath>
</parent>

<artifactId>kubernetes-extensions</artifactId>
Expand Down
1 change: 0 additions & 1 deletion extensions/volumesnapshot/generator/.gitignore

This file was deleted.

28 changes: 0 additions & 28 deletions extensions/volumesnapshot/generator/Makefile

This file was deleted.

76 changes: 0 additions & 76 deletions extensions/volumesnapshot/generator/cmd/generate/generate.go

This file was deleted.

11 changes: 0 additions & 11 deletions extensions/volumesnapshot/generator/go.mod

This file was deleted.

Loading

0 comments on commit d00b10d

Please sign in to comment.