Class SubscriptionConfig

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

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class SubscriptionConfig
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<SubscriptionConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    SubscriptionConfig contains configuration specified for a subscription.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SubscriptionConfig()
      No args constructor for use in serialization
      SubscriptionConfig​(io.fabric8.kubernetes.api.model.Affinity affinity, Map<String,​String> annotations, List<io.fabric8.kubernetes.api.model.EnvVar> env, List<io.fabric8.kubernetes.api.model.EnvFromSource> envFrom, Map<String,​String> nodeSelector, io.fabric8.kubernetes.api.model.ResourceRequirements resources, io.fabric8.kubernetes.api.model.LabelSelector selector, List<io.fabric8.kubernetes.api.model.Toleration> tolerations, List<io.fabric8.kubernetes.api.model.VolumeMount> volumeMounts, List<io.fabric8.kubernetes.api.model.Volume> volumes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SubscriptionConfigBuilder edit()  
      Map<String,​Object> getAdditionalProperties()  
      io.fabric8.kubernetes.api.model.Affinity getAffinity()
      SubscriptionConfig contains configuration specified for a subscription.
      Map<String,​String> getAnnotations()
      Annotations is an unstructured key value map stored with each Deployment, Pod, APIService in the Operator.
      List<io.fabric8.kubernetes.api.model.EnvVar> getEnv()
      Env is a list of environment variables to set in the container.
      List<io.fabric8.kubernetes.api.model.EnvFromSource> getEnvFrom()
      EnvFrom is a list of sources to populate environment variables in the container.
      Map<String,​String> getNodeSelector()
      NodeSelector is a selector which must be true for the pod to fit on a node.
      io.fabric8.kubernetes.api.model.ResourceRequirements getResources()
      SubscriptionConfig contains configuration specified for a subscription.
      io.fabric8.kubernetes.api.model.LabelSelector getSelector()
      SubscriptionConfig contains configuration specified for a subscription.
      List<io.fabric8.kubernetes.api.model.Toleration> getTolerations()
      Tolerations are the pod's tolerations.
      List<io.fabric8.kubernetes.api.model.VolumeMount> getVolumeMounts()
      List of VolumeMounts to set in the container.
      List<io.fabric8.kubernetes.api.model.Volume> getVolumes()
      List of Volumes to set in the podSpec.
      void setAdditionalProperties​(Map<String,​Object> additionalProperties)  
      void setAdditionalProperty​(String name, Object value)  
      void setAffinity​(io.fabric8.kubernetes.api.model.Affinity affinity)
      SubscriptionConfig contains configuration specified for a subscription.
      void setAnnotations​(Map<String,​String> annotations)
      Annotations is an unstructured key value map stored with each Deployment, Pod, APIService in the Operator.
      void setEnv​(List<io.fabric8.kubernetes.api.model.EnvVar> env)
      Env is a list of environment variables to set in the container.
      void setEnvFrom​(List<io.fabric8.kubernetes.api.model.EnvFromSource> envFrom)
      EnvFrom is a list of sources to populate environment variables in the container.
      void setNodeSelector​(Map<String,​String> nodeSelector)
      NodeSelector is a selector which must be true for the pod to fit on a node.
      void setResources​(io.fabric8.kubernetes.api.model.ResourceRequirements resources)
      SubscriptionConfig contains configuration specified for a subscription.
      void setSelector​(io.fabric8.kubernetes.api.model.LabelSelector selector)
      SubscriptionConfig contains configuration specified for a subscription.
      void setTolerations​(List<io.fabric8.kubernetes.api.model.Toleration> tolerations)
      Tolerations are the pod's tolerations.
      void setVolumeMounts​(List<io.fabric8.kubernetes.api.model.VolumeMount> volumeMounts)
      List of VolumeMounts to set in the container.
      void setVolumes​(List<io.fabric8.kubernetes.api.model.Volume> volumes)
      List of Volumes to set in the podSpec.
      SubscriptionConfigBuilder toBuilder()  
    • Constructor Detail

      • SubscriptionConfig

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

        public SubscriptionConfig​(io.fabric8.kubernetes.api.model.Affinity affinity,
                                  Map<String,​String> annotations,
                                  List<io.fabric8.kubernetes.api.model.EnvVar> env,
                                  List<io.fabric8.kubernetes.api.model.EnvFromSource> envFrom,
                                  Map<String,​String> nodeSelector,
                                  io.fabric8.kubernetes.api.model.ResourceRequirements resources,
                                  io.fabric8.kubernetes.api.model.LabelSelector selector,
                                  List<io.fabric8.kubernetes.api.model.Toleration> tolerations,
                                  List<io.fabric8.kubernetes.api.model.VolumeMount> volumeMounts,
                                  List<io.fabric8.kubernetes.api.model.Volume> volumes)
    • Method Detail

      • getAffinity

        public io.fabric8.kubernetes.api.model.Affinity getAffinity()
        SubscriptionConfig contains configuration specified for a subscription.
      • setAffinity

        public void setAffinity​(io.fabric8.kubernetes.api.model.Affinity affinity)
        SubscriptionConfig contains configuration specified for a subscription.
      • getAnnotations

        public Map<String,​String> getAnnotations()
        Annotations is an unstructured key value map stored with each Deployment, Pod, APIService in the Operator. Typically, annotations may be set by external tools to store and retrieve arbitrary metadata. Use this field to pre-define annotations that OLM should add to each of the Subscription's deployments, pods, and apiservices.
      • setAnnotations

        public void setAnnotations​(Map<String,​String> annotations)
        Annotations is an unstructured key value map stored with each Deployment, Pod, APIService in the Operator. Typically, annotations may be set by external tools to store and retrieve arbitrary metadata. Use this field to pre-define annotations that OLM should add to each of the Subscription's deployments, pods, and apiservices.
      • getEnv

        public List<io.fabric8.kubernetes.api.model.EnvVar> getEnv()
        Env is a list of environment variables to set in the container. Cannot be updated.
      • setEnv

        public void setEnv​(List<io.fabric8.kubernetes.api.model.EnvVar> env)
        Env is a list of environment variables to set in the container. Cannot be updated.
      • getEnvFrom

        public List<io.fabric8.kubernetes.api.model.EnvFromSource> getEnvFrom()
        EnvFrom is a list of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Immutable.
      • setEnvFrom

        public void setEnvFrom​(List<io.fabric8.kubernetes.api.model.EnvFromSource> envFrom)
        EnvFrom is a list of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Immutable.
      • getNodeSelector

        public Map<String,​String> getNodeSelector()
        NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
      • setNodeSelector

        public void setNodeSelector​(Map<String,​String> nodeSelector)
        NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
      • getResources

        public io.fabric8.kubernetes.api.model.ResourceRequirements getResources()
        SubscriptionConfig contains configuration specified for a subscription.
      • setResources

        public void setResources​(io.fabric8.kubernetes.api.model.ResourceRequirements resources)
        SubscriptionConfig contains configuration specified for a subscription.
      • getSelector

        public io.fabric8.kubernetes.api.model.LabelSelector getSelector()
        SubscriptionConfig contains configuration specified for a subscription.
      • setSelector

        public void setSelector​(io.fabric8.kubernetes.api.model.LabelSelector selector)
        SubscriptionConfig contains configuration specified for a subscription.
      • getTolerations

        public List<io.fabric8.kubernetes.api.model.Toleration> getTolerations()
        Tolerations are the pod's tolerations.
      • setTolerations

        public void setTolerations​(List<io.fabric8.kubernetes.api.model.Toleration> tolerations)
        Tolerations are the pod's tolerations.
      • getVolumeMounts

        public List<io.fabric8.kubernetes.api.model.VolumeMount> getVolumeMounts()
        List of VolumeMounts to set in the container.
      • setVolumeMounts

        public void setVolumeMounts​(List<io.fabric8.kubernetes.api.model.VolumeMount> volumeMounts)
        List of VolumeMounts to set in the container.
      • getVolumes

        public List<io.fabric8.kubernetes.api.model.Volume> getVolumes()
        List of Volumes to set in the podSpec.
      • setVolumes

        public void setVolumes​(List<io.fabric8.kubernetes.api.model.Volume> volumes)
        List of Volumes to set in the podSpec.
      • getAdditionalProperties

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

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

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