bootstrap

package
v0.1.0-latest-stable Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadClientConfig

func LoadClientConfig(kubeconfigPath, bootstrapPath, certDir, pairNamePrefix string) (certConfig, userConfig *restclient.Config, err error)

LoadClientConfig tries to load the appropriate client config for retrieving certs and for use by users. If bootstrapPath is empty, only kubeconfigPath is checked. If bootstrap path is set and the contents of kubeconfigPath are valid, both certConfig and userConfig will point to that file. Otherwise the kubeconfigPath on disk is populated based on bootstrapPath but pointing to the location of the client cert in certDir. This preserves the historical behavior of bootstrapping where on subsequent restarts the most recent client cert is used to request new client certs instead of the initial token.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL