Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageReference ¶ added in v1.66.1
type NamespaceSelector ¶
type NamespaceSelector struct { MatchNames []string `json:"matchNames,omitempty"` ExcludeNames []string `json:"excludeNames,omitempty"` LabelSelector metav1.LabelSelector `json:"labelSelector,omitempty"` }
type OperationPolicy ¶
type OperationPolicy struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec defines the behavior of a node group. Spec OperationPolicySpec `json:"spec"` Status PolicyStatus `json:"status,omitempty"` }
type OperationPolicySpec ¶
type OperationPolicySpec struct { EnforcementAction string `json:"enforcementAction"` Policies struct { AllowedRepos []string `json:"allowedRepos,omitempty"` RequiredResources struct { Limits []string `json:"limits,omitempty"` Requests []string `json:"requests,omitempty"` } `json:"requiredResources,omitempty"` DisallowedImageTags []string `json:"disallowedImageTags,omitempty"` RequiredProbes []string `json:"requiredProbes,omitempty"` RequiredLabels struct { Labels []struct { Key string `json:"key,omitempty"` AllowedRegex string `json:"allowedRegex,omitempty"` } `json:"labels,omitempty"` WatchKinds []string `json:"watchKinds,omitempty"` } `json:"requiredLabels,omitempty"` RequiredAnnotations struct { Annotations []struct { Key string `json:"key,omitempty"` AllowedRegex string `json:"allowedRegex,omitempty"` } `json:"annotations,omitempty"` WatchKinds []string `json:"watchKinds,omitempty"` } `json:"requiredAnnotations,omitempty"` MaxRevisionHistoryLimit *int `json:"maxRevisionHistoryLimit,omitempty"` ImagePullPolicy string `json:"imagePullPolicy,omitempty"` PriorityClassNames []string `json:"priorityClassNames,omitempty"` IngressClassNames []string `json:"ingressClassNames,omitempty"` StorageClassNames []string `json:"storageClassNames,omitempty"` CheckHostNetworkDNSPolicy bool `json:"checkHostNetworkDNSPolicy,omitempty"` CheckContainerDuplicates bool `json:"checkContainerDuplicates,omitempty"` ReplicaLimits struct { MinReplicas int `json:"minReplicas,omitempty"` MaxReplicas int `json:"maxReplicas,omitempty"` } `json:"replicaLimits,omitempty"` } `json:"policies"` Match struct { NamespaceSelector NamespaceSelector `json:"namespaceSelector,omitempty"` LabelSelector metav1.LabelSelector `json:"labelSelector,omitempty"` } `json:"match"` }
type PolicyStatus ¶ added in v1.48.0
type PolicyStatus struct { }
type SecurityPolicy ¶ added in v1.48.0
type SecurityPolicy struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec defines the behavior of a node group. Spec SecurityPolicySpec `json:"spec"` Status PolicyStatus `json:"status,omitempty"` }
type SecurityPolicySpec ¶ added in v1.48.0
type SecurityPolicySpec struct { EnforcementAction string `json:"enforcementAction"` Policies struct { AllowedHostPaths []struct { PathPrefix string `json:"pathPrefix"` ReadOnly bool `json:"readOnly"` } `json:"allowedHostPaths,omitempty"` AllowHostIPC *bool `json:"allowHostIPC,omitempty"` AllowHostPID *bool `json:"allowHostPID,omitempty"` AllowPrivileged *bool `json:"allowPrivileged,omitempty"` AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty"` AllowedProcMount string `json:"allowedProcMount,omitempty"` AllowedCapabilities []string `json:"allowedCapabilities,omitempty"` AllowedAppArmor []string `json:"allowedAppArmor,omitempty"` RequiredDropCapabilities []string `json:"requiredDropCapabilities,omitempty"` AllowHostNetwork *bool `json:"allowHostNetwork,omitempty"` AllowedHostPorts []IDRange `json:"allowedHostPorts,omitempty"` AllowedFlexVolumes []struct { Driver string `json:"driver"` } `json:"allowedFlexVolumes,omitempty"` AllowedVolumes []string `json:"allowedVolumes,omitempty"` ReadOnlyRootFilesystem bool `json:"readOnlyRootFilesystem,omitempty"` AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` AllowedClusterRoles []string `json:"allowedClusterRoles,omitempty"` FsGroup *SelectUIDStrategy `json:"fsGroup,omitempty"` RunAsUser *SelectUIDStrategy `json:"runAsUser,omitempty"` RunAsGroup *SelectUIDStrategy `json:"runAsGroup,omitempty"` SupplementalGroups *SelectUIDStrategy `json:"supplementalGroups,omitempty"` AllowedUnsafeSysctls []string `json:"allowedUnsafeSysctls,omitempty"` ForbiddenSysctls []string `json:"forbiddenSysctls,omitempty"` SeccompProfiles struct { AllowedProfiles []string `json:"allowedProfiles,omitempty"` AllowedLocalhostFiles []string `json:"allowedLocalhostFiles,omitempty"` } `json:"seccompProfiles,omitempty"` SeLinux []struct { Level string `json:"level,omitempty"` Role string `json:"role,omitempty"` Type string `json:"type,omitempty"` User string `json:"user,omitempty"` } `json:"seLinux,omitempty"` VerifyImageSignatures []ImageReference `json:"verifyImageSignatures,omitempty"` } `json:"policies"` Match struct { NamespaceSelector NamespaceSelector `json:"namespaceSelector,omitempty"` LabelSelector metav1.LabelSelector `json:"labelSelector,omitempty"` } `json:"match"` }
type SelectUIDStrategy ¶ added in v1.48.0
Click to show internal directories.
Click to hide internal directories.