-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for javaType and existingJavaType extensions in java-generator
- Loading branch information
1 parent
0c80a66
commit 868f6f7
Showing
13 changed files
with
326 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
...pprovals/ApprovalTest.generate_withValidCrd_shouldGeneratePojos.testJavaType.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
JavaTypeCr[0] = package org.test.v1; | ||
|
||
@io.fabric8.kubernetes.model.annotation.Version(value = "v1" , storage = true , served = true) | ||
@io.fabric8.kubernetes.model.annotation.Group("example.com") | ||
@io.fabric8.kubernetes.model.annotation.Plural("javatypes") | ||
@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") | ||
public class JavaType extends io.fabric8.kubernetes.client.CustomResource<org.test.v1.JavaTypeSpec, java.lang.Void> implements io.fabric8.kubernetes.api.model.Namespaced { | ||
} | ||
|
||
JavaTypeCr[1] = package org.test.v1; | ||
|
||
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) | ||
@com.fasterxml.jackson.annotation.JsonPropertyOrder({"affinity","point-A","point-B"}) | ||
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) | ||
@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") | ||
public class JavaTypeSpec implements io.fabric8.kubernetes.api.model.KubernetesResource { | ||
|
||
@com.fasterxml.jackson.annotation.JsonProperty("affinity") | ||
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) | ||
private io.fabric8.kubernetes.api.model.Affinity affinity; | ||
|
||
public io.fabric8.kubernetes.api.model.Affinity getAffinity() { | ||
return affinity; | ||
} | ||
|
||
public void setAffinity(io.fabric8.kubernetes.api.model.Affinity affinity) { | ||
this.affinity = affinity; | ||
} | ||
|
||
@com.fasterxml.jackson.annotation.JsonProperty("point-A") | ||
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) | ||
private com.example.Point pointA; | ||
|
||
public com.example.Point getPointA() { | ||
return pointA; | ||
} | ||
|
||
public void setPointA(com.example.Point pointA) { | ||
this.pointA = pointA; | ||
} | ||
|
||
@com.fasterxml.jackson.annotation.JsonProperty("point-B") | ||
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP) | ||
private com.example.Point pointB; | ||
|
||
public com.example.Point getPointB() { | ||
return pointB; | ||
} | ||
|
||
public void setPointB(com.example.Point pointB) { | ||
this.pointB = pointB; | ||
} | ||
} | ||
|
Oops, something went wrong.