install

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// YaksCLIDownloadName --
	YaksCLIDownloadName = "yaks-cli"
	// YaksCLIDownloadDisplayName is the name as seen in the download page
	YaksCLIDownloadDisplayName = "yaks - YAKS Command Line Interface"
	// YaksCLIDownloadDescription is the description as seen in the download page
	YaksCLIDownloadDescription = "YAKS is a integration testing tool to enable Cloud Native BDD testing.\n\n" +
		"The `yaks` binary can be used to both configure the cluster and run tests. " +
		"Once you've downloaded the `yaks` binary, log into the cluster using the `oc` client tool and start using the `yaks` CLI.\n\n" +
		"You can run `yaks help` to list the available commands for more information."

	// YaksCLIDownloadURLTemplate is the download template with 3 missing parameters (version, version, os)
	YaksCLIDownloadURLTemplate = "https://github.com/citrusframework/yaks/releases/download/v%s/yaks-client-%s-%s-64bit.tar.gz"
)

The following variables may be overridden at build time

View Source
var IdentityResourceCustomizer = func(object ctrl.Object) ctrl.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 InstallCamelK added in v0.4.0

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

func InstallInstanceViewerRole added in v0.4.0

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

installs the role that allows any user ro access to instances in all namespaces

func InstallKnative added in v0.4.0

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

func InstallServiceMonitors added in v0.4.0

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

func InstallStrimzi added in v0.6.0

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

func InstallViewerServiceAccountRolesCamelK added in v0.4.0

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

func InstallViewerServiceAccountRolesKnative added in v0.4.0

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

func InstallViewerServiceAccountRolesKubernetes added in v0.4.0

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

func InstallViewerServiceAccountRolesOpenShift added in v0.4.0

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

func InstallViewerServiceAccountRolesStrimzi added in v0.6.0

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

func IsCRDInstalled

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

IsCRDInstalled check if the given CRD kind is installed

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

OpenShiftConsoleDownloadLink installs the download link for the OpenShift console

func Operator

func Operator(ctx context.Context, c client.Client, cfg OperatorConfiguration, force bool) error

Operator installs the operator resources in the given namespace

func OperatorOrCollect

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

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

func OperatorStartupOptionalTools added in v0.1.0

func OperatorStartupOptionalTools(ctx context.Context, c client.Client, log logr.Logger)

OperatorStartupOptionalTools tries to install optional tools at operator startup and warns if something goes wrong

func Resource

func Resource(ctx context.Context, c client.Client, namespace string, force bool, 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,
	force bool, customizer ResourceCustomizer, name string) error

ResourceOrCollect --

func Resources

func Resources(ctx context.Context, c client.Client, namespace string, force bool, 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,
	force bool, customizer ResourceCustomizer, names ...string) error

ResourcesOrCollect --

func RuntimeObject

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

RuntimeObject installs a single runtime object

func RuntimeObjectOrCollect

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

RuntimeObjectOrCollect --

func SetupClusterWideResourcesOrCollect added in v0.1.0

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 {
	CustomImage           string
	CustomImagePullPolicy string
	Namespace             string
	Global                bool
	ClusterType           string
}

OperatorConfiguration --

type ResourceCustomizer

type ResourceCustomizer func(object ctrl.Object) ctrl.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