Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for NamespaceName (0.24 sec)

  1. tests/integration/security/testdata/authz/plaintext.yaml.tmpl

    metadata:
      name: ns-default
      namespace: {{ .To.NamespaceName }}
    spec:
      mtls:
        mode: PERMISSIVE
    
    ---
    # This configures requests to any service in the namespace to use mTLS.
    
    apiVersion: networking.istio.io/v1beta1
    kind: DestinationRule
    metadata:
      name: default
      namespace: {{ .To.NamespaceName }}
    spec:
      host: "*.{{ .To.NamespaceName }}.svc.cluster.local"
      trafficPolicy:
        tls:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 08 07:03:01 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. security/pkg/k8s/configutil_test.go

    			existingConfigMap: createConfigMap(namespaceName, configMapName, map[string]string{}),
    			expectedActions: []ktesting.Action{
    				ktesting.NewUpdateAction(gvr, namespaceName, createConfigMap(namespaceName, configMapName, testData)),
    			},
    			expectedErr: "",
    		},
    		{
    			name:              "existing nop ConfigMap",
    			existingConfigMap: createConfigMap(namespaceName, configMapName, testData),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 08 21:58:25 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. tests/integration/security/testdata/authz/egress-gateway.yaml.tmpl

    apiVersion: networking.istio.io/v1beta1
    kind: VirtualService
    metadata:
      name: route-via-egressgateway-2
      namespace: {{ .From.NamespaceName }}
    spec:
      hosts:
        - "{{ .Allowed.ServiceName }}-{{ .Allowed.NamespaceName }}-only.com"
        - "jwt-only.com"
        - "jwt-and-{{ .Allowed.ServiceName }}-{{ .Allowed.NamespaceName }}-only.com"
      gateways:
        - test-egress
        - mesh
      http:
        - match:
            - gateways:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 31 15:08:52 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  4. tests/integration/security/testdata/authz/allow-namespace.yaml.tmpl

          from:
            - source:
                namespaces: [ "{{ .Allowed.NamespaceName }}" ]
        - to:
            - operation: # GRPC
                ports: [ "{{ (.To.PortForName `grpc`).WorkloadPort }}" ]
                paths: [ "/proto.EchoTestService/Echo" ]
                methods: [ "POST" ]
          from:
            - source:
                namespaces: [ "{{ .Allowed.NamespaceName }}" ]
        - to:
            - operation: # TCP
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 08 07:03:01 UTC 2023
    - 983 bytes
    - Viewed (0)
  5. tests/integration/security/testdata/authz/deny-namespace.yaml.tmpl

          from:
            - source:
                namespaces: [ "{{ .Denied.NamespaceName }}" ]
        - to:
            - operation: # GRPC
                ports: [ "{{ (.To.PortForName `grpc`).WorkloadPort }}" ]
                paths: [ "/proto.EchoTestService/Echo" ]
                methods: [ "POST" ]
          from:
            - source:
                namespaces: [ "{{ .Denied.NamespaceName }}" ]
        - to:
            - operation: # TCP
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 08 07:03:01 UTC 2023
    - 1017 bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/namespace/matcher.go

    		accessor, err := meta.Accessor(attr.GetObject())
    		if err != nil {
    			return nil, err
    		}
    		return accessor.GetLabels(), nil
    	}
    
    	namespaceName := attr.GetNamespace()
    	namespace, err := m.NamespaceLister.Get(namespaceName)
    	if err != nil && !apierrors.IsNotFound(err) {
    		return nil, err
    	}
    	if apierrors.IsNotFound(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 00:53:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. pkg/test/framework/components/echo/namespacedname.go

    	Name string
    }
    
    // NamespaceName returns the string name of the namespace, or "" if Namespace is nil.
    func (n NamespacedName) NamespaceName() string {
    	if n.Namespace != nil {
    		return n.Namespace.Name()
    	}
    	return ""
    }
    
    // String returns the Istio-formatted service name in the form of <namespace>/<name>.
    func (n NamespacedName) String() string {
    	return n.NamespaceName() + "/" + n.Name
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 23:42:29 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  8. tests/integration/security/testdata/authz/ingress-gateway.yaml.tmpl

    ---
    
    # The following gateway allows request to "*.{{ .To.ServiceName }}.com"
    
    apiVersion: networking.istio.io/v1beta1
    kind: Gateway
    metadata:
      name: gw-{{ .To.ServiceName }}
      namespace: {{ .To.NamespaceName }}
    spec:
      selector:
        istio: ingressgateway # use istio default ingress gateway
      servers:
        - port:
            number: 80
            name: http
            protocol: HTTP
          hosts:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 08 07:03:01 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/dispatcher.go

    			var namespace *v1.Namespace
    			namespaceName := a.GetNamespace()
    
    			// Special case, the namespace object has the namespace of itself (maybe a bug).
    			// unset it if the incoming object is a namespace
    			if gvk := a.GetKind(); gvk.Kind == "Namespace" && gvk.Version == "v1" && gvk.Group == "" {
    				namespaceName = ""
    			}
    
    			// if it is cluster scoped, namespaceName will be empty
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  10. tests/integration/security/testdata/authz/not-namespace.yaml.tmpl

    metadata:
      name: {{ .To.ServiceName }}-deny
    spec:
      selector:
        matchLabels:
          "app": "{{ .To.ServiceName }}"
      action: DENY
      rules:
        - from:
          - source:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 08 07:03:01 UTC 2023
    - 293 bytes
    - Viewed (0)
Back to top