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 ¶
NewK8sClient is an utility function used to create a kubernetes sdk client and a custom client for Runtime crd.
func NewK8sConfig ¶
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.
Click to show internal directories.
Click to hide internal directories.