Class ImagePrunerSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.imageregistry.v1.ImagePrunerSpec
-
- All Implemented Interfaces:
Editable<ImagePrunerSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ImagePrunerSpec extends Object implements Editable<ImagePrunerSpecBuilder>, KubernetesResource
ImagePrunerSpec defines the specs for the running image pruner.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImagePrunerSpec()No args constructor for use in serializationImagePrunerSpec(Affinity affinity, Integer failedJobsHistoryLimit, Boolean ignoreInvalidImageReferences, Integer keepTagRevisions, Long keepYoungerThan, String keepYoungerThanDuration, String logLevel, Map<String,String> nodeSelector, ResourceRequirements resources, String schedule, Integer successfulJobsHistoryLimit, Boolean suspend, List<Toleration> tolerations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImagePrunerSpecBuilderedit()Map<String,Object>getAdditionalProperties()AffinitygetAffinity()ImagePrunerSpec defines the specs for the running image pruner.IntegergetFailedJobsHistoryLimit()failedJobsHistoryLimit specifies how many failed image pruner jobs to retain.BooleangetIgnoreInvalidImageReferences()ignoreInvalidImageReferences indicates whether the pruner can ignore errors while parsing image references.IntegergetKeepTagRevisions()keepTagRevisions specifies the number of image revisions for a tag in an image stream that will be preserved.LonggetKeepYoungerThan()keepYoungerThan specifies the minimum age in nanoseconds of an image and its referrers for it to be considered a candidate for pruning.StringgetKeepYoungerThanDuration()ImagePrunerSpec defines the specs for the running image pruner.StringgetLogLevel()logLevel sets the level of log output for the pruner job.Map<String,String>getNodeSelector()nodeSelector defines the node selection constraints for the image pruner pod.ResourceRequirementsgetResources()ImagePrunerSpec defines the specs for the running image pruner.StringgetSchedule()schedule specifies when to execute the job using standard cronjob syntax: https://wikipedia.org/wiki/Cron.IntegergetSuccessfulJobsHistoryLimit()successfulJobsHistoryLimit specifies how many successful image pruner jobs to retain.BooleangetSuspend()suspend specifies whether or not to suspend subsequent executions of this cronjob.List<Toleration>getTolerations()tolerations defines the node tolerations for the image pruner pod.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAffinity(Affinity affinity)ImagePrunerSpec defines the specs for the running image pruner.voidsetFailedJobsHistoryLimit(Integer failedJobsHistoryLimit)failedJobsHistoryLimit specifies how many failed image pruner jobs to retain.voidsetIgnoreInvalidImageReferences(Boolean ignoreInvalidImageReferences)ignoreInvalidImageReferences indicates whether the pruner can ignore errors while parsing image references.voidsetKeepTagRevisions(Integer keepTagRevisions)keepTagRevisions specifies the number of image revisions for a tag in an image stream that will be preserved.voidsetKeepYoungerThan(Long keepYoungerThan)keepYoungerThan specifies the minimum age in nanoseconds of an image and its referrers for it to be considered a candidate for pruning.voidsetKeepYoungerThanDuration(String keepYoungerThanDuration)ImagePrunerSpec defines the specs for the running image pruner.voidsetLogLevel(String logLevel)logLevel sets the level of log output for the pruner job.voidsetNodeSelector(Map<String,String> nodeSelector)nodeSelector defines the node selection constraints for the image pruner pod.voidsetResources(ResourceRequirements resources)ImagePrunerSpec defines the specs for the running image pruner.voidsetSchedule(String schedule)schedule specifies when to execute the job using standard cronjob syntax: https://wikipedia.org/wiki/Cron.voidsetSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit)successfulJobsHistoryLimit specifies how many successful image pruner jobs to retain.voidsetSuspend(Boolean suspend)suspend specifies whether or not to suspend subsequent executions of this cronjob.voidsetTolerations(List<Toleration> tolerations)tolerations defines the node tolerations for the image pruner pod.ImagePrunerSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
ImagePrunerSpec
public ImagePrunerSpec()
No args constructor for use in serialization
-
ImagePrunerSpec
public ImagePrunerSpec(Affinity affinity, Integer failedJobsHistoryLimit, Boolean ignoreInvalidImageReferences, Integer keepTagRevisions, Long keepYoungerThan, String keepYoungerThanDuration, String logLevel, Map<String,String> nodeSelector, ResourceRequirements resources, String schedule, Integer successfulJobsHistoryLimit, Boolean suspend, List<Toleration> tolerations)
-
-
Method Detail
-
getAffinity
public Affinity getAffinity()
ImagePrunerSpec defines the specs for the running image pruner.
-
setAffinity
public void setAffinity(Affinity affinity)
ImagePrunerSpec defines the specs for the running image pruner.
-
getFailedJobsHistoryLimit
public Integer getFailedJobsHistoryLimit()
failedJobsHistoryLimit specifies how many failed image pruner jobs to retain. Defaults to 3 if not set.
-
setFailedJobsHistoryLimit
public void setFailedJobsHistoryLimit(Integer failedJobsHistoryLimit)
failedJobsHistoryLimit specifies how many failed image pruner jobs to retain. Defaults to 3 if not set.
-
getIgnoreInvalidImageReferences
public Boolean getIgnoreInvalidImageReferences()
ignoreInvalidImageReferences indicates whether the pruner can ignore errors while parsing image references.
-
setIgnoreInvalidImageReferences
public void setIgnoreInvalidImageReferences(Boolean ignoreInvalidImageReferences)
ignoreInvalidImageReferences indicates whether the pruner can ignore errors while parsing image references.
-
getKeepTagRevisions
public Integer getKeepTagRevisions()
keepTagRevisions specifies the number of image revisions for a tag in an image stream that will be preserved. Defaults to 3.
-
setKeepTagRevisions
public void setKeepTagRevisions(Integer keepTagRevisions)
keepTagRevisions specifies the number of image revisions for a tag in an image stream that will be preserved. Defaults to 3.
-
getKeepYoungerThan
public Long getKeepYoungerThan()
keepYoungerThan specifies the minimum age in nanoseconds of an image and its referrers for it to be considered a candidate for pruning. DEPRECATED: This field is deprecated in favor of keepYoungerThanDuration. If both are set, this field is ignored and keepYoungerThanDuration takes precedence.
-
setKeepYoungerThan
public void setKeepYoungerThan(Long keepYoungerThan)
keepYoungerThan specifies the minimum age in nanoseconds of an image and its referrers for it to be considered a candidate for pruning. DEPRECATED: This field is deprecated in favor of keepYoungerThanDuration. If both are set, this field is ignored and keepYoungerThanDuration takes precedence.
-
getKeepYoungerThanDuration
public String getKeepYoungerThanDuration()
ImagePrunerSpec defines the specs for the running image pruner.
-
setKeepYoungerThanDuration
public void setKeepYoungerThanDuration(String keepYoungerThanDuration)
ImagePrunerSpec defines the specs for the running image pruner.
-
getLogLevel
public String getLogLevel()
logLevel sets the level of log output for the pruner job.Valid values are: "Normal", "Debug", "Trace", "TraceAll". Defaults to "Normal".
-
setLogLevel
public void setLogLevel(String logLevel)
logLevel sets the level of log output for the pruner job.Valid values are: "Normal", "Debug", "Trace", "TraceAll". Defaults to "Normal".
-
getNodeSelector
public Map<String,String> getNodeSelector()
nodeSelector defines the node selection constraints for the image pruner pod.
-
setNodeSelector
public void setNodeSelector(Map<String,String> nodeSelector)
nodeSelector defines the node selection constraints for the image pruner pod.
-
getResources
public ResourceRequirements getResources()
ImagePrunerSpec defines the specs for the running image pruner.
-
setResources
public void setResources(ResourceRequirements resources)
ImagePrunerSpec defines the specs for the running image pruner.
-
getSchedule
public String getSchedule()
schedule specifies when to execute the job using standard cronjob syntax: https://wikipedia.org/wiki/Cron. Defaults to `0 0 * * *`.
-
setSchedule
public void setSchedule(String schedule)
schedule specifies when to execute the job using standard cronjob syntax: https://wikipedia.org/wiki/Cron. Defaults to `0 0 * * *`.
-
getSuccessfulJobsHistoryLimit
public Integer getSuccessfulJobsHistoryLimit()
successfulJobsHistoryLimit specifies how many successful image pruner jobs to retain. Defaults to 3 if not set.
-
setSuccessfulJobsHistoryLimit
public void setSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit)
successfulJobsHistoryLimit specifies how many successful image pruner jobs to retain. Defaults to 3 if not set.
-
getSuspend
public Boolean getSuspend()
suspend specifies whether or not to suspend subsequent executions of this cronjob. Defaults to false.
-
setSuspend
public void setSuspend(Boolean suspend)
suspend specifies whether or not to suspend subsequent executions of this cronjob. Defaults to false.
-
getTolerations
public List<Toleration> getTolerations()
tolerations defines the node tolerations for the image pruner pod.
-
setTolerations
public void setTolerations(List<Toleration> tolerations)
tolerations defines the node tolerations for the image pruner pod.
-
edit
public ImagePrunerSpecBuilder edit()
- Specified by:
editin interfaceEditable<ImagePrunerSpecBuilder>
-
toBuilder
public ImagePrunerSpecBuilder toBuilder()
-
-