Interface AllowedHostPathV1Beta1

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Implementing Classes:
    AllowedHostPathV1Beta1.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.69.0 (build f656c31)",
               date="2022-10-05T02:57:36.334Z")
    @Stability(Stable)
    public interface AllowedHostPathV1Beta1
    extends software.amazon.jsii.JsiiSerializable
    AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use.

    It requires the path prefix to be defined.

    • Method Detail

      • getPathPrefix

        @Stability(Stable)
        @Nullable
        default String getPathPrefix()
        pathPrefix is the path prefix that the host volume must match.

        It does not support *. Trailing slashes are trimmed when validating the path prefix with a host path.

        Examples: /foo would allow /foo, /foo/ and /foo/bar /foo would not allow /food or /etc/foo

      • getReadOnly

        @Stability(Stable)
        @Nullable
        default Boolean getReadOnly()
        when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.