forked from fabric8io/kubernetes-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix fabric8io#3972: moving template handling to a custom deserializer
- Loading branch information
Showing
14 changed files
with
189 additions
and
81 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
36 changes: 36 additions & 0 deletions
36
...ubernetes-model-common/src/main/java/io/fabric8/kubernetes/model/annotation/Resource.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,36 @@ | ||
package io.fabric8.kubernetes.model.annotation; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.Target; | ||
|
||
import static java.lang.annotation.ElementType.TYPE; | ||
import static java.lang.annotation.RetentionPolicy.RUNTIME; | ||
|
||
@Target({ TYPE }) | ||
@Retention(RUNTIME) | ||
public @interface Resource { | ||
|
||
/** | ||
* Allows to specify which API group the annotated class is defined under. Together with version, this | ||
* determines the `apiVersion` field associated with the annotated resource. | ||
* See https://kubernetes.io/docs/reference/using-api/#api-groups for more details. | ||
*/ | ||
String group(); | ||
|
||
/** | ||
* Specifies the kind value should be used to refer to instance of the annotated class. If not provided, | ||
* a default value is computed based on the annotated class name. See HasMetadata#getKind for more details. | ||
*/ | ||
String kind() default ""; | ||
|
||
/** | ||
* Specifies the plural form associated with a Custom Resource. If not provided, it will default to a computed value. | ||
* See HasMetadata#getPlural for more details. | ||
*/ | ||
String plural() default ""; | ||
|
||
boolean namespaced() default true; | ||
|
||
String version(); | ||
|
||
} |
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
Oops, something went wrong.