forked from fabric8io/kubernetes-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Resource.java
36 lines (27 loc) · 1.11 KB
/
Resource.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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();
}