kamaji

package
v0.0.0-...-ec1031e Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKubeClientNil = errors.New("client kubernetes is nil")
	ErrLoggerNil     = errors.New("logger is nil")
)

Functions

This section is empty.

Types

type KamajiClient

type KamajiClient struct {
	*tcp.TCPClient
	// contains filtered or unexported fields
}

KamajiClient represents the options of the command line for managing Tenant Control Plane resources.

func NewKamajiClient

func NewKamajiClient(opts ...KamajiClientOption) (*KamajiClient, error)

func (*KamajiClient) PurgeCRDs

func (c *KamajiClient) PurgeCRDs(ctx context.Context) error

PurgeCRDs deletes the TenantControlPlane CRD. ATTENTION: please ensure all the TenantControlPlane resources are deleted by calling PurgeTCPs before calling this.

func (*KamajiClient) PurgeRBAC

func (c *KamajiClient) PurgeRBAC(ctx context.Context) error

func (*KamajiClient) PurgeWebhooks

func (c *KamajiClient) PurgeWebhooks(ctx context.Context) error

PurgeWebhooks deletes the Kamaji validating and mutating webhook configurations.

func (*KamajiClient) Set

func (c *KamajiClient) Set(opts ...KamajiClientOption)

func (*KamajiClient) Validate

func (c *KamajiClient) Validate() error

type KamajiClientOption

type KamajiClientOption func(opts *KamajiClient)

func WithKubeClient

func WithKubeClient(kube client.Client) KamajiClientOption

func WithLogger

func WithLogger(logger log.Logger) KamajiClientOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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