util

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminCommonName   = "kubernetes-admin"
	AdminFilename     = "admin.conf"
	AdminOrganization = "system:masters"
)
View Source
const (
	ControllerManagerCommonName = "system:kube-controller-manager"
	ControllerManagerFilename   = "controller-manager.conf"
)
View Source
const (
	SchedulerCommonName = "system:kube-scheduler"
	SchedulerFilename   = "scheduler.conf"
)
View Source
const (
	KubeletCommonNamePrefix = "system:node:"
	KubeletFilename         = "kubelet.conf"
	KubeletOrganization     = "system:nodes"
)

Variables

This section is empty.

Functions

func WriteAPIServerCertAndKey

func WriteAPIServerCertAndKey(cfg *config.ControlPlaneConfiguration) error

func WriteAPIServerHealthcheckClientCertAndKey

func WriteAPIServerHealthcheckClientCertAndKey(cfg *config.ControlPlaneConfiguration) error

func WriteAPIServerKubeletClientCertAndKey

func WriteAPIServerKubeletClientCertAndKey(cfg *config.ControlPlaneConfiguration) error

func WriteAuthProxyCA

func WriteAuthProxyCA(dir string) error

WriteAuthProxyCA creates a new CA key/cert pair in the provided directory named auth-proxy-ca.{crt,key}. This CA is intended for use with settings such as the oidc-ca-file flags, and is generated ahead of time because of the chicken/egg problem when requiring the CA file be specified during cluster bootstrapping and the application used for oidc will be ultimately running on the same cluster.

func WriteClusterCA

func WriteClusterCA(dir string) error

func WriteFrontProxyCA

func WriteFrontProxyCA(dir string) error

func WriteFrontProxyClientCertAndKey

func WriteFrontProxyClientCertAndKey(cfg *config.ControlPlaneConfiguration) error

func WriteServiceAccountCA

func WriteServiceAccountCA(dir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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