Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for v1beta1SpecToV1Spec (0.53 sec)

  1. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/round_trip_test.go

    		Allowed:         in.Allowed,
    		Denied:          in.Denied,
    		Reason:          in.Reason,
    		EvaluationError: in.EvaluationError,
    	}
    }
    
    // v1beta1SpecToV1Spec is only needed to verify round-trip fidelity
    func v1beta1SpecToV1Spec(in authorizationv1beta1.SubjectAccessReviewSpec) authorizationv1.SubjectAccessReviewSpec {
    	return authorizationv1.SubjectAccessReviewSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/round_trip_test.go

    		converted := &authenticationv1beta1.TokenReview{
    			Spec:   v1SpecToV1beta1Spec(&original.Spec),
    			Status: v1StatusToV1beta1Status(original.Status),
    		}
    		roundtripped := &authenticationv1.TokenReview{
    			Spec:   v1beta1SpecToV1Spec(converted.Spec),
    			Status: v1beta1StatusToV1Status(&converted.Status),
    		}
    		if !reflect.DeepEqual(original, roundtripped) {
    			t.Errorf("diff %s", cmp.Diff(original, roundtripped))
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top