Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 96 for audiences (0.2 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_test.go

    		{
    			name:        "valid audience with MatchAny policy",
    			in:          []string{"audience"},
    			matchPolicy: "MatchAny",
    			want:        "",
    		},
    		{
    			name:        "duplicate audience",
    			in:          []string{"audience", "audience"},
    			matchPolicy: "MatchAny",
    			want:        `issuer.audiences[1]: Duplicate value: "audience"`,
    		},
    		{
    			name: "match policy not set with multiple audiences",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 87.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/authentication/v1/generated.pb.go

    			i -= size
    			i = encodeVarintGenerated(dAtA, i, uint64(size))
    		}
    		i--
    		dAtA[i] = 0x1a
    	}
    	if len(m.Audiences) > 0 {
    		for iNdEx := len(m.Audiences) - 1; iNdEx >= 0; iNdEx-- {
    			i -= len(m.Audiences[iNdEx])
    			copy(dAtA[i:], m.Audiences[iNdEx])
    			i = encodeVarintGenerated(dAtA, i, uint64(len(m.Audiences[iNdEx])))
    			i--
    			dAtA[i] = 0xa
    		}
    	}
    	return len(dAtA) - i, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 72K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1alpha1/zz_generated.conversion.go

    	out.URL = in.URL
    	if err := v1.Convert_Pointer_string_To_string(&in.DiscoveryURL, &out.DiscoveryURL, s); err != nil {
    		return err
    	}
    	out.CertificateAuthority = in.CertificateAuthority
    	out.Audiences = *(*[]string)(unsafe.Pointer(&in.Audiences))
    	out.AudienceMatchPolicy = apiserver.AudienceMatchPolicyType(in.AudienceMatchPolicy)
    	return nil
    }
    
    // Convert_v1alpha1_Issuer_To_apiserver_Issuer is an autogenerated conversion function.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 00:57:24 UTC 2024
    - 50K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_mounter_test.go

    				tr := action.(clitesting.CreateAction).GetObject().(*authenticationv1.TokenRequest)
    				scheme.Default(tr)
    				if len(tr.Spec.Audiences) == 0 {
    					tr.Spec.Audiences = []string{"api"}
    				}
    				tr.Status.Token = fmt.Sprintf("%v:%v:%d:%v", action.GetNamespace(), testAccount, *tr.Spec.ExpirationSeconds, tr.Spec.Audiences)
    				tr.Status.ExpirationTimestamp = meta.NewTime(time.Unix(1, 1))
    				return true, tr, nil
    			}))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  5. tests/integration/security/authz_test.go

    							allow:  false,
    						},
    						{
    							prefix: "[JWTWithAud]",
    							jwt:    jwt.TokenIssuer1WithAud,
    							path:   "/audiences",
    							allow:  true,
    						},
    						{
    							prefix: "[JWTWithAudList]",
    							jwt:    jwt.TokenIssuer1WithAudList,
    							path:   "/audiences",
    							allow:  true,
    						},
    					}
    					for _, c := range cases {
    						h := headers.New().WithAuthz(c.jwt).Build()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  6. plugin/pkg/admission/noderestriction/admission_test.go

    	return eviction
    }
    
    func makeTokenRequest(podname string, poduid types.UID) *authenticationapi.TokenRequest {
    	tr := &authenticationapi.TokenRequest{
    		Spec: authenticationapi.TokenRequestSpec{
    			Audiences: []string{"foo"},
    		},
    	}
    	if podname != "" {
    		tr.Spec.BoundObjectRef = &authenticationapi.BoundObjectReference{
    			Kind:       "Pod",
    			APIVersion: "v1",
    			Name:       podname,
    			UID:        poduid,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 73.2K bytes
    - Viewed (0)
  7. tests/integration/ambient/baseline_test.go

    		token, err := t.Clusters().Default().Kube().CoreV1().ServiceAccounts(apps.Namespace.Name()).CreateToken(context.Background(), "default",
    			&authenticationv1.TokenRequest{
    				Spec: authenticationv1.TokenRequestSpec{
    					Audiences:         []string{"kubernetes.default.svc"},
    					ExpirationSeconds: ptr.Of(int64(600)),
    				},
    			}, metav1.CreateOptions{})
    		assert.NoError(t, err)
    
    		for _, src := range svcs {
    			src := src
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 78.4K bytes
    - Viewed (0)
  8. pkg/apis/storage/validation/validation_test.go

    				TokenRequests:     []storage.TokenRequest{{Audience: ""}},
    				RequiresRepublish: &notRequiresRepublish,
    			},
    		},
    	}, {
    		desc: "valid - TokenRequests has tokens with different audience",
    		csiDriver: &storage.CSIDriver{
    			ObjectMeta: metav1.ObjectMeta{Name: driverName},
    			Spec: storage.CSIDriverSpec{
    				TokenRequests:     []storage.TokenRequest{{}, {Audience: gcp}, {Audience: aws}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 69.7K bytes
    - Viewed (0)
  9. pkg/kube/inject/testdata/inputs/enable-core-dump.yaml.5.template.gen.yaml

          - name: istio-token
            projected:
              sources:
              - serviceAccountToken:
                  path: istio-token
                  expirationSeconds: 43200
                  audience: {{ .Values.global.sds.token.aud }}
          {{- if eq .Values.global.pilotCertProvider "istiod" }}
          - name: istiod-ca-cert
            configMap:
              name: istio-ca-root-cert
          {{- end }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 01:55:05 UTC 2024
    - 75.9K bytes
    - Viewed (0)
  10. pkg/kube/inject/testdata/inputs/hello-existing-cncf-networks-json.yaml.16.template.gen.yaml

          - name: istio-token
            projected:
              sources:
              - serviceAccountToken:
                  path: istio-token
                  expirationSeconds: 43200
                  audience: {{ .Values.global.sds.token.aud }}
          {{- if eq .Values.global.pilotCertProvider "istiod" }}
          - name: istiod-ca-cert
            configMap:
              name: istio-ca-root-cert
          {{- end }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 01:55:05 UTC 2024
    - 75.9K bytes
    - Viewed (0)
Back to top