-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: csviri <[email protected]>
- Loading branch information
Showing
7 changed files
with
134 additions
and
25 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
21 changes: 21 additions & 0 deletions
21
src/test/java/io/csviri/operator/resourceglue/WebPageE2E.java
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,21 @@ | ||
package io.csviri.operator.resourceglue; | ||
|
||
import org.junit.jupiter.api.BeforeEach; | ||
|
||
import io.csviri.operator.resourceglue.customresource.glue.Glue; | ||
import io.csviri.operator.resourceglue.customresource.operator.GlueOperator; | ||
import io.fabric8.kubernetes.client.KubernetesClient; | ||
import io.fabric8.kubernetes.client.KubernetesClientBuilder; | ||
|
||
public class WebPageE2E { | ||
|
||
private KubernetesClient client = new KubernetesClientBuilder().build(); | ||
|
||
@BeforeEach | ||
void applyCRDs() { | ||
TestUtils.applyCrd(client, Glue.class, GlueOperator.class); | ||
|
||
} | ||
|
||
|
||
} |
15 changes: 15 additions & 0 deletions
15
src/test/java/io/csviri/operator/resourceglue/sample/webpage/WebPage.java
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,15 @@ | ||
package io.csviri.operator.resourceglue.sample.webpage; | ||
|
||
import io.fabric8.kubernetes.model.annotation.Group; | ||
import io.fabric8.kubernetes.model.annotation.Plural; | ||
import io.fabric8.kubernetes.model.annotation.Singular; | ||
import io.fabric8.kubernetes.model.annotation.Version; | ||
|
||
@Version(value = "v1", storage = true, served = true) | ||
@Group("resourceglueoperator.sample") | ||
@Singular("webpage") | ||
@Plural("webpages") | ||
@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner") | ||
public class WebPage extends io.fabric8.kubernetes.client.CustomResource<WebPageSpec, WebPageStatus> | ||
implements io.fabric8.kubernetes.api.model.Namespaced { | ||
} |
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
29 changes: 29 additions & 0 deletions
29
src/test/java/io/csviri/operator/resourceglue/sample/webpage/WebPageSpec.java
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,29 @@ | ||
package io.csviri.operator.resourceglue.sample.webpage; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
|
||
@JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) | ||
@JsonPropertyOrder({"exposed", "html"}) | ||
public class WebPageSpec { | ||
|
||
private Boolean exposed; | ||
|
||
private String html; | ||
|
||
public Boolean getExposed() { | ||
return exposed; | ||
} | ||
|
||
public void setExposed(Boolean exposed) { | ||
this.exposed = exposed; | ||
} | ||
|
||
public String getHtml() { | ||
return html; | ||
} | ||
|
||
public void setHtml(String html) { | ||
this.html = html; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/test/java/io/csviri/operator/resourceglue/sample/webpage/WebPageStatus.java
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,11 @@ | ||
package io.csviri.operator.resourceglue.sample.webpage; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
|
||
@JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) | ||
@JsonPropertyOrder({}) | ||
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) | ||
public class WebPageStatus { | ||
} |