Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 76 for could (0.16 sec)

  1. istioctl/pkg/kubeinject/kubeinject.go

    	var obj runtime.Object
    	var ar *kube.AdmissionReview
    	out, _, err := deserializer.Decode(body, nil, obj)
    	if err != nil {
    		return nil, fmt.Errorf("could not decode body: %v", err)
    	}
    	ar, err = kube.AdmissionReviewKubeToAdapter(out)
    	if err != nil {
    		return nil, fmt.Errorf("could not decode object: %v", err)
    	}
    
    	return ar.Response.Patch, nil
    }
    
    var (
    	runtimeScheme = func() *runtime.Scheme {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  2. istioctl/pkg/admin/istiodconfig.go

    			portForwarder, err := client.NewPortForwarder(podName, ns, "", 0, controlzPort)
    			if err != nil {
    				return fmt.Errorf("could not build port forwarder for ControlZ %s: %v", podName, err)
    			}
    			defer portForwarder.Close()
    			err = portForwarder.Start()
    			if err != nil {
    				return fmt.Errorf("could not start port forwarder for ControlZ %s: %v", podName, err)
    			}
    
    			ctrlzClient := &ControlzClient{
    				baseURL: &url.URL{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/ztunnel/configdump/certificates.go

    	expDate, err := time.Parse(time.RFC3339, cert.ExpirationTime)
    	if err != nil {
    		log.Errorf("certificate timestamp (%v) could not be parsed: %v", cert.ExpirationTime, err)
    		return false
    	}
    	fromDate, err := time.Parse(time.RFC3339, cert.ValidFrom)
    	if err != nil {
    		log.Errorf("certificate timestamp (%v) could not be parsed: %v", cert.ValidFrom, err)
    		return false
    	}
    	if today.After(fromDate) && today.Before(expDate) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 25 16:38:16 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  4. istioctl/pkg/tag/generate_test.go

    			}
    
    			vwhObject, _, err := deserializer.Decode([]byte(webhookYAML), nil, &admitv1.ValidatingWebhookConfiguration{})
    			if err != nil {
    				t.Fatalf("could not parse webhook from generated YAML: %s", vwhObject)
    			}
    			wh := vwhObject.(*admitv1.ValidatingWebhookConfiguration)
    
    			if tc.userManaged {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  5. cni/pkg/repair/netns.go

    //
    // Instead, we traverse the procfs. Comments on this method are inline.
    func getPodNetNs(pod *corev1.Pod) (string, error) {
    	// First, find the network namespace id by looking the interface with the given Pod IP.
    	// This could break on some platforms if they do not have an interface-per-pod.
    	wantID, err := findNetworkIDByIP(pod.Status.PodIP)
    	if err != nil {
    		return "", fmt.Errorf("network id: %v", err)
    	}
    	fs, err := procfs.NewFS("/host/proc")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Dec 20 22:14:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  6. operator/cmd/mesh/manifest-diff.go

    	renameResources, selectResources, ignoreResources string,
    ) (bool, error) {
    	a, err := os.ReadFile(args[0])
    	if err != nil {
    		return false, fmt.Errorf("could not read %q: %v", args[0], err)
    	}
    	b, err := os.ReadFile(args[1])
    	if err != nil {
    		return false, fmt.Errorf("could not read %q: %v", args[1], err)
    	}
    
    	diff, err := compare.ManifestDiffWithRenameSelectIgnore(string(a), string(b), renameResources, selectResources,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/informers.go

    	s.pods.AddEventHandler(controllers.FromEventHandler(func(o controllers.Event) {
    		s.queue.Add(o)
    	}))
    
    	// Namespaces could be anything though, so we watch all of those
    	//
    	// NOTE that we are requeueing namespaces here explicitly to work around
    	// test flakes with the fake kube client in `pkg/kube/client.go` -
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  8. istioctl/pkg/tag/util.go

    func GetWebhookRevision(wh admitv1.MutatingWebhookConfiguration) (string, error) {
    	if tagName, ok := wh.ObjectMeta.Labels[label.IoIstioRev.Name]; ok {
    		return tagName, nil
    	}
    	return "", fmt.Errorf("could not extract tag revision from webhook")
    }
    
    // DeleteTagWebhooks deletes the given webhooks.
    func DeleteTagWebhooks(ctx context.Context, client kubernetes.Interface, tag string) error {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:42 GMT 2024
    - 5.4K bytes
    - Viewed (1)
  9. common/config/.golangci-format.yml

      - gofumpt
      - gci
      fast: false
    linters-settings:
      gci:
        sections:
          - standard # Captures all standard packages if they do not match another section.
          - default # Contains all imports that could not be matched to another section type.
          - prefix(istio.io/) # Groups all imports with the specified Prefix.
      goimports:
        # put imports beginning with prefix after 3rd-party packages;
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 05 03:02:37 GMT 2024
    - 2K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/events/v1/generated.proto

      // Maximal length of the note is 1kB, but libraries should be prepared to
      // handle values up to 64kB.
      // +optional
      optional string note = 10;
    
      // type is the type of this event (Normal, Warning), new types could be added in the future.
      // It is machine-readable.
      // This field cannot be empty for new Events.
      optional string type = 11;
    
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 5.5K bytes
    - Viewed (0)
Back to top