utils

package
v0.0.0-...-cc682f1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(c client.Client, ctx context.Context, obj runtime.Object) error

func GetCSVSpecVersion

func GetCSVSpecVersion(c client.Client, cok client.ObjectKey) (string, error)

GetCSVSpecVersion retrieves the version of the serverless CSV associated with the input CSV name.

func GetInstalledCSVName

func GetInstalledCSVName(c client.Client, cok client.ObjectKey) (string, error)

GetInstalledCSVName retrieves the name of the installed CSV from the subscription.

func UnstructuredGet

func UnstructuredGet(c client.Client, gvk schema.GroupVersionKind, key client.ObjectKey, obj runtime.Object, reqLogger logr.Logger) error

Helps retrieve objects outside of the operator's namespace using a controller-runtime client.

func Update

func Update(c client.Client, ctx context.Context, obj runtime.Object) error

Wrapper around the controller-runtime client update method to allow create and update to share the same signature

func ValidateGovernanceStackPolicy

func ValidateGovernanceStackPolicy(kab *kabanerov1alpha2.Kabanero) (bool, string, error)

Validates that the stack policy configured in the kabanero CR instance yaml is one of the allowed values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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