Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for NamespaceName (0.46 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. pkg/test/framework/components/echo/kube/instance.go

    func (c *instance) PortForName(name string) echo.Port {
    	return c.cfg.Ports.MustForName(name)
    }
    
    func (c *instance) ServiceName() string {
    	return c.cfg.Service
    }
    
    func (c *instance) NamespaceName() string {
    	return c.cfg.NamespaceName()
    }
    
    func (c *instance) ServiceAccountName() string {
    	return c.cfg.ServiceAccountName()
    }
    
    func (c *instance) ClusterLocalFQDN() string {
    	return c.cfg.ClusterLocalFQDN()
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 16 18:55:23 UTC 2023
    - 9K bytes
    - Viewed (0)
  9. 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)
  10. tests/integration/security/testdata/authz/conditions.yaml.tmpl

        - operation:
            paths: [ "/source-namespace" ]
        when:
        - key: source.namespace
          values: [ "{{ .Allowed.NamespaceName }}" ]
      - to:
          - operation:
              paths: [ "/source-namespace-notValues" ]
        when:
          - key: source.namespace
            notValues: [ "{{ .Denied.NamespaceName }}" ]
    ---
    
    apiVersion: security.istio.io/v1beta1
    kind: AuthorizationPolicy
    metadata:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 08 07:03:01 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top