install

package
v0.19.1 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: 33 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 CamelKResources added in v0.11.0

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

func InstanceViewerRole added in v0.11.0

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

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

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 KnativeResources added in v0.11.0

func KnativeResources(ctx context.Context, c client.Client, namespace string, customizer ResourceCustomizer, collection *kubernetes.Collection, force bool) error
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, cmd *cobra.Command, c client.Client, cfg OperatorConfiguration, force bool) error

Operator installs the operator resources in the given namespace.

func OperatorOrCollect

func OperatorOrCollect(ctx context.Context, cmd *cobra.Command, 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 logutil.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 StrimziResources added in v0.11.0

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

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 ViewerServiceAccountRolesCamelK added in v0.11.0

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

func ViewerServiceAccountRolesKnative added in v0.11.0

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

func ViewerServiceAccountRolesKubernetes added in v0.11.0

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

func ViewerServiceAccountRolesOpenShift added in v0.11.0

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

func ViewerServiceAccountRolesStrimzi added in v0.11.0

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

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
	EnvVars               []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