Class SecretVolumeSource.Builder

  • Enclosing class:
    SecretVolumeSource

    public static class SecretVolumeSource.Builder
    extends java.lang.Object
    • Method Detail

      • defaultMode

        public SecretVolumeSource.Builder defaultMode​(java.lang.Number defaultMode)
        defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
        Returns:
        this.
      • optional

        public SecretVolumeSource.Builder optional​(java.lang.Boolean optional)
        optional field specify whether the Secret or its keys must be defined
        Returns:
        this.
      • secretName

        public SecretVolumeSource.Builder secretName​(java.lang.String secretName)
        secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
        Returns:
        this.
      • toString

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