Class 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 Detail

      • K8SSelectorConfig

        public K8SSelectorConfig()
        No args constructor for use in serialization
      • K8SSelectorConfig

        public K8SSelectorConfig​(String field,
                                 String label,
                                 String role)
    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)