Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for retrieveValidatedConfigInfo (0.35 sec)

  1. cmd/kubeadm/app/discovery/token/token.go

    	return retrieveValidatedConfigInfo(nil, cfg, constants.DiscoveryRetryInterval, timeout)
    }
    
    // retrieveValidatedConfigInfo is a private implementation of RetrieveValidatedConfigInfo.
    // It accepts an optional clientset that can be used for testing purposes.
    func retrieveValidatedConfigInfo(client clientset.Interface, cfg *kubeadmapi.Discovery, interval, timeout time.Duration) (*clientcmdapi.Config, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/discovery/discovery.go

    		kubeConfigPath := cfg.Discovery.File.KubeConfigPath
    		if isHTTPSURL(kubeConfigPath) {
    			return https.RetrieveValidatedConfigInfo(kubeConfigPath, timeout)
    		}
    		return file.RetrieveValidatedConfigInfo(kubeConfigPath, timeout)
    	case cfg.Discovery.BootstrapToken != nil:
    		return token.RetrieveValidatedConfigInfo(&cfg.Discovery, timeout)
    	default:
    		return nil, errors.New("couldn't find a valid discovery configuration")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/discovery/https/https.go

    	"k8s.io/kubernetes/cmd/kubeadm/app/discovery/file"
    )
    
    // RetrieveValidatedConfigInfo connects to the API Server and makes sure it can talk
    // securely to the API Server using the provided CA cert and
    // optionally refreshes the cluster-info information from the cluster-info ConfigMap
    func RetrieveValidatedConfigInfo(httpsURL string, discoveryTimeout time.Duration) (*clientcmdapi.Config, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 24 04:29:10 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/discovery/file/file.go

    	kubeconfigutil "k8s.io/kubernetes/cmd/kubeadm/app/util/kubeconfig"
    )
    
    // RetrieveValidatedConfigInfo connects to the API Server and makes sure it can talk
    // securely to the API Server using the provided CA cert and
    // optionally refreshes the cluster-info information from the cluster-info ConfigMap
    func RetrieveValidatedConfigInfo(filepath string, discoveryTimeout time.Duration) (*clientcmdapi.Config, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:55 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/discovery/token/token_test.go

    						t.Errorf("could not update the cluster-info ConfigMap with a JWS signature: %v", err)
    					}
    				}()
    			}
    
    			// Retrieve validated configuration
    			kubeconfig, err = retrieveValidatedConfigInfo(client, test.cfg, interval, timeout)
    			if (err != nil) != test.expectedError {
    				t.Errorf("expected error %v, got %v, error: %v", test.expectedError, err != nil, err)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top