prereq

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstanceAdmissionWebhook added in v0.12.0

func InstanceAdmissionWebhook(ns string) admissionv1beta1.MutatingWebhookConfiguration

InstanceAdmissionWebhook returns a MutatingWebhookConfiguration for the instance admission controller.

Types

type CertPair added in v0.13.0

type CertPair struct {
	Key  crypto.Signer
	Cert *x509.Certificate
}

CertPair is a private key and certificate for use for client auth, as a CA, or serving.

func (CertPair) AsBytes added in v0.13.0

func (k CertPair) AsBytes() (cert []byte, key []byte, err error)

AsBytes encodes key-pair in the appropriate formats for on-disk storage (PEM and PKCS8, respectively).

func (CertPair) CertBytes added in v0.13.0

func (k CertPair) CertBytes() []byte

CertBytes returns the PEM-encoded version of the certificate for this pair.

type KudoNamespace added in v0.13.0

type KudoNamespace struct {
	// contains filtered or unexported fields
}

func NewNamespaceInitializer added in v0.13.0

func NewNamespaceInitializer(options kudoinit.Options) KudoNamespace

func (KudoNamespace) Install added in v0.13.0

func (o KudoNamespace) Install(client *kube.Client) error

func (KudoNamespace) PreInstallVerify added in v0.13.0

func (o KudoNamespace) PreInstallVerify(client *kube.Client, result *verifier.Result) error

func (KudoNamespace) PreUpgradeVerify added in v0.16.0

func (o KudoNamespace) PreUpgradeVerify(client *kube.Client, result *verifier.Result) error

func (KudoNamespace) Resources added in v0.13.0

func (o KudoNamespace) Resources() []runtime.Object

func (KudoNamespace) String added in v0.13.0

func (o KudoNamespace) String() string

func (KudoNamespace) VerifyInstallation added in v0.16.0

func (o KudoNamespace) VerifyInstallation(client *kube.Client, result *verifier.Result) error

type KudoServiceAccount added in v0.13.0

type KudoServiceAccount struct {
	// contains filtered or unexported fields
}

func NewServiceAccountInitializer added in v0.13.0

func NewServiceAccountInitializer(options kudoinit.Options) KudoServiceAccount

func (KudoServiceAccount) Install added in v0.13.0

func (o KudoServiceAccount) Install(client *kube.Client) error

func (KudoServiceAccount) PreInstallVerify added in v0.13.0

func (o KudoServiceAccount) PreInstallVerify(client *kube.Client, result *verifier.Result) error

func (KudoServiceAccount) PreUpgradeVerify added in v0.16.0

func (o KudoServiceAccount) PreUpgradeVerify(client *kube.Client, result *verifier.Result) error

func (KudoServiceAccount) Resources added in v0.13.0

func (o KudoServiceAccount) Resources() []runtime.Object

func (KudoServiceAccount) String added in v0.13.0

func (o KudoServiceAccount) String() string

func (KudoServiceAccount) VerifyInstallation added in v0.16.0

func (o KudoServiceAccount) VerifyInstallation(client *kube.Client, result *verifier.Result) error

type KudoWebHook added in v0.13.0

type KudoWebHook struct {
	// contains filtered or unexported fields
}

func NewWebHookInitializer added in v0.13.0

func NewWebHookInitializer(options kudoinit.Options) *KudoWebHook

func (*KudoWebHook) Install added in v0.13.0

func (k *KudoWebHook) Install(client *kube.Client) error

func (*KudoWebHook) PreInstallVerify added in v0.13.0

func (k *KudoWebHook) PreInstallVerify(client *kube.Client, result *verifier.Result) error

func (*KudoWebHook) PreUpgradeVerify added in v0.16.0

func (k *KudoWebHook) PreUpgradeVerify(client *kube.Client, result *verifier.Result) error

func (*KudoWebHook) Resources added in v0.13.0

func (k *KudoWebHook) Resources() []runtime.Object

func (*KudoWebHook) String added in v0.13.0

func (k *KudoWebHook) String() string

func (*KudoWebHook) UninstallWebHook added in v0.16.0

func (k *KudoWebHook) UninstallWebHook(client *kube.Client) error

func (*KudoWebHook) VerifyInstallation added in v0.16.0

func (k *KudoWebHook) VerifyInstallation(client *kube.Client, result *verifier.Result) error

type TinyCA added in v0.13.0

type TinyCA struct {
	CA        CertPair
	CN        string
	Service   string
	Namespace string
	// contains filtered or unexported fields
}

TinyCA supports signing serving certs and client-certs for services and can be used as an auth mechanism with tests.

func NewTinyCA added in v0.13.0

func NewTinyCA(svc, ns string) (*TinyCA, error)

func (*TinyCA) NewServingCert added in v0.13.0

func (ca *TinyCA) NewServingCert() (CertPair, error)

NewServingCert returns a new CertPair for a serving HTTPS for a service. DNSNames are generated from the passed service and namespace

Jump to

Keyboard shortcuts

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