Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for audiences (0.16 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. pkg/kube/inject/testdata/inputs/hello-image-pull-secret.yaml.11.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.yaml.0.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