Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for ServiceAccountName (0.42 sec)

  1. plugin/pkg/admission/serviceaccount/admission.go

    	// Set the default service account if needed
    	if len(pod.Spec.ServiceAccountName) == 0 {
    		pod.Spec.ServiceAccountName = DefaultServiceAccountName
    	}
    
    	serviceAccount, err := s.getServiceAccount(a.GetNamespace(), pod.Spec.ServiceAccountName)
    	if err != nil {
    		return admission.NewForbidden(a, fmt.Errorf("error looking up service account %s/%s: %w", a.GetNamespace(), pod.Spec.ServiceAccountName, err))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. plugin/pkg/admission/serviceaccount/admission_test.go

    	if err != nil {
    		t.Errorf("Unexpected error: %v", err)
    	}
    	if pod.Spec.ServiceAccountName != DefaultServiceAccountName {
    		t.Errorf("Expected service account %s assigned, got %s", DefaultServiceAccountName, pod.Spec.ServiceAccountName)
    	}
    }
    
    func TestDeniesInvalidServiceAccount(t *testing.T) {
    	ns := "myns"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  3. tests/integration/security/egress_sidecar_tls_origination_test.go

    				t.NewSubTest(tc.name).Run(func(t framework.TestContext) {
    					if tc.authorizeSidecar {
    						serviceAccount := tc.from.Config().ServiceAccountName()
    						serviceAccountName := serviceAccount[strings.LastIndex(serviceAccount, "/")+1:]
    						authorizeSidecar(t, tc.from.Config().Namespace, serviceAccountName)
    					}
    					newTLSSidecarDestinationRule(t, apps.External.All, "MUTUAL", tc.drSelector, tc.credentialToUse,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. pkg/apis/core/v1/conversion.go

    	if err := autoConvert_v1_PodSpec_To_core_PodSpec(in, out, s); err != nil {
    		return err
    	}
    
    	// We support DeprecatedServiceAccount as an alias for ServiceAccountName.
    	// If both are specified, ServiceAccountName (the new field) wins.
    	if in.ServiceAccountName == "" {
    		out.ServiceAccountName = in.DeprecatedServiceAccount
    	}
    
    	// the host namespace fields have to be handled specially for backward compatibility
    	// with v1.0.0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 22:30:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. manifests/charts/istio-control/istio-discovery/files/waypoint.yaml

                "istio.io/gateway-name" .Name
                "gateway.istio.io/managed" "istio.io-mesh-controller"
              ) | nindent 8}}
        spec:
          terminationGracePeriodSeconds: 2
          serviceAccountName: {{.ServiceAccount | quote}}
          containers:
          - name: istio-proxy
            ports:
            - containerPort: 15021
              name: status-port
              protocol: TCP
            - containerPort: 15090
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 22:41:03 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. manifests/charts/istio-control/istio-discovery/files/grpc-agent.yaml

      - name: istio-certs
        secret:
          optional: true
          {{ if eq .Spec.ServiceAccountName "" }}
          secretName: istio.default
          {{ else -}}
          secretName: {{  printf "istio.%s" .Spec.ServiceAccountName }}
          {{  end -}}
      {{- end }}
        {{- if isset .ObjectMeta.Annotations `sidecar.istio.io/userVolume` }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 26 16:51:17 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. manifests/charts/gateways/istio-ingress/templates/deployment.yaml

          securityContext:
    {{- if not (eq .Values.global.platform "openshift") }}
            runAsUser: 1337
            runAsGroup: 1337
    {{- end }}
            runAsNonRoot: true
    {{- end }}
          serviceAccountName: {{ $gateway.name }}-service-account
    {{- if .Values.global.priorityClassName }}
          priorityClassName: "{{ .Values.global.priorityClassName }}"
    {{- end }}
    {{- if .Values.global.proxy.enableCoreDump }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 18:16:49 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. manifests/charts/gateways/istio-egress/templates/deployment.yaml

          securityContext:
    {{- if not (eq .Values.global.platform "openshift") }}
            runAsUser: 1337
            runAsGroup: 1337
    {{- end }}
            runAsNonRoot: true
    {{- end }}
          serviceAccountName: {{ $gateway.name }}-service-account
    {{- if .Values.global.priorityClassName }}
          priorityClassName: "{{ .Values.global.priorityClassName }}"
    {{- end }}
    {{- if .Values.global.proxy.enableCoreDump }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 18:16:49 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. pkg/test/framework/components/echo/config.go

    	NamespaceName() string
    
    	// NamespacedName returns the namespaced name for this service.
    	// Short form for Config().NamespacedName().
    	NamespacedName() NamespacedName
    
    	// ServiceAccountName returns the service account string for this service.
    	ServiceAccountName() string
    
    	// ClusterLocalFQDN returns the fully qualified domain name for cluster-local host.
    	ClusterLocalFQDN() string
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 12:26:52 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  10. manifests/charts/istio-control/istio-discovery/files/kube-gateway.yaml

            {{- toYaml .Values.gateways.securityContext | nindent 8 }}
          {{- else }}
            sysctls:
            - name: net.ipv4.ip_unprivileged_port_start
              value: "0"
          {{- end }}
          serviceAccountName: {{.ServiceAccount | quote}}
          containers:
          - name: istio-proxy
          {{- if contains "/" (annotation .ObjectMeta `sidecar.istio.io/proxyImage` .Values.global.proxy.image) }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 01:55:05 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top