Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for CertificateWriteDir (0.29 sec)

  1. cmd/kubeadm/app/cmd/phases/init/certs.go

    	return certsphase.CreateServiceAccountKeyAndPublicKeyFiles(data.CertificateWriteDir(), data.Cfg().ClusterConfiguration.EncryptionAlgorithmType())
    }
    
    func runCerts(c workflow.RunData) error {
    	data, ok := c.(InitData)
    	if !ok {
    		return errors.New("certs phase invoked with an invalid data struct")
    	}
    
    	fmt.Printf("[certs] Using certificateDir folder %q\n", data.CertificateWriteDir())
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 06:35:45 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/phases/init/certs_test.go

    func (t *testCertsData) ExternalCA() bool                   { return false }
    func (t *testCertsData) CertificateDir() string             { return t.cfg.CertificatesDir }
    func (t *testCertsData) CertificateWriteDir() string        { return t.cfg.CertificatesDir }
    
    func TestCreateSparseCerts(t *testing.T) {
    	for _, test := range certstestutil.GetSparseCertTestCases(t) {
    		t.Run(test.Name, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 17 14:40:46 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/phases/join/data_test.go

    func (j *testJoinData) KubeletDir() string                              { return "" }
    func (j *testJoinData) ManifestDir() string                             { return "" }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 26 15:51:39 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/phases/join/data.go

    	IgnorePreflightErrors() sets.Set[string]
    	OutputWriter() io.Writer
    	PatchesDir() string
    	DryRun() bool
    	KubeConfigDir() string
    	KubeletDir() string
    	ManifestDir() string
    	CertificateWriteDir() string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 15:33:38 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/phases/init/data.go

    	CertificateKey() string
    	SetCertificateKey(key string)
    	SkipCertificateKeyPrint() bool
    	Cfg() *kubeadmapi.InitConfiguration
    	DryRun() bool
    	SkipTokenPrint() bool
    	IgnorePreflightErrors() sets.Set[string]
    	CertificateWriteDir() string
    	CertificateDir() string
    	KubeConfigDir() string
    	KubeConfigPath() string
    	ManifestDir() string
    	KubeletDir() string
    	ExternalCA() bool
    	OutputWriter() io.Writer
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 06 10:43:20 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/phases/init/data_test.go

    func (t *testInitData) SkipTokenPrint() bool                                 { return false }
    func (t *testInitData) IgnorePreflightErrors() sets.Set[string]              { return nil }
    func (t *testInitData) CertificateWriteDir() string                          { return "" }
    func (t *testInitData) CertificateDir() string                               { return "" }
    func (t *testInitData) KubeConfigDir() string                                { return "" }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 06 10:43:20 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/cmd/phases/join/checketcd.go

    	//     for connecting to etcd already in place
    	client, err := data.Client()
    	if err != nil {
    		return err
    	}
    
    	return etcdphase.CheckLocalEtcdClusterStatus(client, data.CertificateWriteDir())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 02 11:25:47 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/cmd/phases/join/controlplaneprepare.go

    		return err
    	}
    
    	// If we're dry-running, download certs to tmp dir, and defer to restore to the path originally specified by the user
    	certsDir := cfg.CertificatesDir
    	cfg.CertificatesDir = data.CertificateWriteDir()
    	defer func() { cfg.CertificatesDir = certsDir }()
    
    	client, err := bootstrapClient(data)
    	if err != nil {
    		return err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:46:34 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/phases/init/kubeconfig.go

    			}
    			return nil
    		}
    
    		// if dryrunning, reads certificates from a temporary folder (and defer restore to the path originally specified by the user)
    		cfg := data.Cfg()
    		cfg.CertificatesDir = data.CertificateWriteDir()
    		defer func() { cfg.CertificatesDir = data.CertificateDir() }()
    
    		// creates the KubeConfig file (or use existing)
    		return kubeconfigphase.CreateKubeConfigFile(kubeConfigFileName, data.KubeConfigDir(), data.Cfg())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 04:36:03 UTC 2023
    - 6K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/cmd/phases/join/controlplanejoin.go

    	// existing one."
    	if err := etcdphase.CreateStackedEtcdStaticPodManifestFile(client, data.ManifestDir(), data.PatchesDir(), cfg.NodeRegistration.Name, &cfg.ClusterConfiguration, &cfg.LocalAPIEndpoint, data.DryRun(), data.CertificateWriteDir()); err != nil {
    		return errors.Wrap(err, "error creating local etcd static pod manifest file")
    	}
    
    	return nil
    }
    
    func runMarkControlPlanePhase(c workflow.RunData) error {
    	data, ok := c.(JoinData)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 03:09:42 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top