k8s

package
v0.0.0-...-036f9fd Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(client *client.Client, obj runtime.Object) error

Apply creates k8s object if not found and updates if found

func Create

func Create(client *client.Client, obj runtime.Object) error

Create creates the given k8s object in the k8s cluster

func CreateIfNotExists

func CreateIfNotExists(client *client.Client, obj runtime.Object) error

CreateIfNotExists creates the given k8s object if the object is not exists in the k8s cluster

func Get

func Get(client *client.Client, namespacedName types.NamespacedName, obj runtime.Object) error

Get populates the given k8s object with k8s cluster object values in the given namespacedName

func HandleDeletion

func HandleDeletion(api *wso2v1alpha2.API, ctx context.Context, requestInfo *common.RequestInfo, finalizer string,
	handle func(*wso2v1alpha2.API) error) (deleted, finalizerUpdated bool,
	err error)

HandleDeletion handles resource deletion by setting finalizers and executing handle function before deletion

func NewConfMap

func NewConfMap() *corev1.ConfigMap

func NewSecret

func NewSecret() *corev1.Secret

func NewSecretWith

func NewSecretWith(namespacedName types.NamespacedName, data *map[string][]byte, stringData *map[string]string, owner *[]metav1.OwnerReference) *corev1.Secret

NewSecretWith returns a new secret object with given namespacedName and data map

Types

This section is empty.

Jump to

Keyboard shortcuts

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