Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 39 of 39 for ready (0.15 sec)

  1. cni/pkg/nodeagent/healthServer.go

    	watchReady.Store(false)
    
    	router.HandleFunc(constants.LivenessEndpoint, healthz)
    	router.HandleFunc(constants.ReadinessEndpoint, readyz(installReady, watchReady))
    
    	return
    }
    
    func healthz(w http.ResponseWriter, _ *http.Request) {
    	w.WriteHeader(http.StatusOK)
    }
    
    func readyz(installReady, watchReady *atomic.Value) http.HandlerFunc {
    	return func(w http.ResponseWriter, _ *http.Request) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 15 01:29:35 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/compare/comparator_test.go

    func TestComparatorMismatchedConfigs(t *testing.T) {
    	cfg, err := os.ReadFile("testdata/configdump.json")
    	if err != nil {
    		t.Fatalf("Failed to read test data: %v", err)
    	}
    	diffCfg, err := os.ReadFile("testdata/configdump_diff.json")
    	if err != nil {
    		t.Fatalf("Failed to read test data: %v", err)
    	}
    
    	var outputBuffer bytes.Buffer
    	comparator, err := NewComparator(&outputBuffer, map[string][]byte{"default": cfg}, diffCfg)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Mar 12 10:02:09 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  3. istioctl/pkg/cli/option.go

    func (r *RootFlags) configureDefaultNamespace() {
    	configAccess := clientcmd.NewDefaultPathOptions()
    
    	kubeconfig := *r.kubeconfig
    	if kubeconfig != "" {
    		// use specified kubeconfig file for the location of the
    		// config to read
    		configAccess.GlobalFile = kubeconfig
    	}
    
    	// gets existing kubeconfig or returns new empty config
    	config, err := configAccess.GetStartingConfig()
    	if err != nil {
    		r.defaultNamespace = v1.NamespaceDefault
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 18:01:27 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  4. cni/pkg/util/pluginutil.go

    				log.Infof("file modified: %v", event.Name)
    				fileModified <- struct{}{}
    			}
    		case err, ok := <-watcher.Errors:
    			if !ok {
    				return
    			}
    			errChan <- err
    		}
    	}
    }
    
    // Read CNI config from file and return the unmarshalled JSON as a map
    func ReadCNIConfigMap(path string) (map[string]any, error) {
    	cniConfig, err := os.ReadFile(path)
    	if err != nil {
    		return nil, err
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/cni-watcher.go

    		log.Error("empty request body")
    		http.Error(w, "empty request body", http.StatusBadRequest)
    		return
    	}
    	defer req.Body.Close()
    	data, err := io.ReadAll(req.Body)
    	if err != nil {
    		log.Errorf("Failed to read event report from cni plugin: %v", err)
    		http.Error(w, err.Error(), http.StatusInternalServerError)
    		return
    	}
    	msg, err := processAddEvent(data)
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  6. istioctl/cmd/root.go

    	"istio.io/istio/pkg/cmd"
    	"istio.io/istio/pkg/collateral"
    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/tools/bug-report/pkg/bugreport"
    )
    
    const (
    	// Location to read istioctl defaults from
    	defaultIstioctlConfig = "$HOME/.istioctl/config.yaml"
    )
    
    const (
    	FlagCharts = "charts"
    )
    
    // ConfigAndEnvProcessing uses spf13/viper for overriding CLI parameters
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 11 20:51:30 GMT 2024
    - 10K bytes
    - Viewed (0)
  7. operator/cmd/mesh/manifest-generate_test.go

    		if err != nil {
    			panic(fmt.Errorf("failed to make temp dir: %v", err))
    		}
    		f, err := os.Open("testdata/manifest-generate/data-snapshot.tar.gz")
    		if err != nil {
    			panic(fmt.Errorf("failed to read data snapshot: %v", err))
    		}
    		if err := extract(f, d); err != nil {
    			panic(fmt.Errorf("failed to extract data snapshot: %v", err))
    		}
    		return chartSourceType(filepath.Join(d, "manifests"))
    	}()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
  8. istioctl/pkg/multicluster/remote_secret.go

    		}
    	default:
    		return nil, nil, fmt.Errorf("unsupported type: %v", opt.Type)
    	}
    	tokenSecret, err := getServiceAccountSecret(client, opt)
    	if err != nil {
    		return nil, nil, fmt.Errorf("could not get access token to read resources from local kube-apiserver: %v", err)
    	}
    
    	var server string
    	var warn Warning
    	if opt.ServerOverride != "" {
    		server = opt.ServerOverride
    	} else {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
  9. istioctl/pkg/workload/workload.go

    	configureCmd.PersistentFlags().StringVar(&externalIP, "externalIP", "", "External IP address of the workload")
    	opts.AttachControlPlaneFlags(configureCmd)
    	return configureCmd
    }
    
    // Reads a WorkloadGroup yaml. Additionally populates default values if unset
    // TODO: add WorkloadGroup validation in pkg/config/validation
    func readWorkloadGroup(filename string, wg *clientv1alpha3.WorkloadGroup) error {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
Back to top