kube

package
v0.0.0-...-a7576c3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintClientErrorAndExit

func PrintClientErrorAndExit(err error)

Types

type Client

type Client struct {
	kubernetes.Interface
	Dynamic       *dynamic.DynamicClient
	ApiExtensions apiextensionsclient.Interface
	OdigosClient  v1alpha1.OdigosV1alpha1Interface
}

func CreateClient

func CreateClient(cmd *cobra.Command) (*Client, error)

func (*Client) ApplyResource

func (c *Client) ApplyResource(ctx context.Context, configVersion int, obj client.Object) error

func (*Client) ApplyResources

func (c *Client) ApplyResources(ctx context.Context, configVersion int, objs []client.Object) error

func (*Client) DeleteOldOdigosSystemObjects

func (c *Client) DeleteOldOdigosSystemObjects(ctx context.Context, resourceAndNamespace ResourceAndNs, configVersion int) error

type ResourceAndNs

type ResourceAndNs struct {
	Resource  schema.GroupVersionResource
	Namespace string
}

func GetManagedResources

func GetManagedResources(odigosNamespace string) []ResourceAndNs

Jump to

Keyboard shortcuts

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