AllowedHostPathV1Beta1 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an allowed host path for a PodSecurityPolicy in Kubernetes.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class AllowedHostPathV1Beta1
[<YamlDotNet.Serialization.YamlSerializable>]
type AllowedHostPathV1Beta1 = class
Public NotInheritable Class AllowedHostPathV1Beta1
- Inheritance
-
AllowedHostPathV1Beta1
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Remarks
This class defines constraints that determine which host paths are allowed to be used by containers backed by PodSecurityPolicies. It enables setting a specific path prefix and/or defining if the path is read-only.
Constructors
AllowedHostPathV1Beta1() |
Properties
PathPrefix |
Gets or sets the path prefix for the allowed host path. This property specifies the path prefix that will be matched against a volume's path. Only paths with this prefix will be allowed. |
ReadOnly |
Gets or sets a value indicating whether the host path is read-only. When set to true, the associated path can only be accessed in read-only mode. |