Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 253 for nAmespace (0.76 sec)

  1. pkg/test/framework/components/namespace/kube.go

    	if _, err := c.Kube().CoreV1().Namespaces().Create(context.TODO(), &corev1.Namespace{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:   n.name,
    			Labels: createNamespaceLabels(n.ctx, cfg),
    		},
    	}, metav1.CreateOptions{}); err != nil {
    		return err
    	}
    
    	if !cfg.SkipCleanup {
    		n.addCleanup(func() error {
    			return c.Kube().CoreV1().Namespaces().Delete(context.TODO(), n.name, kube2.DeleteOptionsForeground())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. samples/bookinfo/platform/kube/cleanup.sh

    # only ask if in interactive mode
    if [[ -t 0 && -z ${NAMESPACE} ]];then
      echo -n "namespace ? [default] "
      read -r NAMESPACE
    fi
    
    # verify if the namespace exists, otherwise use default namespace
    if [[ -n ${NAMESPACE} ]];then
      ns=$(kubectl get namespace "${NAMESPACE}" --no-headers --output=go-template="{{.metadata.name}}" 2>/dev/null)
      if [[ -z ${ns} ]];then
        echo "NAMESPACE ${NAMESPACE} not found."
        NAMESPACE=default
      fi
    fi
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. pkg/kubelet/util/manager/cache_based_manager.go

    }
    
    func (c *cacheBasedManager) GetObject(namespace, name string) (runtime.Object, error) {
    	return c.objectStore.Get(namespace, name)
    }
    
    func (c *cacheBasedManager) RegisterPod(pod *v1.Pod) {
    	names := c.getReferencedObjects(pod)
    	c.lock.Lock()
    	defer c.lock.Unlock()
    	var prev *v1.Pod
    	key := objectKey{namespace: pod.Namespace, name: pod.Name, uid: pod.UID}
    	prev = c.registeredPods[key]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. operator/pkg/name/name.go

    }
    
    // Namespace returns the namespace for the component. It follows these rules:
    // 1. If DefaultNamespace is unset, log and error and return the empty string.
    // 2. If the feature and component namespaces are unset, return DefaultNamespace.
    // 3. If the feature namespace is set but component name is unset, return the feature namespace.
    // 4. Otherwise return the component namespace.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/cni-watcher_test.go

    	defer cancel()
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "pod-bingo",
    			Namespace: "funkyns",
    		},
    		Spec: corev1.PodSpec{
    			NodeName: NodeName,
    		},
    		Status: corev1.PodStatus{
    			PodIP: fakePodIP,
    		},
    	}
    	ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "funkyns"}}
    
    	client := kube.NewFakeClient(ns, pod)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. tests/integration/ambient/cnirepair/main_test.go

    	}
    
    	apps.All = echos
    	apps.Uncaptured = match.ServiceName(echo.NamespacedName{Name: Uncaptured, Namespace: apps.Namespace}).GetMatches(echos)
    	apps.Captured = match.ServiceName(echo.NamespacedName{Name: Captured, Namespace: apps.Namespace}).GetMatches(echos)
    	apps.Sidecar = match.ServiceName(echo.NamespacedName{Name: Sidecar, Namespace: apps.Namespace}).GetMatches(echos)
    
    	return nil
    }
    
    func TestTrafficWithCNIRepair(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jun 09 09:12:45 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/ztunnel/configdump/services.go

    type ServiceFilter struct {
    	Namespace string
    }
    
    // Verify returns true if the passed workload matches the filter fields
    func (wf *ServiceFilter) Verify(svc *ZtunnelService) bool {
    	if wf.Namespace != "" {
    		if !strings.EqualFold(svc.Namespace, wf.Namespace) {
    			return false
    		}
    	}
    
    	return true
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:11 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. pkg/test/framework/components/echo/match/matchers_test.go

    	a1 = &fakeInstance{Cluster: cls1, Namespace: namespace.Static("echo"), Service: "a"}
    	// simple pod with different svc
    	b1 = &fakeInstance{Cluster: cls1, Namespace: namespace.Static("echo"), Service: "b"}
    	// virtual machine
    	vm1 = &fakeInstance{Cluster: cls1, Namespace: namespace.Static("echo"), Service: "vm", DeployAsVM: true}
    	// headless
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/ztunnel/configdump/connections.go

    		if r := cmp.Compare(a.Info.Namespace, b.Info.Namespace); r != 0 {
    			return r
    		}
    		return cmp.Compare(a.Info.Namespace, b.Info.Namespace)
    	})
    	for _, wl := range workloads {
    		if filter.Namespace != "" && filter.Namespace != wl.Info.Namespace {
    			continue
    		}
    		name := fmt.Sprintf("%s.%s", wl.Info.Name, wl.Info.Namespace)
    		if filter.Direction != "outbound" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:11 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. manifests/addons/dashboards/lib/variables.libsonnet

        )
        + var.query.withRefresh('time')
        + var.query.selectionOptions.withMulti()
        + var.query.selectionOptions.withIncludeAll(),
    
      namespace:
        var.query.new('namespace')
        + var.query.withDatasourceFromVariable(self.datasource)
        + var.query.queryTypes.withLabelValues(
          'namespace',
          'process_cpu_seconds_total{cluster=~"$%s"}' % self.cluster.name,
        )
        + var.query.withRefresh('time'),
    
      job:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 20:46:28 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top