AllowedHostPathV1Beta1
Class sealed net10.0
Represents an allowed host path for a PodSecurityPolicy in Kubernetes.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class AllowedHostPathV1Beta1{ // ...}Remarks
Section titled 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.
Constructors1
Section titled ConstructorsProperties2
Section titled PropertiesPathPrefixget; setstring 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.
ReadOnlyget; setbool? 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.