Merge pull request #113874 from SataQiu/clean-20221113

kubeadm: remove unused command flag constants
This commit is contained in:
Kubernetes Prow Robot 2022-12-09 14:34:48 -08:00 committed by GitHub
commit 15f47da1c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ const (
// ControlPlaneEndpoint flag sets a stable IP address or DNS name for the control plane.
ControlPlaneEndpoint = "control-plane-endpoint"
// DryRun flag instruct kubeadm to don't apply any changes; just output what would be done.
// DryRun flag instructs kubeadm to don't apply any changes; just output what would be done.
DryRun = "dry-run"
// FeatureGatesString flag sets key=value pairs that describe feature gates for various features.
@ -62,9 +62,6 @@ const (
// KubernetesVersion flag sets the Kubernetes version for the control plane.
KubernetesVersion = "kubernetes-version"
// KubeletVersion flag sets the version for the kubelet config.
KubeletVersion = "kubelet-version"
// NetworkingDNSDomain flag sets the domain for services, e.g. "myorg.internal".
NetworkingDNSDomain = "service-dns-domain"
@ -83,15 +80,9 @@ const (
// SchedulerExtraArgs flag sets extra flags to pass to the Scheduler or override default ones in form of <flagname>=<value>".
SchedulerExtraArgs = "scheduler-extra-args"
// SkipTokenPrint flag instruct kubeadm to skip printing of the default bootstrap token generated by 'kubeadm init'.
// SkipTokenPrint flag instructs kubeadm to skip printing of the default bootstrap token generated by 'kubeadm init'.
SkipTokenPrint = "skip-token-print"
// CSROnly flag instructs kubeadm to create CSRs instead of automatically creating or renewing certs
CSROnly = "csr-only"
// CSRDir flag sets the location for CSRs and flags to be output
CSRDir = "csr-dir"
// TokenStr flags sets both the discovery-token and the tls-bootstrap-token when those values are not provided
TokenStr = "token"
@ -113,40 +104,40 @@ const (
// TokenDiscovery flag sets the token used to validate cluster information fetched from the API server (for token-based discovery)
TokenDiscovery = "discovery-token"
// TokenDiscoveryCAHash flag instruct kubeadm to validate that the root CA public key matches this hash (for token-based discovery)
// TokenDiscoveryCAHash flag instructs kubeadm to validate that the root CA public key matches this hash (for token-based discovery)
TokenDiscoveryCAHash = "discovery-token-ca-cert-hash"
// TokenDiscoverySkipCAHash flag instruct kubeadm to skip CA hash verification (for token-based discovery)
// TokenDiscoverySkipCAHash flag instructs kubeadm to skip CA hash verification (for token-based discovery)
TokenDiscoverySkipCAHash = "discovery-token-unsafe-skip-ca-verification"
// FileDiscovery flag sets the file or URL from which to load cluster information (for file-based discovery)
FileDiscovery = "discovery-file"
// ControlPlane flag instruct kubeadm to create a new control plane instance on this node
// ControlPlane flag instructs kubeadm to create a new control plane instance on this node
ControlPlane = "control-plane"
// UploadCerts flag instruct kubeadm to upload certificates
// UploadCerts flag instructs kubeadm to upload certificates
UploadCerts = "upload-certs"
// CertificateKey flag sets the key used to encrypt and decrypt certificate secrets
CertificateKey = "certificate-key"
// SkipCertificateKeyPrint flag instruct kubeadm to skip printing certificate key used to encrypt certs by 'kubeadm init'.
// SkipCertificateKeyPrint flag instructs kubeadm to skip printing certificate key used to encrypt certs by 'kubeadm init'.
SkipCertificateKeyPrint = "skip-certificate-key-print"
// ForceReset flag instruct kubeadm to reset the node without prompting for confirmation
// ForceReset flag instructs kubeadm to reset the node without prompting for confirmation
ForceReset = "force"
// CertificateRenewal flag instruct kubeadm to execute certificate renewal during upgrades
// CertificateRenewal flag instructs kubeadm to execute certificate renewal during upgrades
CertificateRenewal = "certificate-renewal"
// EtcdUpgrade flag instruct kubeadm to execute etcd upgrade during upgrades
// EtcdUpgrade flag instructs kubeadm to execute etcd upgrade during upgrades
EtcdUpgrade = "etcd-upgrade"
// Patches flag sets the folder where kubeadm component patches are stored
Patches = "patches"
// Print the addon manifests to STDOUT instead of installing them.
// PrintManifest flag instructs kubeadm to print the addon manifests to STDOUT instead of installing them.
PrintManifest = "print-manifest"
// CleanupTmpDir flag indicates whether reset will cleanup the tmp dir