Class StorageSpec

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

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class StorageSpec
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<StorageSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    StorageSpec defines the configured storage for a group Prometheus servers. If no storage option is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) will be used.


    If multiple storage options are specified, priority will be given as follows:

    1. emptyDir

    2. ephemeral

    3. volumeClaimTemplate

    See Also:
    Serialized Form
    • Constructor Detail

      • StorageSpec

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

        public StorageSpec​(Boolean disableMountSubPath,
                           io.fabric8.kubernetes.api.model.EmptyDirVolumeSource emptyDir,
                           io.fabric8.kubernetes.api.model.EphemeralVolumeSource ephemeral,
                           EmbeddedPersistentVolumeClaim volumeClaimTemplate)
    • Method Detail

      • getDisableMountSubPath

        public Boolean getDisableMountSubPath()
        Deprecated: subPath usage will be removed in a future release.
      • setDisableMountSubPath

        public void setDisableMountSubPath​(Boolean disableMountSubPath)
        Deprecated: subPath usage will be removed in a future release.
      • getEmptyDir

        public io.fabric8.kubernetes.api.model.EmptyDirVolumeSource getEmptyDir()
        StorageSpec defines the configured storage for a group Prometheus servers. If no storage option is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) will be used.


        If multiple storage options are specified, priority will be given as follows:

        1. emptyDir

        2. ephemeral

        3. volumeClaimTemplate

      • setEmptyDir

        public void setEmptyDir​(io.fabric8.kubernetes.api.model.EmptyDirVolumeSource emptyDir)
        StorageSpec defines the configured storage for a group Prometheus servers. If no storage option is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) will be used.


        If multiple storage options are specified, priority will be given as follows:

        1. emptyDir

        2. ephemeral

        3. volumeClaimTemplate

      • getEphemeral

        public io.fabric8.kubernetes.api.model.EphemeralVolumeSource getEphemeral()
        StorageSpec defines the configured storage for a group Prometheus servers. If no storage option is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) will be used.


        If multiple storage options are specified, priority will be given as follows:

        1. emptyDir

        2. ephemeral

        3. volumeClaimTemplate

      • setEphemeral

        public void setEphemeral​(io.fabric8.kubernetes.api.model.EphemeralVolumeSource ephemeral)
        StorageSpec defines the configured storage for a group Prometheus servers. If no storage option is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) will be used.


        If multiple storage options are specified, priority will be given as follows:

        1. emptyDir

        2. ephemeral

        3. volumeClaimTemplate

      • getVolumeClaimTemplate

        public EmbeddedPersistentVolumeClaim getVolumeClaimTemplate()
        StorageSpec defines the configured storage for a group Prometheus servers. If no storage option is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) will be used.


        If multiple storage options are specified, priority will be given as follows:

        1. emptyDir

        2. ephemeral

        3. volumeClaimTemplate

      • setVolumeClaimTemplate

        public void setVolumeClaimTemplate​(EmbeddedPersistentVolumeClaim volumeClaimTemplate)
        StorageSpec defines the configured storage for a group Prometheus servers. If no storage option is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) will be used.


        If multiple storage options are specified, priority will be given as follows:

        1. emptyDir

        2. ephemeral

        3. volumeClaimTemplate

      • getAdditionalProperties

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

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

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