Class NamespaceDiscovery

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<NamespaceDiscoveryBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class NamespaceDiscovery
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<NamespaceDiscoveryBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    NamespaceDiscovery is the configuration for discovering Kubernetes namespaces.
    See Also:
    Serialized Form
    • Constructor Detail

      • NamespaceDiscovery

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

        public NamespaceDiscovery​(List<String> names,
                                  Boolean ownNamespace)
    • Method Detail

      • getNames

        public List<String> getNames()
        List of namespaces where to watch for resources. If empty and `ownNamespace` isn't true, Prometheus watches for resources in all namespaces.
      • setNames

        public void setNames​(List<String> names)
        List of namespaces where to watch for resources. If empty and `ownNamespace` isn't true, Prometheus watches for resources in all namespaces.
      • getOwnNamespace

        public Boolean getOwnNamespace()
        Includes the namespace in which the Prometheus pod runs to the list of watched namespaces.
      • setOwnNamespace

        public void setOwnNamespace​(Boolean ownNamespace)
        Includes the namespace in which the Prometheus pod runs to the list of watched namespaces.
      • getAdditionalProperties

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

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

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