Class MachineConfigPoolSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.machineconfiguration.v1.MachineConfigPoolSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<MachineConfigPoolSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class MachineConfigPoolSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<MachineConfigPoolSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
MachineConfigPoolSpec is the spec for MachineConfigPool resource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MachineConfigPoolSpec()No args constructor for use in serializationMachineConfigPoolSpec(MachineConfigPoolStatusConfiguration configuration, io.fabric8.kubernetes.api.model.LabelSelector machineConfigSelector, io.fabric8.kubernetes.api.model.IntOrString maxUnavailable, io.fabric8.kubernetes.api.model.LabelSelector nodeSelector, Boolean paused, List<PinnedImageSetRef> pinnedImageSets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MachineConfigPoolSpecBuilderedit()Map<String,Object>getAdditionalProperties()MachineConfigPoolStatusConfigurationgetConfiguration()MachineConfigPoolSpec is the spec for MachineConfigPool resource.io.fabric8.kubernetes.api.model.LabelSelectorgetMachineConfigSelector()MachineConfigPoolSpec is the spec for MachineConfigPool resource.io.fabric8.kubernetes.api.model.IntOrStringgetMaxUnavailable()MachineConfigPoolSpec is the spec for MachineConfigPool resource.io.fabric8.kubernetes.api.model.LabelSelectorgetNodeSelector()MachineConfigPoolSpec is the spec for MachineConfigPool resource.BooleangetPaused()paused specifies whether or not changes to this machine config pool should be stopped.List<PinnedImageSetRef>getPinnedImageSets()pinnedImageSets specifies a sequence of PinnedImageSetRef objects for the pool.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetConfiguration(MachineConfigPoolStatusConfiguration configuration)MachineConfigPoolSpec is the spec for MachineConfigPool resource.voidsetMachineConfigSelector(io.fabric8.kubernetes.api.model.LabelSelector machineConfigSelector)MachineConfigPoolSpec is the spec for MachineConfigPool resource.voidsetMaxUnavailable(io.fabric8.kubernetes.api.model.IntOrString maxUnavailable)MachineConfigPoolSpec is the spec for MachineConfigPool resource.voidsetNodeSelector(io.fabric8.kubernetes.api.model.LabelSelector nodeSelector)MachineConfigPoolSpec is the spec for MachineConfigPool resource.voidsetPaused(Boolean paused)paused specifies whether or not changes to this machine config pool should be stopped.voidsetPinnedImageSets(List<PinnedImageSetRef> pinnedImageSets)pinnedImageSets specifies a sequence of PinnedImageSetRef objects for the pool.MachineConfigPoolSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
MachineConfigPoolSpec
public MachineConfigPoolSpec()
No args constructor for use in serialization
-
MachineConfigPoolSpec
public MachineConfigPoolSpec(MachineConfigPoolStatusConfiguration configuration, io.fabric8.kubernetes.api.model.LabelSelector machineConfigSelector, io.fabric8.kubernetes.api.model.IntOrString maxUnavailable, io.fabric8.kubernetes.api.model.LabelSelector nodeSelector, Boolean paused, List<PinnedImageSetRef> pinnedImageSets)
-
-
Method Detail
-
getConfiguration
public MachineConfigPoolStatusConfiguration getConfiguration()
MachineConfigPoolSpec is the spec for MachineConfigPool resource.
-
setConfiguration
public void setConfiguration(MachineConfigPoolStatusConfiguration configuration)
MachineConfigPoolSpec is the spec for MachineConfigPool resource.
-
getMachineConfigSelector
public io.fabric8.kubernetes.api.model.LabelSelector getMachineConfigSelector()
MachineConfigPoolSpec is the spec for MachineConfigPool resource.
-
setMachineConfigSelector
public void setMachineConfigSelector(io.fabric8.kubernetes.api.model.LabelSelector machineConfigSelector)
MachineConfigPoolSpec is the spec for MachineConfigPool resource.
-
getMaxUnavailable
public io.fabric8.kubernetes.api.model.IntOrString getMaxUnavailable()
MachineConfigPoolSpec is the spec for MachineConfigPool resource.
-
setMaxUnavailable
public void setMaxUnavailable(io.fabric8.kubernetes.api.model.IntOrString maxUnavailable)
MachineConfigPoolSpec is the spec for MachineConfigPool resource.
-
getNodeSelector
public io.fabric8.kubernetes.api.model.LabelSelector getNodeSelector()
MachineConfigPoolSpec is the spec for MachineConfigPool resource.
-
setNodeSelector
public void setNodeSelector(io.fabric8.kubernetes.api.model.LabelSelector nodeSelector)
MachineConfigPoolSpec is the spec for MachineConfigPool resource.
-
getPaused
public Boolean getPaused()
paused specifies whether or not changes to this machine config pool should be stopped. This includes generating new desiredMachineConfig and update of machines.
-
setPaused
public void setPaused(Boolean paused)
paused specifies whether or not changes to this machine config pool should be stopped. This includes generating new desiredMachineConfig and update of machines.
-
getPinnedImageSets
public List<PinnedImageSetRef> getPinnedImageSets()
pinnedImageSets specifies a sequence of PinnedImageSetRef objects for the pool. Nodes within this pool will preload and pin images defined in the PinnedImageSet. Before pulling images the MachineConfigDaemon will ensure the total uncompressed size of all the images does not exceed available resources. If the total size of the images exceeds the available resources the controller will report a Degraded status to the MachineConfigPool and not attempt to pull any images. Also to help ensure the kubelet can mitigate storage risk, the pinned_image configuration and subsequent service reload will happen only after all of the images have been pulled for each set. Images from multiple PinnedImageSets are loaded and pinned sequentially as listed. Duplicate and existing images will be skipped.Any failure to prefetch or pin images will result in a Degraded pool. Resolving these failures is the responsibility of the user. The admin should be proactive in ensuring adequate storage and proper image authentication exists in advance.
-
setPinnedImageSets
public void setPinnedImageSets(List<PinnedImageSetRef> pinnedImageSets)
pinnedImageSets specifies a sequence of PinnedImageSetRef objects for the pool. Nodes within this pool will preload and pin images defined in the PinnedImageSet. Before pulling images the MachineConfigDaemon will ensure the total uncompressed size of all the images does not exceed available resources. If the total size of the images exceeds the available resources the controller will report a Degraded status to the MachineConfigPool and not attempt to pull any images. Also to help ensure the kubelet can mitigate storage risk, the pinned_image configuration and subsequent service reload will happen only after all of the images have been pulled for each set. Images from multiple PinnedImageSets are loaded and pinned sequentially as listed. Duplicate and existing images will be skipped.Any failure to prefetch or pin images will result in a Degraded pool. Resolving these failures is the responsibility of the user. The admin should be proactive in ensuring adequate storage and proper image authentication exists in advance.
-
edit
public MachineConfigPoolSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<MachineConfigPoolSpecBuilder>
-
toBuilder
public MachineConfigPoolSpecBuilder toBuilder()
-
-