Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for Read (0.12 sec)

  1. istioctl/pkg/kubeinject/kubeinject.go

    	}
    	meshConfigMap, err := client.Kube().CoreV1().ConfigMaps(ctx.IstioNamespace()).Get(context.TODO(), meshConfigMapName, metav1.GetOptions{})
    	if err != nil {
    		return nil, fmt.Errorf("could not read valid configmap %q from namespace %q: %v - "+
    			"Use --meshConfigFile or re-run "+command+" with `-i <istioSystemNamespace> and ensure valid MeshConfig exists",
    			meshConfigMapName, ctx.IstioNamespace(), err)
    	}
    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. operator/cmd/mesh/profile-diff.go

    	a, _, err := manifest.GenIOPFromProfile(profileA, "", setFlags, true, true, nil, l)
    	if err != nil {
    		return false, fmt.Errorf("could not read %q: %v", profileA, err)
    	}
    
    	b, _, err := manifest.GenIOPFromProfile(profileB, "", setFlags, true, true, nil, l)
    	if err != nil {
    		return false, fmt.Errorf("could not read %q: %v", profileB, err)
    	}
    
    	diff := util.YAMLDiff(a, b)
    	if diff == "" {
    		fmt.Fprintln(writer, "Profiles are identical")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  3. istioctl/pkg/describe/describe_test.go

    }
    
    // Tests Pilot /debug
    func TestDescribe(t *testing.T) {
    	productPageConfigPath := "testdata/describe/http_config.json"
    	config, err := os.ReadFile(productPageConfigPath)
    	if err != nil {
    		t.Fatalf("failed to read %s: %v", productPageConfigPath, err)
    	}
    	cases := []execAndK8sConfigTestCase{
    		{ // case 0
    			args:           []string{},
    			expectedString: "Describe resource and related Istio configuration",
    		},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  4. cni/pkg/plugin/plugin_dryrun_test.go

    			if err != nil {
    				log.Fatalf("Cannot read generated IPTables rule file: %v", err)
    			}
    			generatedRules := getRules(generated)
    
    			refreshGoldens(t, tt.golden, generatedRules)
    
    			// Compare generated iptables rule with golden files.
    			golden, err := os.ReadFile(tt.golden)
    			if err != nil {
    				log.Fatalf("Cannot read golden rule file: %v", err)
    			}
    			goldenRules := getRules(golden)
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. operator/cmd/mesh/shared.go

    	if err != nil {
    		return "", "", err
    	}
    
    	b, err := os.ReadFile(filePath)
    	if err != nil {
    		return "", "", fmt.Errorf("could not read values from file %s: %s", filePath, err)
    	}
    	customResource = string(b)
    	istioNamespace = mergedIOPS.Namespace
    	return
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. cni/pkg/install/install.go

    	if len(in.cniConfigFilepath) > 0 && file.Exists(in.cniConfigFilepath) {
    		if in.cfg.ChainedCNIPlugin {
    			installLog.Infof("Removing Istio CNI config from CNI config file: %s", in.cniConfigFilepath)
    
    			// Read JSON from CNI config file
    			cniConfigMap, err := util.ReadCNIConfigMap(in.cniConfigFilepath)
    			if err != nil {
    				return err
    			}
    			// Find Istio CNI and remove from plugin list
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 10.8K bytes
    - Viewed (0)
Back to top