Class KubePersistentVolumeClaim.Builder

    • Method Detail

      • metadata

        @Stability(Stable)
        public KubePersistentVolumeClaim.Builder metadata​(ObjectMeta metadata)
        Standard object's metadata.

        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

        Parameters:
        metadata - Standard object's metadata. This parameter is required.
        Returns:
        this
      • spec

        @Stability(Stable)
        public KubePersistentVolumeClaim.Builder spec​(PersistentVolumeClaimSpec spec)
        spec defines the desired characteristics of a volume requested by a pod author.

        More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

        Parameters:
        spec - spec defines the desired characteristics of a volume requested by a pod author. This parameter is required.
        Returns:
        this