install

package
v0.0.52 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IdentityResourceCustomizer = func(object runtime.Object) runtime.Object {
	return object
}

IdentityResourceCustomizer is a ResourceCustomizer that does nothing

Functions

func AreAllCRDInstalled

func AreAllCRDInstalled(ctx context.Context, c client.Client) (bool, error)

AreAllCRDInstalled check if all the required CRDs are installed

func IsCRDInstalled

func IsCRDInstalled(ctx context.Context, c client.Client, kind string) (bool, error)

IsCRDInstalled check if the given CRD kind is installed

func IsClusterRoleInstalled

func IsClusterRoleInstalled(ctx context.Context, c client.Client) (bool, error)

IsClusterRoleInstalled check if cluster role camel-k:edit is installed

func Operator

Operator installs the operator resources in the given namespace

func OperatorOrCollect

func OperatorOrCollect(ctx context.Context, c client.Client, cfg OperatorConfiguration, collection *kubernetes.Collection) error

OperatorOrCollect installs the operator resources or adds them to the collector if present

func Resource

func Resource(ctx context.Context, c client.Client, namespace string, customizer ResourceCustomizer, name string) error

Resource installs a single named resource from the project resource directory

func ResourceOrCollect

func ResourceOrCollect(ctx context.Context, c client.Client, namespace string, collection *kubernetes.Collection, customizer ResourceCustomizer, name string) error

ResourceOrCollect --

func Resources

func Resources(ctx context.Context, c client.Client, namespace string, customizer ResourceCustomizer, names ...string) error

Resources installs named resources from the project resource directory

func ResourcesOrCollect

func ResourcesOrCollect(ctx context.Context, c client.Client, namespace string, collection *kubernetes.Collection, customizer ResourceCustomizer, names ...string) error

ResourcesOrCollect --

func RuntimeObject

func RuntimeObject(ctx context.Context, c client.Client, namespace string, obj runtime.Object) error

RuntimeObject installs a single runtime object

func RuntimeObjectOrCollect

func RuntimeObjectOrCollect(ctx context.Context, c client.Client, namespace string, collection *kubernetes.Collection, obj runtime.Object) error

RuntimeObjectOrCollect --

func SetupClusterwideResources

func SetupClusterwideResources(ctx context.Context, clientProvider client.Provider) error

SetupClusterwideResources --

func SetupClusterwideResourcesOrCollect

func SetupClusterwideResourcesOrCollect(ctx context.Context, clientProvider client.Provider, collection *kubernetes.Collection) error

SetupClusterwideResourcesOrCollect --

func ViewerServiceAccountRoles

func ViewerServiceAccountRoles(ctx context.Context, c client.Client, namespace string) error

ViewerServiceAccountRoles installs the viewer service account and related roles in the given namespace

func WaitForAllCRDInstallation

func WaitForAllCRDInstallation(ctx context.Context, clientProvider client.Provider, timeout time.Duration) error

WaitForAllCRDInstallation waits until all CRDs are installed

Types

type OperatorConfiguration

type OperatorConfiguration struct {
	Namespace string
}

OperatorConfiguration --

type ResourceCustomizer

type ResourceCustomizer func(object runtime.Object) runtime.Object

ResourceCustomizer can be used to inject code that changes the objects before they are created

Jump to

Keyboard shortcuts

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