Class PersistentVolumeClaimVolumeSource

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class PersistentVolumeClaimVolumeSource
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).
    • Constructor Detail

      • PersistentVolumeClaimVolumeSource

        public PersistentVolumeClaimVolumeSource​(@NonNull
                                                 @NonNull java.lang.String claimName,
                                                 java.lang.Boolean readOnly)
      • PersistentVolumeClaimVolumeSource

        public PersistentVolumeClaimVolumeSource()
    • Method Detail

      • getClaimName

        @NonNull
        public @NonNull java.lang.String getClaimName()
        claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
      • getReadOnly

        public java.lang.Boolean getReadOnly()
        readOnly Will force the ReadOnly setting in VolumeMounts. Default false.
      • setClaimName

        public void setClaimName​(@NonNull
                                 @NonNull java.lang.String claimName)
        claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
      • setReadOnly

        public void setReadOnly​(java.lang.Boolean readOnly)
        readOnly Will force the ReadOnly setting in VolumeMounts. Default false.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object