Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for authorizeUpdate (0.42 sec)

  1. pkg/registry/admissionregistration/validatingadmissionpolicy/authz.go

    	if policy.Spec.ParamKind == nil {
    		// no paramRef in new object
    		return nil
    	}
    
    	return v.authorize(ctx, policy)
    }
    
    func (v *validatingAdmissionPolicyStrategy) authorizeUpdate(ctx context.Context, obj, old runtime.Object) error {
    	policy := obj.(*admissionregistration.ValidatingAdmissionPolicy)
    	if policy.Spec.ParamKind == nil {
    		// no paramRef in new object
    		return nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 21:29:56 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  2. pkg/registry/admissionregistration/validatingadmissionpolicybinding/authz.go

    	if binding.Spec.ParamRef == nil {
    		// no paramRef in new object
    		return nil
    	}
    
    	return v.authorize(ctx, binding)
    }
    
    func (v *validatingAdmissionPolicyBindingStrategy) authorizeUpdate(ctx context.Context, obj, old runtime.Object) error {
    	binding := obj.(*admissionregistration.ValidatingAdmissionPolicyBinding)
    	if binding.Spec.ParamRef == nil {
    		// no paramRef in new object
    		return nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 12:19:03 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. pkg/registry/admissionregistration/validatingadmissionpolicybinding/strategy.go

    	if len(errs) == 0 {
    		// if the object is well-formed, also authorize the paramRef
    		if err := v.authorizeUpdate(ctx, obj, old); err != nil {
    			errs = append(errs, field.Forbidden(field.NewPath("spec", "paramRef"), err.Error()))
    		}
    	}
    	return errs
    }
    
    // WarningsOnUpdate returns warnings for the given update.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 21:29:56 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  4. pkg/registry/admissionregistration/validatingadmissionpolicy/strategy.go

    	if len(errs) == 0 {
    		// if the object is well-formed, also authorize the paramKind
    		if err := v.authorizeUpdate(ctx, obj, old); err != nil {
    			errs = append(errs, field.Forbidden(field.NewPath("spec", "paramKind"), err.Error()))
    		}
    	}
    	return errs
    }
    
    // WarningsOnUpdate returns warnings for the given update.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top