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 ¶
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) 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
Click to show internal directories.
Click to hide internal directories.