Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for fileName (0.36 sec)

  1. istioctl/pkg/validate/validate.go

    	processedFiles := map[string]bool{}
    	for _, filename := range filenames {
    		var isDir bool
    		if filename != "-" {
    			fi, err := os.Stat(filename)
    			if err != nil {
    				errs = multierror.Append(errs, fmt.Errorf("cannot stat file %q: %v", filename, err))
    				continue
    			}
    			isDir = fi.IsDir()
    		}
    
    		if !isDir {
    			processFile(filename)
    			processedFiles[filename] = true
    			continue
    		}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  2. istioctl/pkg/proxystatus/proxystatus.go

    )
    
    var configDumpFile string
    
    func readConfigFile(filename string) ([]byte, error) {
    	file := os.Stdin
    	if filename != "-" {
    		var err error
    		file, err = os.Open(filename)
    		if err != nil {
    			return nil, err
    		}
    	}
    	defer func() {
    		if err := file.Close(); err != nil {
    			log.Errorf("failed to close %s: %s", filename, err)
    		}
    	}()
    	data, err := io.ReadAll(file)
    	if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. istioctl/pkg/kubeinject/kubeinject.go

    		"Mesh configuration filename. Takes precedence over --meshConfigMapName if set")
    	injectCmd.PersistentFlags().StringVar(&injectConfigFile, "injectConfigFile", "",
    		"Injection configuration filename. Cannot be used with --injectConfigMapName")
    	injectCmd.PersistentFlags().StringVar(&valuesFile, "valuesFile", "",
    		"Injection values configuration filename.")
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  4. istioctl/pkg/kubeinject/kubeinject_test.go

    	"istio.io/istio/istioctl/pkg/util/testutil"
    )
    
    func TestKubeInject(t *testing.T) {
    	cases := []testutil.TestCase{
    		{ // case 0
    			Args:           []string{},
    			ExpectedRegexp: regexp.MustCompile(`filename not specified \(see --filename or -f\)`),
    			WantException:  true,
    		},
    		{ // case 1
    			Args:           strings.Split("-f missing.yaml", " "),
    			ExpectedRegexp: regexp.MustCompile(`open missing.yaml: no such file or directory`),
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  5. cni/pkg/install/cniconfig.go

    // Or until cancelled by parent context
    func getCNIConfigFilepath(ctx context.Context, cfg pluginConfig) (string, error) {
    	filename := cfg.cniConfName
    
    	if !cfg.chainedCNIPlugin {
    		if len(filename) == 0 {
    			filename = "YYY-istio-cni.conf"
    		}
    		return filepath.Join(cfg.mountedCNINetDir, filename), nil
    	}
    
    	watcher, err := util.CreateFileWatcher(cfg.mountedCNINetDir)
    	if err != nil {
    		return "", err
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/envoy/configdump/testdata/ecds/output.json

                            "vmConfig": {
                                "runtime": "envoy.wasm.runtime.v8",
                                "code": {
                                    "local": {
                                        "filename": "/var/lib/istio/data/fe482be5ac123d3d387b0c68b9ed7f8ed65824e7d0bbc88a9a9a71dd8391d96c/d8ef3957b4cf09da9ed25e88bc75ac397ea875d88c5cbed356872f936a86d928.wasm"
                                    }
                                },
    Json
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sun Dec 24 08:16:26 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  7. operator/cmd/mesh/profile-dump.go

    apiVersion: install.istio.io/v1alpha1
    kind: IstioOperator
    `
    )
    
    func addProfileDumpFlags(cmd *cobra.Command, args *profileDumpArgs) {
    	cmd.PersistentFlags().StringSliceVarP(&args.inFilenames, "filename", "f", nil, filenameFlagHelpStr)
    	cmd.PersistentFlags().StringVarP(&args.configPath, "config-path", "p", "",
    		"The path the root of the configuration subtree to dump e.g. components.pilot. By default, dump whole tree")
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  8. istioctl/pkg/workload/workload_test.go

    		},
    		{
    			description:       "Invalid command args - valid filename input but missing output filename",
    			args:              strings.Split("entry configure -f file --clusterID cid", " "),
    			expectedException: true,
    			expectedOutput:    "Error: expecting an output directory\n",
    		},
    		{
    			description:       "Invalid command args - valid kubectl input but missing output filename",
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  9. istioctl/pkg/proxyconfig/proxyconfig.go

    	return setupConfigdumpEnvoyConfigWriter(debug, out)
    }
    
    func readFile(filename string) ([]byte, error) {
    	file := os.Stdin
    	if filename != "-" {
    		var err error
    		file, err = os.Open(filename)
    		if err != nil {
    			return nil, err
    		}
    	}
    	defer func() {
    		if err := file.Close(); err != nil {
    			log.Errorf("failed to close %s: %s", filename, err)
    		}
    	}()
    	return io.ReadAll(file)
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 16 03:28:36 GMT 2024
    - 48K bytes
    - Viewed (0)
  10. istioctl/pkg/validate/validate_test.go

    			args:      []string{"--filename", validFilenameJSON, "--filename", tempDirJSON, "--filename", validTempDirJSON},
    			wantError: true, // Since the directory has invalid files
    		},
    		{
    			name:      "validate mix of yaml and json directories with valid files",
    			args:      []string{"--filename", validTempDirYAML, "--filename", validTempDirJSON},
    			wantError: false,
    		},
    		{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jul 25 08:08:36 GMT 2023
    - 21.5K bytes
    - Viewed (0)
Back to top