Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 60 for CertificatesDir (0.44 sec)

  1. 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)
  2. cmd/kubeadm/app/cmd/certs.go

    				internalcfg.ClusterConfiguration.CertificatesDir = cfg.CertificatesDir
    			}
    
    			return internalcfg, nil
    		}
    		printer.Printf("[%s] Error reading configuration from the Cluster. Falling back to default configuration\n\n", logPrefix)
    	}
    
    	// Read config from --config if provided. Otherwise, use the default configuration
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/certs/certlist.go

    			}
    			// Try and load a CA Key
    			caKey, err = pkiutil.TryLoadKeyFromDisk(ic.CertificatesDir, ca.BaseName)
    			if err != nil {
    				// If there's no CA key, make sure every certificate exists.
    				for _, leaf := range leaves {
    					cl := certKeyLocation{
    						pkiDir:   ic.CertificatesDir,
    						baseName: leaf.BaseName,
    						uxName:   leaf.Name,
    					}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/controlplane/manifests_test.go

    			defer os.RemoveAll(tmpdir)
    			test.cfg.CertificatesDir = tmpdir
    
    			if err := certs.CreatePKIAssets(test.cfg); err != nil {
    				t.Errorf("failed creating pki assets: %v", err)
    			}
    
    			// delete ca.key and front-proxy-ca.key if test.caKeyPresent is false
    			if !test.caKeyPresent {
    				if err := os.Remove(filepath.Join(test.cfg.CertificatesDir, kubeadmconstants.CAKeyName)); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 03 14:43:47 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/certs_test.go

    	// auto-detection of config values at runtime.
    	var kubeadmConfig = fmt.Sprintf(`
    apiVersion: %[1]s
    kind: ClusterConfiguration
    certificatesDir: %s
    kubernetesVersion: %s`,
    		kubeadmapiv1.SchemeGroupVersion.String(),
    		cfg.CertificatesDir,
    		kubeadmconstants.MinimumControlPlaneVersion.String())
    
    	// Write the minimal kubeadm config to a file
    	customConfigPath := kdir + "/kubeadm.conf"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 21 13:26:12 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/phases/init/certs.go

    			return nil
    		}
    
    		// if dryrunning, write certificates authority to 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() }()
    
    		// create the new certificate authority (or use existing)
    		return certsphase.CreateCACertAndKeyFiles(ca, cfg)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 06:35:45 UTC 2024
    - 9.8K 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/phases/certs/doc.go

    			.Networking.ServiceSubnet is needed for knowing which IP the internal Kubernetes service is going to point to
    			.CertificatesDir is required for knowing where all certificates should be stored
    
    	OUTPUTS:
    		Files to .CertificatesDir (default /etc/kubernetes/pki):
    		 - ca.crt
    		 - ca.key
    		 - apiserver.crt
    		 - apiserver.key
    		 - apiserver-kubelet-client.crt
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 02 09:38:56 UTC 2018
    - 1.9K bytes
    - Viewed (0)
  9. 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)
  10. cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go

    				ControlPlaneEndpoint: "api.k8s.io",
    				CertificatesDir:      pkidir,
    			},
    			NodeRegistration: kubeadmapi.NodeRegistrationOptions{Name: "valid-node-name"},
    		},
    		{
    			LocalAPIEndpoint: kubeadmapi.APIEndpoint{AdvertiseAddress: "1.2.3.4", BindPort: 1234},
    			ClusterConfiguration: kubeadmapi.ClusterConfiguration{
    				ControlPlaneEndpoint: "api.k8s.io:4321",
    				CertificatesDir:      pkidir,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 39.5K bytes
    - Viewed (0)
Back to top