Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 51 for initConfiguration (1.09 sec)

  1. cmd/kubeadm/app/cmd/phases/upgrade/node/preflight.go

    	if err := preflight.RunRootCheckOnly(data.IgnorePreflightErrors()); err != nil {
    		return err
    	}
    
    	// If this is a control-plane node, pull the basic images
    	if data.IsControlPlaneNode() {
    		// Update the InitConfiguration used for RunPullImagesCheck with ImagePullPolicy and ImagePullSerial
    		// that come from UpgradeNodeConfiguration.
    		initConfig := data.InitCfg()
    		initConfig.NodeRegistration.ImagePullPolicy = data.Cfg().Node.ImagePullPolicy
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 03:55:23 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/upgrade/diff.go

    		}
    	}
    	return nil
    }
    
    // FetchInitConfigurationFunc defines the signature of the function which will fetch InitConfiguration from cluster.
    type FetchInitConfigurationFunc func(client clientset.Interface, printer output.Printer, logPrefix string, newControlPlane, skipComponentConfigs bool) (*kubeadmapi.InitConfiguration, error)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/certs/doc.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package certs
    
    /*
    
    	PHASE: CERTIFICATES
    
    	INPUTS:
    		From InitConfiguration
    			.API.AdvertiseAddress is an optional parameter that can be passed for an extra addition to the SAN IPs
    			.APIServer.CertSANs is an optional parameter for adding DNS names and IPs to the API Server serving cert SAN
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 02 09:38:56 UTC 2018
    - 1.9K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/phases/join/waitcontrolplane.go

    	}
    
    	if data.Cfg().ControlPlane == nil {
    		return nil
    	}
    
    	initCfg, err := data.InitCfg()
    	if err != nil {
    		return errors.Wrap(err, "could not obtain InitConfiguration during the wait-control-plane phase")
    	}
    
    	// TODO: remove this check once WaitForAllControlPlaneComponents goes GA
    	// https://github.com/kubernetes/kubeadm/issues/2907
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 15:33:38 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/phases/init/addons.go

    				InheritFlags: getAddonPhaseFlags("kube-proxy"),
    				Run:          runKubeProxyAddon,
    				LocalFlags:   proxyLocalFlags,
    			},
    		},
    	}
    }
    
    func getInitData(c workflow.RunData) (*kubeadmapi.InitConfiguration, clientset.Interface, string, io.Writer, error) {
    	data, ok := c.(InitData)
    	if !ok {
    		return nil, nil, "", nil, errors.New("addon phase invoked with an invalid data struct")
    	}
    	cfg := data.Cfg()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/phases/reset/removeetcdmember_test.go

    					t.Fatalf(dedent.Dedent("failed to write pod manifest\n%s\n\tfatal error: %v"), name, err)
    				}
    			}
    
    			var dataDir string
    			var err error
    			if test.validConfig {
    				cfg := &kubeadmapi.InitConfiguration{}
    				dataDir, err = getEtcdDataDir(manifestPath, cfg)
    			} else {
    				dataDir, err = getEtcdDataDir(manifestPath, nil)
    			}
    
    			if (err != nil) != test.expectErr {
    				t.Fatalf(dedent.Dedent(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 26 03:55:19 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/cmd/kubeconfig.go

    	cmd.AddCommand(newCmdUserKubeConfig(out))
    	return cmd
    }
    
    // newCmdUserKubeConfig returns sub commands for kubeconfig phase
    func newCmdUserKubeConfig(out io.Writer) *cobra.Command {
    
    	initCfg := &kubeadmapiv1.InitConfiguration{}
    	clusterCfg := &kubeadmapiv1.ClusterConfiguration{}
    
    	var (
    		token, clientName, cfgPath string
    		organizations              []string
    		validityPeriod             time.Duration
    	)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/phases/kubelet/config_test.go

    		return true, nil, nil
    	})
    
    	internalcfg, err := configutil.DefaultedStaticInitConfiguration()
    	if err != nil {
    		t.Fatalf("unexpected failure when defaulting InitConfiguration: %v", err)
    	}
    
    	if err := CreateConfigMap(&internalcfg.ClusterConfiguration, client); err != nil {
    		t.Errorf("CreateConfigMap: unexpected error %v", err)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 02 12:34:30 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/phases/reset/removeetcdmember.go

    		fmt.Println("[reset] Please, manually reset etcd to prevent further issues")
    	}
    
    	return nil
    }
    
    func getEtcdDataDir(manifestPath string, cfg *kubeadmapi.InitConfiguration) (string, error) {
    	const etcdVolumeName = "etcd-data"
    	var dataDir string
    
    	if cfg != nil && cfg.Etcd.Local != nil {
    		return cfg.Etcd.Local.DataDir, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 11 08:02:50 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/util/marshal.go

    	return GroupVersionKindsHasKind(gvks, constants.ClusterConfigurationKind)
    }
    
    // GroupVersionKindsHasInitConfiguration returns whether the following gvk slice contains a InitConfiguration object
    func GroupVersionKindsHasInitConfiguration(gvks ...schema.GroupVersionKind) bool {
    	return GroupVersionKindsHasKind(gvks, constants.InitConfigurationKind)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top