Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 6,082 for namEspace (0.42 sec)

  1. plugin/pkg/admission/namespace/autoprovision/admission.go

    			Namespace: "",
    		},
    		Status: corev1.NamespaceStatus{},
    	}
    
    	_, err = p.client.CoreV1().Namespaces().Create(context.TODO(), namespace, metav1.CreateOptions{})
    	if err != nil && !errors.IsAlreadyExists(err) {
    		return admission.NewForbidden(a, err)
    	}
    
    	return nil
    }
    
    // NewProvision creates a new namespace provision admission control handler
    func NewProvision() *Provision {
    	return &Provision{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 08 17:30:21 UTC 2020
    - 4.1K bytes
    - Viewed (0)
  2. pkg/registry/core/namespace/storage/storage_test.go

    	}
    	actual := object.(*api.Namespace)
    	if actual.Name != namespace.Name {
    		t.Errorf("unexpected namespace: %#v", actual)
    	}
    	if len(actual.UID) == 0 {
    		t.Errorf("expected namespace UID to be set: %#v", actual)
    	}
    	if actual.Status.Phase != api.NamespaceActive {
    		t.Errorf("expected namespace phase to be set to active, but %v", actual.Status.Phase)
    	}
    }
    
    func TestDelete(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 17 05:13:34 UTC 2022
    - 19.8K bytes
    - Viewed (0)
  3. tests/integration/security/policy_attachment_only/main_test.go

    `
    			}
    		})).
    		// Create namespaces first. This way, echo can correctly configure egress to all namespaces.
    		SetupParallel(
    			namespace.Setup(&echo1NS, namespace.Config{Prefix: "echo1", Inject: true}),
    			namespace.Setup(&serverNS, namespace.Config{Prefix: "servers", Inject: true}),
    		).
    		SetupParallel(
    			jwt.Setup(&jwtServer, namespace.Future(&serverNS)),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 01:47:52 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. pkg/config/schema/kubeclient/resources.gen.go

    	case *apiistioioapinetworkingv1alpha3.DestinationRule:
    		return c.Istio().NetworkingV1alpha3().DestinationRules(namespace).(ktypes.WriteAPI[T])
    	case *k8sioapidiscoveryv1.EndpointSlice:
    		return c.Kube().DiscoveryV1().EndpointSlices(namespace).(ktypes.WriteAPI[T])
    	case *k8sioapicorev1.Endpoints:
    		return c.Kube().CoreV1().Endpoints(namespace).(ktypes.WriteAPI[T])
    	case *apiistioioapinetworkingv1alpha3.EnvoyFilter:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 13:57:51 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/NamespaceId.java

            return namespace;
        }
    
        /**
         * Sets the namespace for this identifier.
         *
         * @param namespace the namespace
         */
        public void setNamespace(String namespace) {
            this.namespace = namespace;
        }
    
        /**
         * Gets the name for this identifier.
         *
         * @return the name for this identifier
         */
        public String getName() {
            return name;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. pilot/pkg/model/authorization.go

    	Name        string                      `json:"name"`
    	Namespace   string                      `json:"namespace"`
    	Annotations map[string]string           `json:"annotations"`
    	Spec        *authpb.AuthorizationPolicy `json:"spec"`
    }
    
    func (ap *AuthorizationPolicy) NamespacedName() types.NamespacedName {
    	return types.NamespacedName{Name: ap.Name, Namespace: ap.Namespace}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount/util.go

    	if _, err := coreClient.Namespaces().Get(context.TODO(), namespace, metav1.GetOptions{}); apierrors.IsNotFound(err) {
    		if _, err = coreClient.Namespaces().Create(context.TODO(), &v1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: namespace}}, metav1.CreateOptions{}); err != nil && !apierrors.IsAlreadyExists(err) {
    			klog.Warningf("create non-exist namespace %s failed:%v", namespace, err)
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 10:24:31 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. pilot/pkg/config/kube/gateway/testdata/reference-policy-service.yaml

    metadata:
      name: allow-service
      namespace: service
    spec:
      from:
      - group: gateway.networking.k8s.io
        kind: HTTPRoute
        namespace: istio-system
      to:
      - group: ""
        kind: Service
        name: my-svc
    ---
    apiVersion: gateway.networking.k8s.io/v1beta1
    kind: HTTPRoute
    metadata:
      name: http
      namespace: istio-system
    spec:
      parentRefs:
      - name: gateway
        namespace: istio-system
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 18 22:43:39 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. pilot/pkg/config/kube/gateway/testdata/reference-policy-tcp.yaml

        kind: HTTPRoute
        namespace: istio-system
      to:
      - group: ""
        kind: Service
        name: echo
    ---
    apiVersion: gateway.networking.k8s.io/v1alpha2
    kind: TCPRoute
    metadata:
      name: allowed-my-svc
      namespace: istio-system
    spec:
      parentRefs:
      - name: gateway
        namespace: istio-system
        sectionName: my-svc
      rules:
      - backendRefs:
        - name: my-svc
          namespace: service
          port: 34000
    ---
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 18 22:43:39 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. pkg/kube/namespace/filter.go

    	lock                sync.RWMutex
    	namespaces          kclient.Client[*corev1.Namespace]
    	discoveryNamespaces sets.String
    	discoverySelectors  []labels.Selector // nil if discovery selectors are not specified, permits all namespaces for discovery
    	handlers            []func(added, removed sets.String)
    }
    
    func NewDiscoveryNamespacesFilter(
    	namespaces kclient.Client[*corev1.Namespace],
    	mesh mesh.Watcher,
    	stop <-chan struct{},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 17:12:52 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top