Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for specs (0.15 sec)

  1. cni/pkg/repair/repair_test_helpers.go

    					State: corev1.ContainerState{
    						Waiting: &corev1.ContainerStateWaiting{
    							Reason: "PodInitializing",
    						},
    					},
    				},
    			},
    		},
    	}
    	return pod
    }
    
    // Container specs
    var (
    	brokenInitContainerWaiting = corev1.ContainerStatus{
    		Name: constants.ValidationContainerName,
    		State: corev1.ContainerState{
    			Waiting: &corev1.ContainerStateWaiting{
    				Reason:  "CrashLoopBackOff",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 12 17:39:53 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  2. operator/cmd/mesh/profile-dump.go

    	}
    	if err := json.Unmarshal(uglyJSON, &decoded); err != nil {
    		return []string{}, err
    	}
    	if d, ok := decoded.(map[string]any); ok {
    		if v, ok := d["spec"]; ok {
    			// Fall back to showing the entire spec.
    			// (When --config-path is used there will be no spec to remove)
    			decoded = v
    		}
    	}
    	setflags, err := walk("", "", decoded)
    	if err != nil {
    		return []string{}, err
    	}
    	sort.Strings(setflags)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  3. istioctl/pkg/workload/workload_test.go

    	defaultYAML = `apiVersion: networking.istio.io/v1alpha3
    kind: WorkloadGroup
    metadata:
      name: foo
      namespace: bar
    spec:
      metadata: {}
      template:
        serviceAccount: default
    `
    
    	customYAML = `apiVersion: networking.istio.io/v1alpha3
    kind: WorkloadGroup
    metadata:
      name: foo
      namespace: bar
    spec:
      metadata:
        annotations:
          annotation: foobar
        labels:
          app: foo
          bar: baz
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. istioctl/pkg/util/handlers/handlers.go

    	switch t := object.(type) {
    	case *gatewayapi.Gateway:
    		if !gateway.IsManaged(&t.Spec) {
    			return "", nil, fmt.Errorf("gateway is not a managed gateway")
    		}
    		namespace = t.Namespace
    		selector, err = labels.Parse(constants.GatewayNameLabel + "=" + t.Name)
    	case *gatewayapibeta.Gateway:
    		if !gateway.IsManaged(&t.Spec) {
    			return "", nil, fmt.Errorf("gateway is not a managed gateway")
    		}
    		namespace = t.Namespace
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 06 15:01:41 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  5. istioctl/pkg/util/handlers/handlers_test.go

    			}
    		})
    	}
    }
    
    func attachPod(ns string) *corev1.Pod {
    	return &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: "foo-abc", Namespace: ns, ResourceVersion: "10"},
    		Spec: corev1.PodSpec{
    			RestartPolicy: corev1.RestartPolicyAlways,
    			DNSPolicy:     corev1.DNSClusterFirst,
    			Containers: []corev1.Container{
    				{
    					Name: "bar",
    				},
    			},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jun 09 18:17:49 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  6. istioctl/pkg/waypoint/waypoint_test.go

    	className := "other"
    	if isWaypoint {
    		className = constants.WaypointGatewayClassName
    	}
    	return &gateway.Gateway{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      name,
    			Namespace: namespace,
    		},
    		Spec: gateway.GatewaySpec{
    			GatewayClassName: gateway.ObjectName(className),
    		},
    		Status: gateway.GatewayStatus{
    			Conditions: conditions,
    		},
    	}
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 04 15:53:09 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  7. operator/cmd/mesh/manifest_shared_test.go

    	_, iop, err := manifest.GenerateConfig(
    		[]string{inFileAbsolutePath(inFile)},
    		[]string{"installPackagePath=" + string(chartSource)},
    		false, c, l)
    	if err != nil {
    		return nil, err
    	}
    
    	iop.Spec.InstallPackagePath = string(chartSource)
    
    	reconciler, err := helmreconciler.NewHelmReconciler(testClient, c, iop, opts)
    	if err != nil {
    		return nil, err
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 20 22:39:28 GMT 2024
    - 11.7K bytes
    - Viewed (1)
  8. cni/pkg/plugin/plugin_test.go

    	pod, ns := buildFakePodAndNSForClient()
    
    	pod.Spec.Containers[0].Name = "mockContainer"
    	pod.Spec.Containers[1].Name = "istio-proxy"
    	pod.ObjectMeta.Annotations[injectAnnotationKey] = "false"
    
    	testDoAddRun(t, buildMockConf(true, ""), testNSName, pod, ns)
    }
    
    func TestCmdAddTwoContainersWithLabel(t *testing.T) {
    	pod, ns := buildFakePodAndNSForClient()
    	pod.Spec.Containers[0].Name = "mockContainer"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/informers_test.go

    	NodeName = "testnode"
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    			Namespace: "test",
    		},
    		Spec: corev1.PodSpec{
    			NodeName: NodeName,
    		},
    		Status: corev1.PodStatus{
    			PodIP: "11.1.1.12",
    		},
    	}
    	ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "test"}}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/net_test.go

    			PodIPs: []corev1.PodIP{{IP: "2.2.2.2"}, {IP: "3.3.3.3"}},
    		}
    	}
    
    	return &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "foo",
    			Namespace: "bar",
    			UID:       "123",
    		},
    		Spec: corev1.PodSpec{
    			Containers: containers,
    		},
    		Status: podStatus,
    	}
    }
    
    func TestServerAddPod(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
Back to top