Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for CertificatesDir (0.53 sec)

  1. cmd/kubeadm/app/util/staticpod/utils_linux.go

    	saPublicKeyFile := filepath.Join(cfg.CertificatesDir, kubeadmconstants.ServiceAccountPublicKeyName)
    	if err := updatePathOwnerAndPermissions(saPublicKeyFile, *runAsUser, *runAsGroup, 0600); err != nil {
    		return err
    	}
    	saPrivateKeyFile := filepath.Join(cfg.CertificatesDir, kubeadmconstants.ServiceAccountPrivateKeyName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 14:41:12 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/staticpod/utils_linux_test.go

    	wantUpdateFiles := map[string]ownerAndPermissions{
    		filepath.Join(cfg.CertificatesDir, kubeadmconstants.ServiceAccountPublicKeyName):   {uid: runAsUser, gid: runAsGroup, permissions: 0600},
    		filepath.Join(cfg.CertificatesDir, kubeadmconstants.ServiceAccountPrivateKeyName):  {uid: 0, gid: supGroup, permissions: 0640},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 14:41:12 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/phases/join/controlplaneprepare.go

    		return err
    	}
    
    	fmt.Printf("[certs] Using certificateDir folder %q\n", cfg.CertificatesDir)
    
    	// if dryrunning, write certificates files to a temporary folder (and defer restore to the path originally specified by the user)
    	certsDir := cfg.CertificatesDir
    	cfg.CertificatesDir = data.CertificateWriteDir()
    	defer func() { cfg.CertificatesDir = certsDir }()
    	// Generate missing certificates (if any)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:46:34 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/reset_test.go

    			flags: map[string]string{
    				options.CertificatesDir:       "/tmp",
    				options.NodeCRISocket:         constants.CRISocketCRIO,
    				options.IgnorePreflightErrors: "all",
    				options.ForceReset:            "true",
    				options.DryRun:                "true",
    				options.CleanupTmpDir:         "true",
    			},
    			data: &resetData{
    				certificatesDir:       "/tmp",
    				criSocketPath:         constants.CRISocketCRIO,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 13:42:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. 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)
  6. cmd/kubeadm/app/util/config/initconfiguration_test.go

    			}, []byte(constants.YAMLDocumentSeparator)),
    			validate: func(t *testing.T, cfg *kubeadm.InitConfiguration) {
    				if cfg.ClusterConfiguration.CertificatesDir != certDir {
    					t.Errorf("CertificatesDir from ClusterConfiguration holds the wrong value, Expected: %v. Actual: %v", certDir, cfg.ClusterConfiguration.CertificatesDir)
    				}
    			},
    		},
    		{
    			name: "v1beta3.full",
    			fileContents: bytes.Join([][]byte{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 09:17:03 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  7. 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)
  8. cmd/kubeadm/app/cmd/phases/init/kubeletfinalize.go

    				InheritFlags:   []string{options.CfgPath, options.CertificatesDir, options.DryRun},
    				Example:        kubeletFinalizePhaseExample,
    				RunAllSiblings: true,
    			},
    			{
    				Name:         "enable-client-cert-rotation",
    				Short:        "Enable kubelet client certificate rotation",
    				InheritFlags: []string{options.CfgPath, options.CertificatesDir, options.DryRun},
    				Run:          runKubeletFinalizeEnableClientCertRotation,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 10:54:51 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/copycerts/copycerts_test.go

    	initConfiguration.ClusterConfiguration.CertificatesDir = tmpdir
    
    	// Temporary directory where certificates will be downloaded to
    	targetTmpdir := testutil.SetupTempDir(t)
    	defer os.RemoveAll(targetTmpdir)
    	initForDownloadConfiguration := testutil.GetDefaultInternalConfig(t)
    	initForDownloadConfiguration.ClusterConfiguration.CertificatesDir = targetTmpdir
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 01 00:15:30 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/apis/kubeadm/v1beta4/defaults.go

    		obj.Networking.ServiceSubnet = DefaultServicesSubnet
    	}
    
    	if obj.Networking.DNSDomain == "" {
    		obj.Networking.DNSDomain = DefaultServiceDNSDomain
    	}
    
    	if obj.CertificatesDir == "" {
    		obj.CertificatesDir = DefaultCertificatesDir
    	}
    
    	if obj.ImageRepository == "" {
    		obj.ImageRepository = DefaultImageRepository
    	}
    
    	if obj.ClusterName == "" {
    		obj.ClusterName = DefaultClusterName
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top