Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for maybeWriteKubeConfigFile (0.21 sec)

  1. cni/pkg/install/kubeconfig.go

    		return kubeconfig{}, err
    	}
    
    	return kubeconfig{
    		Full:     string(fullYaml),
    		Redacted: string(redacted),
    	}, nil
    }
    
    // maybeWriteKubeConfigFile will validate the existing kubeConfig file, and rewrite/replace it if required.
    func maybeWriteKubeConfigFile(cfg *config.InstallConfig) error {
    	kc, err := createKubeConfig(cfg)
    	if err != nil {
    		return err
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:29 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. cni/pkg/install/install.go

    	// which may be watched by other CNIs, and so we don't want to trigger writes to this file
    	// unless it's missing or the contents are not what we expect.
    	if err := maybeWriteKubeConfigFile(in.cfg); err != nil {
    		cniInstalls.With(resultLabel.Value(resultCreateKubeConfigFailure)).Increment()
    		return copiedFiles, fmt.Errorf("write kubeconfig: %v", err)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:18 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top