Class ImagePrunerSpec

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

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class ImagePrunerSpec
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<ImagePrunerSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    ImagePrunerSpec defines the specs for the running image pruner.
    See Also:
    Serialized Form
    • Constructor Detail

      • ImagePrunerSpec

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

        public ImagePrunerSpec​(io.fabric8.kubernetes.api.model.Affinity affinity,
                               Integer failedJobsHistoryLimit,
                               Boolean ignoreInvalidImageReferences,
                               Integer keepTagRevisions,
                               Long keepYoungerThan,
                               String keepYoungerThanDuration,
                               String logLevel,
                               Map<String,​String> nodeSelector,
                               io.fabric8.kubernetes.api.model.ResourceRequirements resources,
                               String schedule,
                               Integer successfulJobsHistoryLimit,
                               Boolean suspend,
                               List<io.fabric8.kubernetes.api.model.Toleration> tolerations)
    • Method Detail

      • getAffinity

        public io.fabric8.kubernetes.api.model.Affinity getAffinity()
        ImagePrunerSpec defines the specs for the running image pruner.
      • setAffinity

        public void setAffinity​(io.fabric8.kubernetes.api.model.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 io.fabric8.kubernetes.api.model.ResourceRequirements getResources()
        ImagePrunerSpec defines the specs for the running image pruner.
      • setResources

        public void setResources​(io.fabric8.kubernetes.api.model.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<io.fabric8.kubernetes.api.model.Toleration> getTolerations()
        tolerations defines the node tolerations for the image pruner pod.
      • setTolerations

        public void setTolerations​(List<io.fabric8.kubernetes.api.model.Toleration> tolerations)
        tolerations defines the node tolerations for the image pruner pod.
      • getAdditionalProperties

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

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

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