Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for CertificatesDir (0.3 sec)

  1. cmd/kubeadm/app/cmd/options/certs.go

    package options
    
    import "github.com/spf13/pflag"
    
    // AddCertificateDirFlag adds the --certs-dir flag to the given flagset
    func AddCertificateDirFlag(fs *pflag.FlagSet, certsDir *string) {
    	fs.StringVar(certsDir, CertificatesDir, *certsDir, "The path where to save the certificates")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 12 09:44:35 UTC 2021
    - 856 bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/phases/reset/data.go

    	ForceReset() bool
    	InputReader() io.Reader
    	IgnorePreflightErrors() sets.Set[string]
    	Cfg() *kubeadmapi.InitConfiguration
    	ResetCfg() *kubeadmapi.ResetConfiguration
    	DryRun() bool
    	Client() clientset.Interface
    	CertificatesDir() string
    	CRISocketPath() string
    	CleanupTmpDir() bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 09:03:31 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/phases/reset/data_test.go

    func (t *testData) DryRun() bool                             { return false }
    func (t *testData) Client() clientset.Interface              { return nil }
    func (t *testData) CertificatesDir() string                  { return "" }
    func (t *testData) CRISocketPath() string                    { return "" }
    func (t *testData) CleanupTmpDir() bool                      { return false }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 09:03:31 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/apis/kubeadm/v1beta3/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: Sun Jan 14 13:07:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/apis/kubeadm/fuzzer/fuzzer.go

    	c.FuzzNoCustom(obj)
    
    	// Pinning values for fields that get defaults if fuzz value is empty string or nil (thus making the round trip test fail)
    	obj.CertificatesDir = "foo"
    	obj.ClusterName = "bar"
    	obj.ImageRepository = "baz"
    	obj.CIImageRepository = "" // This fields doesn't exists in public API >> using default to get the roundtrip test pass
    	obj.KubernetesVersion = "qux"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 13 06:41:07 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/phases/reset/cleanupnode.go

    	return workflow.Phase{
    		Name:    "cleanup-node",
    		Aliases: []string{"cleanupnode"},
    		Short:   "Run cleanup node.",
    		Run:     runCleanupNode,
    		InheritFlags: []string{
    			options.CertificatesDir,
    			options.NodeCRISocket,
    			options.CleanupTmpDir,
    			options.DryRun,
    		},
    	}
    }
    
    func runCleanupNode(c workflow.RunData) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/componentconfigs/kubelet_test.go

    					RotateCertificates: kubeletRotateCertificates,
    					CgroupDriver:       constants.CgroupDriverSystemd,
    				},
    			},
    		},
    		{
    			name: "CertificatesDir defaulting works",
    			clusterCfg: kubeadmapi.ClusterConfiguration{
    				CertificatesDir: "/path/to/certs",
    			},
    			expected: kubeletConfig{
    				config: kubeletconfig.KubeletConfiguration{
    					FeatureGates:  map[string]bool{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 10:26:46 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/cmd/options/constant.go

    	// APIServerExtraArgs flag sets a extra flags to pass to the API Server or override default ones in form of <flagname>=<value>.
    	APIServerExtraArgs = "apiserver-extra-args"
    
    	// CertificatesDir flag sets the path where to save and read the certificates.
    	CertificatesDir = "cert-dir"
    
    	// CfgPath flag sets the path to kubeadm config file.
    	CfgPath = "config"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/certs/certlist_test.go

    	defer os.RemoveAll(dir)
    
    	ic := &kubeadmapi.InitConfiguration{
    		NodeRegistration: kubeadmapi.NodeRegistrationOptions{
    			Name: "test-node",
    		},
    		ClusterConfiguration: kubeadmapi.ClusterConfiguration{
    			CertificatesDir: dir,
    		},
    	}
    
    	caCfg := Certificates{
    		{
    			config:   pkiutil.CertConfig{},
    			Name:     "test-ca",
    			BaseName: "test-ca",
    		},
    		{
    			config: pkiutil.CertConfig{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/util/config/resetconfiguration_test.go

    			fileContents: dedent.Dedent(`
    				apiVersion: kubeadm.k8s.io/v1beta4
    				kind: ResetConfiguration
    				force: true
    				cleanupTmpDir: true
    				criSocket: unix:///var/run/containerd/containerd.sock
    				certificatesDir: /etc/kubernetes/pki
    				ignorePreflightErrors:
    				- a
    				- b
    			`),
    		},
    	}
    
    	for _, rt := range tests {
    		t.Run(rt.name, func(t2 *testing.T) {
    			cfgPath := filepath.Join(tmpdir, rt.name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 06 13:21:52 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top