- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for OmitStages (0.14 sec)
-
staging/src/k8s.io/apiserver/pkg/audit/policy/checker.go
return auditinternal.RequestAuditConfig{ Level: rule.Level, OmitStages: rule.OmitStages, OmitManagedFields: isOmitManagedFields(&rule, p.OmitManagedFields), } } } return auditinternal.RequestAuditConfig{ Level: DefaultAuditLevel, OmitStages: p.OmitStages, OmitManagedFields: p.OmitManagedFields, } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 02 22:24:14 UTC 2022 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/audit/validation/validation_test.go
} successCases = append(successCases, audit.Policy{}) // Empty policy is valid. successCases = append(successCases, audit.Policy{OmitStages: []audit.Stage{ // Policy with omitStages audit.Stage("RequestReceived")}}) successCases = append(successCases, audit.Policy{Rules: validRules}) // Multiple rules. for i, policy := range successCases { if errs := ValidatePolicy(&policy); len(errs) != 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 07:48:42 UTC 2023 - 4.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go
return } if !ac.Enabled() { handler.ServeHTTP(w, req) return } ev := &ac.Event ctx := req.Context() omitStages := ac.RequestAuditConfig.OmitStages ev.Stage = auditinternal.StageRequestReceived if processed := processAuditEvent(ctx, sink, ev, omitStages); !processed { audit.ApiserverAuditDroppedCounter.WithContext(ctx).Inc()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 8.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/audit/zz_generated.deepcopy.go
if in.Rules != nil { in, out := &in.Rules, &out.Rules *out = make([]PolicyRule, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.OmitStages != nil { in, out := &in.OmitStages, &out.OmitStages *out = make([]Stage, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 06 19:08:27 UTC 2021 - 7.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/audit/v1/types.go
Rules []PolicyRule `json:"rules" protobuf:"bytes,2,rep,name=rules"` // OmitStages is a list of stages for which no events are created. Note that this can also // be specified per rule in which case the union of both are omitted. // +optional // +listType=atomic OmitStages []Stage `json:"omitStages,omitempty" protobuf:"bytes,3,rep,name=omitStages"` // OmitManagedFields indicates whether to omit the managed fields of the request
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 27 20:24:10 UTC 2023 - 14.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/audit/v1/zz_generated.conversion.go
func autoConvert_v1_Policy_To_audit_Policy(in *Policy, out *audit.Policy, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta out.Rules = *(*[]audit.PolicyRule)(unsafe.Pointer(&in.Rules)) out.OmitStages = *(*[]audit.Stage)(unsafe.Pointer(&in.OmitStages)) out.OmitManagedFields = in.OmitManagedFields return nil } // Convert_v1_Policy_To_audit_Policy is an autogenerated conversion function.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 06 19:08:27 UTC 2021 - 14.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/audit/validation/validation.go
) // ValidatePolicy validates the audit policy func ValidatePolicy(policy *audit.Policy) field.ErrorList { var allErrs field.ErrorList allErrs = append(allErrs, validateOmitStages(policy.OmitStages, field.NewPath("omitStages"))...) rulePath := field.NewPath("rules") for i, rule := range policy.Rules { allErrs = append(allErrs, validatePolicyRule(rule, rulePath.Index(i))...) } return allErrs }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 15 14:13:07 UTC 2019 - 4.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/audit/v1/zz_generated.deepcopy.go
if in.Rules != nil { in, out := &in.Rules, &out.Rules *out = make([]PolicyRule, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.OmitStages != nil { in, out := &in.OmitStages, &out.OmitStages *out = make([]Stage, len(*in)) copy(*out, *in) } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 06 19:08:27 UTC 2021 - 7.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/audit/v1/generated.pb.go
if m.OmitManagedFields { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x20 if len(m.OmitStages) > 0 { for iNdEx := len(m.OmitStages) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.OmitStages[iNdEx]) copy(dAtA[i:], m.OmitStages[iNdEx]) i = encodeVarintGenerated(dAtA, i, uint64(len(m.OmitStages[iNdEx]))) i-- dAtA[i] = 0x1a } } if len(m.Rules) > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 81.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/audit/evaluator.go
type RequestAuditConfig struct { // Level at which the request is being audited at Level audit.Level // OmitStages is the stages that need to be omitted from being audited. OmitStages []audit.Stage // OmitManagedFields indicates whether to omit the managed fields of the request // and response bodies from being written to the API audit log. OmitManagedFields bool
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 02 22:24:14 UTC 2022 - 1.6K bytes - Viewed (0)