Class K8SSelectorConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.K8SSelectorConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<K8SSelectorConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class K8SSelectorConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<K8SSelectorConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
K8SSelectorConfig is Kubernetes Selector Config- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description K8SSelectorConfig()No args constructor for use in serializationK8SSelectorConfig(String field, String label, String role)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description K8SSelectorConfigBuilderedit()Map<String,Object>getAdditionalProperties()StringgetField()An optional field selector to limit the service discovery to resources which have fields with specific values. e.g: `metadata.name=foobar`StringgetLabel()An optional label selector to limit the service discovery to resources with specific labels and label values. e.g: `node.kubernetes.io/instance-type=master`StringgetRole()Role specifies the type of Kubernetes resource to limit the service discovery to.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetField(String field)An optional field selector to limit the service discovery to resources which have fields with specific values. e.g: `metadata.name=foobar`voidsetLabel(String label)An optional label selector to limit the service discovery to resources with specific labels and label values. e.g: `node.kubernetes.io/instance-type=master`voidsetRole(String role)Role specifies the type of Kubernetes resource to limit the service discovery to.K8SSelectorConfigBuildertoBuilder()
-
-
-
Method Detail
-
getField
public String getField()
An optional field selector to limit the service discovery to resources which have fields with specific values. e.g: `metadata.name=foobar`
-
setField
public void setField(String field)
An optional field selector to limit the service discovery to resources which have fields with specific values. e.g: `metadata.name=foobar`
-
getLabel
public String getLabel()
An optional label selector to limit the service discovery to resources with specific labels and label values. e.g: `node.kubernetes.io/instance-type=master`
-
setLabel
public void setLabel(String label)
An optional label selector to limit the service discovery to resources with specific labels and label values. e.g: `node.kubernetes.io/instance-type=master`
-
getRole
public String getRole()
Role specifies the type of Kubernetes resource to limit the service discovery to. Accepted values are: Node, Pod, Endpoints, EndpointSlice, Service, Ingress.
-
setRole
public void setRole(String role)
Role specifies the type of Kubernetes resource to limit the service discovery to. Accepted values are: Node, Pod, Endpoints, EndpointSlice, Service, Ingress.
-
edit
public K8SSelectorConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<K8SSelectorConfigBuilder>
-
toBuilder
public K8SSelectorConfigBuilder toBuilder()
-
-