Documentation ¶
Index ¶
- Variables
- func ValidateExemptPriorityLevelConfiguration(eplc *flowcontrol.ExemptPriorityLevelConfiguration, fldPath *field.Path) field.ErrorList
- func ValidateFlowSchema(fs *flowcontrol.FlowSchema) field.ErrorList
- func ValidateFlowSchemaCondition(condition *flowcontrol.FlowSchemaCondition, fldPath *field.Path) field.ErrorList
- func ValidateFlowSchemaNonResourcePolicyRule(rule *flowcontrol.NonResourcePolicyRule, fldPath *field.Path) field.ErrorList
- func ValidateFlowSchemaPolicyRulesWithSubjects(rule *flowcontrol.PolicyRulesWithSubjects, fldPath *field.Path) field.ErrorList
- func ValidateFlowSchemaResourcePolicyRule(rule *flowcontrol.ResourcePolicyRule, fldPath *field.Path) field.ErrorList
- func ValidateFlowSchemaSpec(fsName string, spec *flowcontrol.FlowSchemaSpec, fldPath *field.Path) field.ErrorList
- func ValidateFlowSchemaStatus(status *flowcontrol.FlowSchemaStatus, fldPath *field.Path) field.ErrorList
- func ValidateFlowSchemaStatusUpdate(old, fs *flowcontrol.FlowSchema) field.ErrorList
- func ValidateFlowSchemaSubject(subject *flowcontrol.Subject, fldPath *field.Path) field.ErrorList
- func ValidateFlowSchemaUpdate(old, fs *flowcontrol.FlowSchema) field.ErrorList
- func ValidateGroupSubject(subject *flowcontrol.GroupSubject, fldPath *field.Path) field.ErrorList
- func ValidateIfMandatoryPriorityLevelConfigurationObject(pl *flowcontrol.PriorityLevelConfiguration, fldPath *field.Path) field.ErrorList
- func ValidateLimitResponse(lr flowcontrol.LimitResponse, fldPath *field.Path) field.ErrorList
- func ValidateLimitedPriorityLevelConfiguration(lplc *flowcontrol.LimitedPriorityLevelConfiguration, ...) field.ErrorList
- func ValidateNonResourceURLPath(path string, fldPath *field.Path) *field.Error
- func ValidatePriorityLevelConfiguration(pl *flowcontrol.PriorityLevelConfiguration, requestGV schema.GroupVersion, ...) field.ErrorList
- func ValidatePriorityLevelConfigurationCondition(condition *flowcontrol.PriorityLevelConfigurationCondition, ...) field.ErrorList
- func ValidatePriorityLevelConfigurationSpec(spec *flowcontrol.PriorityLevelConfigurationSpec, ...) field.ErrorList
- func ValidatePriorityLevelConfigurationStatus(status *flowcontrol.PriorityLevelConfigurationStatus, fldPath *field.Path) field.ErrorList
- func ValidatePriorityLevelConfigurationStatusUpdate(old, pl *flowcontrol.PriorityLevelConfiguration) field.ErrorList
- func ValidatePriorityLevelQueuingConfiguration(queuing *flowcontrol.QueuingConfiguration, fldPath *field.Path) field.ErrorList
- func ValidateServiceAccountSubject(subject *flowcontrol.ServiceAccountSubject, fldPath *field.Path) field.ErrorList
- func ValidateUserSubject(subject *flowcontrol.UserSubject, fldPath *field.Path) field.ErrorList
- type PriorityLevelValidationOptions
Constants ¶
This section is empty.
Variables ¶
var ValidateFlowSchemaName = apimachineryvalidation.NameIsDNSSubdomain
ValidateFlowSchemaName validates name for flow-schema.
var ValidatePriorityLevelConfigurationName = apimachineryvalidation.NameIsDNSSubdomain
ValidatePriorityLevelConfigurationName validates name for priority-level-configuration.
Functions ¶
func ValidateExemptPriorityLevelConfiguration ¶ added in v1.28.0
func ValidateExemptPriorityLevelConfiguration(eplc *flowcontrol.ExemptPriorityLevelConfiguration, fldPath *field.Path) field.ErrorList
func ValidateFlowSchema ¶
func ValidateFlowSchema(fs *flowcontrol.FlowSchema) field.ErrorList
ValidateFlowSchema validates the content of flow-schema
func ValidateFlowSchemaCondition ¶
func ValidateFlowSchemaCondition(condition *flowcontrol.FlowSchemaCondition, fldPath *field.Path) field.ErrorList
ValidateFlowSchemaCondition validates condition in the flow-schema's status.
func ValidateFlowSchemaNonResourcePolicyRule ¶
func ValidateFlowSchemaNonResourcePolicyRule(rule *flowcontrol.NonResourcePolicyRule, fldPath *field.Path) field.ErrorList
ValidateFlowSchemaNonResourcePolicyRule validates non-resource policy-rule in the flow-schema.
func ValidateFlowSchemaPolicyRulesWithSubjects ¶
func ValidateFlowSchemaPolicyRulesWithSubjects(rule *flowcontrol.PolicyRulesWithSubjects, fldPath *field.Path) field.ErrorList
ValidateFlowSchemaPolicyRulesWithSubjects validates policy-rule-with-subjects object.
func ValidateFlowSchemaResourcePolicyRule ¶
func ValidateFlowSchemaResourcePolicyRule(rule *flowcontrol.ResourcePolicyRule, fldPath *field.Path) field.ErrorList
ValidateFlowSchemaResourcePolicyRule validates resource policy-rule in the flow-schema.
func ValidateFlowSchemaSpec ¶
func ValidateFlowSchemaSpec(fsName string, spec *flowcontrol.FlowSchemaSpec, fldPath *field.Path) field.ErrorList
ValidateFlowSchemaSpec validates the content of flow-schema's spec
func ValidateFlowSchemaStatus ¶
func ValidateFlowSchemaStatus(status *flowcontrol.FlowSchemaStatus, fldPath *field.Path) field.ErrorList
ValidateFlowSchemaStatus validates status for the flow-schema.
func ValidateFlowSchemaStatusUpdate ¶
func ValidateFlowSchemaStatusUpdate(old, fs *flowcontrol.FlowSchema) field.ErrorList
ValidateFlowSchemaStatusUpdate validates the update of status for the flow-schema.
func ValidateFlowSchemaSubject ¶
ValidateFlowSchemaSubject validates flow-schema's subject object.
func ValidateFlowSchemaUpdate ¶
func ValidateFlowSchemaUpdate(old, fs *flowcontrol.FlowSchema) field.ErrorList
ValidateFlowSchemaUpdate validates the update of flow-schema
func ValidateGroupSubject ¶
func ValidateGroupSubject(subject *flowcontrol.GroupSubject, fldPath *field.Path) field.ErrorList
ValidateGroupSubject validates subject of "Group" kind
func ValidateIfMandatoryPriorityLevelConfigurationObject ¶ added in v1.28.0
func ValidateIfMandatoryPriorityLevelConfigurationObject(pl *flowcontrol.PriorityLevelConfiguration, fldPath *field.Path) field.ErrorList
func ValidateLimitResponse ¶
func ValidateLimitResponse(lr flowcontrol.LimitResponse, fldPath *field.Path) field.ErrorList
ValidateLimitResponse validates a LimitResponse
func ValidateLimitedPriorityLevelConfiguration ¶
func ValidateLimitedPriorityLevelConfiguration(lplc *flowcontrol.LimitedPriorityLevelConfiguration, requestGV schema.GroupVersion, fldPath *field.Path, opts PriorityLevelValidationOptions) field.ErrorList
ValidateLimitedPriorityLevelConfiguration validates the configuration for an execution-limited priority level
func ValidateNonResourceURLPath ¶
ValidateNonResourceURLPath validates non-resource-url path by following rules:
- Slash must be the leading character of the path
- White-space is forbidden in the path
- Continuous/double slash is forbidden in the path
- Wildcard "*" should only do suffix glob matching. Note that wildcard also matches slashes.
func ValidatePriorityLevelConfiguration ¶
func ValidatePriorityLevelConfiguration(pl *flowcontrol.PriorityLevelConfiguration, requestGV schema.GroupVersion, opts PriorityLevelValidationOptions) field.ErrorList
ValidatePriorityLevelConfiguration validates priority-level-configuration.
func ValidatePriorityLevelConfigurationCondition ¶
func ValidatePriorityLevelConfigurationCondition(condition *flowcontrol.PriorityLevelConfigurationCondition, fldPath *field.Path) field.ErrorList
ValidatePriorityLevelConfigurationCondition validates condition in priority-level-configuration's status.
func ValidatePriorityLevelConfigurationSpec ¶
func ValidatePriorityLevelConfigurationSpec(spec *flowcontrol.PriorityLevelConfigurationSpec, requestGV schema.GroupVersion, name string, fldPath *field.Path, opts PriorityLevelValidationOptions) field.ErrorList
ValidatePriorityLevelConfigurationSpec validates priority-level-configuration's spec.
func ValidatePriorityLevelConfigurationStatus ¶
func ValidatePriorityLevelConfigurationStatus(status *flowcontrol.PriorityLevelConfigurationStatus, fldPath *field.Path) field.ErrorList
ValidatePriorityLevelConfigurationStatus validates priority-level-configuration's status.
func ValidatePriorityLevelConfigurationStatusUpdate ¶
func ValidatePriorityLevelConfigurationStatusUpdate(old, pl *flowcontrol.PriorityLevelConfiguration) field.ErrorList
ValidatePriorityLevelConfigurationStatusUpdate validates the update of priority-level-configuration's status.
func ValidatePriorityLevelQueuingConfiguration ¶
func ValidatePriorityLevelQueuingConfiguration(queuing *flowcontrol.QueuingConfiguration, fldPath *field.Path) field.ErrorList
ValidatePriorityLevelQueuingConfiguration validates queuing-configuration for a priority-level
func ValidateServiceAccountSubject ¶
func ValidateServiceAccountSubject(subject *flowcontrol.ServiceAccountSubject, fldPath *field.Path) field.ErrorList
ValidateServiceAccountSubject validates subject of "ServiceAccount" kind
func ValidateUserSubject ¶
func ValidateUserSubject(subject *flowcontrol.UserSubject, fldPath *field.Path) field.ErrorList
ValidateUserSubject validates subject of "User" kind
Types ¶
type PriorityLevelValidationOptions ¶ added in v1.29.0
type PriorityLevelValidationOptions struct { // a zero value for the 'nominalConcurrencyShares' field of the 'limited' // section of a priority level. AllowZeroLimitedNominalConcurrencyShares bool }
PriorityLevelValidationOptions holds the validation options for a priority level object