Class SubscriptionConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.operatorhub.v1alpha1.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 serializationSubscriptionConfig(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 SubscriptionConfigBuilderedit()Map<String,Object>getAdditionalProperties()io.fabric8.kubernetes.api.model.AffinitygetAffinity()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.ResourceRequirementsgetResources()SubscriptionConfig contains configuration specified for a subscription.io.fabric8.kubernetes.api.model.LabelSelectorgetSelector()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.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAffinity(io.fabric8.kubernetes.api.model.Affinity affinity)SubscriptionConfig contains configuration specified for a subscription.voidsetAnnotations(Map<String,String> annotations)Annotations is an unstructured key value map stored with each Deployment, Pod, APIService in the Operator.voidsetEnv(List<io.fabric8.kubernetes.api.model.EnvVar> env)Env is a list of environment variables to set in the container.voidsetEnvFrom(List<io.fabric8.kubernetes.api.model.EnvFromSource> envFrom)EnvFrom is a list of sources to populate environment variables in the container.voidsetNodeSelector(Map<String,String> nodeSelector)NodeSelector is a selector which must be true for the pod to fit on a node.voidsetResources(io.fabric8.kubernetes.api.model.ResourceRequirements resources)SubscriptionConfig contains configuration specified for a subscription.voidsetSelector(io.fabric8.kubernetes.api.model.LabelSelector selector)SubscriptionConfig contains configuration specified for a subscription.voidsetTolerations(List<io.fabric8.kubernetes.api.model.Toleration> tolerations)Tolerations are the pod's tolerations.voidsetVolumeMounts(List<io.fabric8.kubernetes.api.model.VolumeMount> volumeMounts)List of VolumeMounts to set in the container.voidsetVolumes(List<io.fabric8.kubernetes.api.model.Volume> volumes)List of Volumes to set in the podSpec.SubscriptionConfigBuildertoBuilder()
-
-
-
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.
-
edit
public SubscriptionConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<SubscriptionConfigBuilder>
-
toBuilder
public SubscriptionConfigBuilder toBuilder()
-
-