util

package
v0.0.0-...-6526340 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Schema is the schema of kubernetes APIs.
	Schema = scheme.Scheme
	// Codecs is the codecs used to handle kubernetes APIs.
	Codecs = serializer.NewCodecFactory(Schema)
)

Functions

func NewK8sClient

func NewK8sClient(cfg *rest.Config) (kubernetes.Interface, clientset.Interface, error)

NewK8sClient is an utility function used to create a kubernetes sdk client and a custom client for Runtime crd.

func NewK8sConfig

func NewK8sConfig(cfg *config.K8sConfig) (*rest.Config, error)

NewK8sConfig creates k8s rest config.

func SetupServerCert

func SetupServerCert(domain, commonName string) (*types.CertContext, error)

SetupServerCert setups the server cert. For example, user apiservers and admission webhooks can use the cert to prove their identify to the kube-apiserver

Types

This section is empty.

Jump to

Keyboard shortcuts

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