Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 465 for authorizationv1 (0.26 sec)

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

    			version,
    			authorizationv1.SchemeGroupVersion.Version,
    			authorizationv1beta1.SchemeGroupVersion.Version,
    		)
    	}
    }
    
    type subjectAccessReviewV1Client struct {
    	client rest.Interface
    }
    
    func (t *subjectAccessReviewV1Client) Create(ctx context.Context, subjectAccessReview *authorizationv1.SubjectAccessReview, opts metav1.CreateOptions) (result *authorizationv1.SubjectAccessReview, statusCode int, err error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authorization/cel/matcher.go

    limitations under the License.
    */
    
    package cel
    
    import (
    	"context"
    	"fmt"
    	"time"
    
    	celgo "github.com/google/cel-go/cel"
    
    	authorizationv1 "k8s.io/api/authorization/v1"
    	utilerrors "k8s.io/apimachinery/pkg/util/errors"
    )
    
    type CELMatcher struct {
    	CompilationResults []CompilationResult
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1_test.go

    type recorderV1Service struct {
    	last authorizationv1.SubjectAccessReview
    	err  error
    }
    
    func (rec *recorderV1Service) Review(r *authorizationv1.SubjectAccessReview) {
    	rec.last = authorizationv1.SubjectAccessReview{}
    	rec.last = *r
    	r.Status.Allowed = true
    }
    
    func (rec *recorderV1Service) Last() (authorizationv1.SubjectAccessReview, error) {
    	return rec.last, rec.err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  4. pilot/pkg/credentials/kube/secrets.go

    		return cached
    	}
    	err := func() error {
    		resp, err := s.sar.Create(context.Background(), &authorizationv1.SubjectAccessReview{
    			ObjectMeta: metav1.ObjectMeta{},
    			Spec: authorizationv1.SubjectAccessReviewSpec{
    				ResourceAttributes: &authorizationv1.ResourceAttributes{
    					Namespace: namespace,
    					Verb:      "list",
    					Resource:  "secrets",
    				},
    				User: user,
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 19:18:21 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/metrics_test.go

    limitations under the License.
    */
    
    package webhook
    
    import (
    	"context"
    	"net/http"
    	"testing"
    
    	authorizationv1 "k8s.io/api/authorization/v1"
    	"k8s.io/apiserver/pkg/apis/apiserver"
    	"k8s.io/apiserver/pkg/authentication/user"
    	"k8s.io/apiserver/pkg/authorization/authorizer"
    	"k8s.io/apiserver/pkg/authorization/cel"
    )
    
    func TestAuthorizerMetrics(t *testing.T) {
    	scenarios := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. pilot/pkg/credentials/kube/secrets_test.go

    		a := action.(k8stesting.CreateAction).GetObject().(*authorizationv1.SubjectAccessReview)
    		if allowed.Contains(a.Spec.User) {
    			return true, &authorizationv1.SubjectAccessReview{
    				Status: authorizationv1.SubjectAccessReviewStatus{
    					Allowed: true,
    				},
    			}, nil
    		}
    		return true, &authorizationv1.SubjectAccessReview{
    			Status: authorizationv1.SubjectAccessReviewStatus{
    				Allowed: false,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 19:18:21 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/roundtrip_test.go

    	appsv1beta2 "k8s.io/api/apps/v1beta2"
    	authenticationv1 "k8s.io/api/authentication/v1"
    	authenticationv1beta1 "k8s.io/api/authentication/v1beta1"
    	authorizationv1 "k8s.io/api/authorization/v1"
    	authorizationv1beta1 "k8s.io/api/authorization/v1beta1"
    	autoscalingv1 "k8s.io/api/autoscaling/v1"
    	autoscalingv2 "k8s.io/api/autoscaling/v2"
    	autoscalingv2beta1 "k8s.io/api/autoscaling/v2beta1"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. pilot/test/xds/fake.go

    }
    
    // DisableAuthorizationForSecret makes the authorization check always pass. Should be used only for tests.
    func DisableAuthorizationForSecret(fake *fake.Clientset) {
    	fake.Fake.PrependReactor("create", "subjectaccessreviews", func(action k8stesting.Action) (bool, runtime.Object, error) {
    		return true, &authorizationv1.SubjectAccessReview{
    			Status: authorizationv1.SubjectAccessReviewStatus{
    				Allowed: true,
    			},
    		}, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 16:08:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  9. istioctl/pkg/precheck/precheck.go

    		version   string
    		resource  string
    	}{
    		{
    			version:  "v1",
    			resource: "namespaces",
    		},
    		{
    			group:    "rbac.authorization.k8s.io",
    			version:  "v1",
    			resource: "clusterroles",
    		},
    		{
    			group:    "rbac.authorization.k8s.io",
    			version:  "v1",
    			resource: "clusterrolebindings",
    		},
    		{
    			group:    "apiextensions.k8s.io",
    			version:  "v1",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 02:57:30 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  10. pkg/kubeapiserver/options/authorization.go

    	authorizationModeFlag                   = "authorization-mode"
    	authorizationWebhookConfigFileFlag      = "authorization-webhook-config-file"
    	authorizationWebhookVersionFlag         = "authorization-webhook-version"
    	authorizationWebhookAuthorizedTTLFlag   = "authorization-webhook-cache-authorized-ttl"
    	authorizationWebhookUnauthorizedTTLFlag = "authorization-webhook-cache-unauthorized-ttl"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 23:09:15 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top