package
0.0.0-20191024030528-a481964b876e
Repository: https://github.com/divinerapier/learn-kubernetes.git
Documentation: pkg.go.dev

# Functions

AddCertificateDirFlag adds the --certs-dir flag to the given flagset.
AddConfigFlag adds the --config flag to the given flagset.
AddControlPlanExtraArgsFlags adds the ExtraArgs flags for control plane components.
AddCSRDirFlag adds the --csr-dir flag to the given flagset.
AddCSRFlag adds the --csr-only flag to the given flagset.
AddFeatureGatesStringFlag adds the --feature-gates flag to the given flagset.
AddIgnorePreflightErrorsFlag adds the --ignore-preflight-errors flag to the given flagset.
AddImageMetaFlags adds the --image-repository flag to the given flagset.
AddKubeadmOtherFlags adds flags that are not bound to a configuration file to the given flagset.
AddKubeConfigDirFlag adds the --kubeconfig-dir flag to the given flagset.
AddKubeConfigFlag adds the --kubeconfig flag to the given flagset.
AddKubernetesVersionFlag adds the --kubernetes-version flag to the given flagset.
AddKustomizePodsFlag adds the --kustomize flag to the given flagset.
NewBootstrapTokenOptions creates a new BootstrapTokenOptions object with the default values.

# Constants

APIServerAdvertiseAddress flag sets the IP address the API Server will advertise it's listening on.
APIServerBindPort flag sets the port for the API Server to bind to.
APIServerCertSANs flag sets extra Subject Alternative Names (SANs) to use for the API Server serving certificate.
APIServerExtraArgs flag sets a extra flags to pass to the API Server or override default ones in form of <flagname>=<value>.
CertificateKey flag sets the key used to encrypt and decrypt certificate secrets.
CertificateRenewal flag instruct kubeadm to execute certificate renewal during upgrades.
CertificatesDir flag sets the path where to save and read the certificates.
CfgPath flag sets the path to kubeadm config file.
ControllerManagerExtraArgs flag sets extra flags to pass to the Controller Manager or override default ones in form of <flagname>=<value>.
ControlPlane flag instruct kubeadm to create a new control plane instance on this node.
ControlPlaneEndpoint flag sets a stable IP address or DNS name for the control plane.
CSRDir flag sets the location for CSRs and flags to be output.
CSROnly flag instructs kubeadm to create CSRs instead of automatically creating or renewing certs.
DryRun flag instruct kubeadm to don't apply any changes; just output what would be done.
EtcdUpgrade flag instruct kubeadm to execute etcd upgrade during upgrades.
FeatureGatesString flag sets key=value pairs that describe feature gates for various features.
FileDiscovery flag sets the file or URL from which to load cluster information (for file-based discovery).
ForceReset flag instruct kubeadm to reset the node without prompting for confirmation.
IgnorePreflightErrors sets the path a list of checks whose errors will be shown as warnings.
ImageRepository sets the container registry to pull control plane images from.
KubeconfigDir flag sets the path where to save the kubeconfig file.
KubeconfigPath flag sets the kubeconfig file to use when talking to the cluster.
KubeletVersion flag sets the version for the kubelet config.
KubernetesVersion flag sets the Kubernetes version for the control plane.
Kustomize flag sets the folder where kustomize patches for static pod manifest are stored.
NetworkingDNSDomain flag sets the domain for services, e.g.
NetworkingPodSubnet flag sets the range of IP addresses for the pod network.
NetworkingServiceSubnet flag sets the range of IP address for service VIPs.
NodeCRISocket flag sets the CRI socket to connect to.
NodeName flag sets the node name.
SchedulerExtraArgs flag sets extra flags to pass to the Scheduler or override default ones in form of <flagname>=<value>".
SkipCertificateKeyPrint flag instruct kubeadm to skip printing certificate key used to encrypt certs by 'kubeadm init'.
SkipTokenPrint flag instruct kubeadm to skip printing of the default bootstrap token generated by 'kubeadm init'.
TLSBootstrapToken flag sets the token used to temporarily authenticate with the Kubernetes Control Plane to submit a certificate signing request (CSR) for a locally created key pair.
TokenDescription flag sets the description of the token.
TokenDiscovery flag sets the token used to validate cluster information fetched from the API server (for token-based discovery).
TokenDiscoveryCAHash flag instruct kubeadm to validate that the root CA public key matches this hash (for token-based discovery).
TokenDiscoverySkipCAHash flag instruct kubeadm to skip CA hash verification (for token-based discovery).
TokenGroups flag sets the authentication groups of the token.
TokenStr flags sets both the discovery-token and the tls-bootstrap-token when those values are not provided.
TokenTTL flag sets the time to live for token.
TokenUsages flag sets the usages of the token.
UploadCerts flag instruct kubeadm to upload certificates.

# Structs

BootstrapTokenOptions is a wrapper struct for adding bootstrap token-related flags to a FlagSet and applying the parsed flags to a InitConfiguration object later at runtime TODO: In the future, we might want to group the flags in a better way than adding them all individually like this.