Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 74 for paramKind (0.72 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/typechecking.go

    func (c *TypeChecker) paramsGVK(policy *v1.ValidatingAdmissionPolicy) schema.GroupVersionKind {
    	if policy.Spec.ParamKind == nil {
    		return schema.GroupVersionKind{}
    	}
    	gv, err := schema.ParseGroupVersion(policy.Spec.ParamKind.APIVersion)
    	if err != nil {
    		return schema.GroupVersionKind{}
    	}
    	return gv.WithKind(policy.Spec.ParamKind.Kind)
    }
    
    // typesToCheck extracts a list of GVKs that needs type checking from the policy
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/admissionregistration/v1alpha1/generated.pb.go

    var xxx_messageInfo_NamedRuleWithOperations proto.InternalMessageInfo
    
    func (m *ParamKind) Reset()      { *m = ParamKind{} }
    func (*ParamKind) ProtoMessage() {}
    func (*ParamKind) Descriptor() ([]byte, []int) {
    	return fileDescriptor_2c49182728ae0af5, []int{5}
    }
    func (m *ParamKind) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    func (m *ParamKind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	b = b[:cap(b)]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 117.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/admissionregistration/v1/types.go

    	// +optional
    	ParamKind *ParamKind `json:"paramKind,omitempty" protobuf:"bytes,1,rep,name=paramKind"`
    
    	// MatchConstraints specifies what resources this policy is designed to validate.
    	// The AdmissionPolicy cares about a request if it matches _all_ Constraints.
    	// However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 61.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/testdata/HEAD/admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicy.json

            "time": "2004-01-01T01:01:01Z",
            "fieldsType": "fieldsTypeValue",
            "fieldsV1": {},
            "subresource": "subresourceValue"
          }
        ]
      },
      "spec": {
        "paramKind": {
          "apiVersion": "apiVersionValue",
          "kind": "kindValue"
        },
        "matchConstraints": {
          "namespaceSelector": {
            "matchLabels": {
              "matchLabelsKey": "matchLabelsValue"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 00:13:28 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/testdata/HEAD/admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicy.yaml

          apiVersions:
          - apiVersionsValue
          operations:
          - operationsValue
          resourceNames:
          - resourceNamesValue
          resources:
          - resourcesValue
          scope: scopeValue
      paramKind:
        apiVersion: apiVersionValue
        kind: kindValue
      validations:
      - expression: expressionValue
        message: messageValue
        messageExpression: messageExpressionValue
        reason: reasonValue
      variables:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 00:13:28 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/testdata/v1.29.0/admissionregistration.k8s.io.v1alpha1.ValidatingAdmissionPolicy.json

            "time": "2004-01-01T01:01:01Z",
            "fieldsType": "fieldsTypeValue",
            "fieldsV1": {},
            "subresource": "subresourceValue"
          }
        ]
      },
      "spec": {
        "paramKind": {
          "apiVersion": "apiVersionValue",
          "kind": "kindValue"
        },
        "matchConstraints": {
          "namespaceSelector": {
            "matchLabels": {
              "matchLabelsKey": "matchLabelsValue"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 04:12:07 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/dispatcher.go

    					// available to CEL without making copies of objects, etc.
    					p = &wrappedParam{
    						TypeMeta: metav1.TypeMeta{
    							APIVersion: definition.Spec.ParamKind.APIVersion,
    							Kind:       definition.Spec.ParamKind.Kind,
    						},
    						nested: param,
    					}
    				}
    
    				validationResults = append(validationResults,
    					hook.Evaluator.Validate(
    						ctx,
    						matchResource,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/admissionregistration/v1beta1/generated.pb.go

    var xxx_messageInfo_NamedRuleWithOperations proto.InternalMessageInfo
    
    func (m *ParamKind) Reset()      { *m = ParamKind{} }
    func (*ParamKind) ProtoMessage() {}
    func (*ParamKind) Descriptor() ([]byte, []int) {
    	return fileDescriptor_7f7c65a4f012fb19, []int{8}
    }
    func (m *ParamKind) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    func (m *ParamKind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	b = b[:cap(b)]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 187.9K bytes
    - Viewed (0)
  9. pkg/registry/admissionregistration/validatingadmissionpolicy/authz_test.go

    			t.Run("update", func(t *testing.T) {
    				ctx := request.WithUser(context.Background(), tc.userInfo)
    				obj := validValidatingAdmissionPolicy()
    				objWithUpdatedParamKind := obj.DeepCopy()
    				objWithUpdatedParamKind.Spec.ParamKind.APIVersion += "1"
    				errs := strategy.ValidateUpdate(ctx, obj, objWithUpdatedParamKind)
    				if len(errs) > 0 != tc.expectErr {
    					t.Errorf("expected error: %v but got error: %v", tc.expectErr, errs)
    				}
    			})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 21:29:56 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/admissionregistration/v1/generated.pb.go

    var xxx_messageInfo_NamedRuleWithOperations proto.InternalMessageInfo
    
    func (m *ParamKind) Reset()      { *m = ParamKind{} }
    func (*ParamKind) ProtoMessage() {}
    func (*ParamKind) Descriptor() ([]byte, []int) {
    	return fileDescriptor_3205c7dc5bf0c9bf, []int{8}
    }
    func (m *ParamKind) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    func (m *ParamKind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	b = b[:cap(b)]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 200.5K bytes
    - Viewed (0)
Back to top