Documentation ¶
Index ¶
- Variables
- func AreAllCRDInstalled(ctx context.Context, c client.Client) (bool, error)
- func InstallCamelK(ctx context.Context, c client.Client, namespace string, ...) error
- func InstallInstanceViewerRole(ctx context.Context, c client.Client, namespace string, ...) error
- func InstallKnative(ctx context.Context, c client.Client, namespace string, ...) error
- func InstallServiceMonitors(ctx context.Context, c client.Client, namespace string, ...) error
- func InstallStrimzi(ctx context.Context, c client.Client, namespace string, ...) error
- func InstallViewerServiceAccountRolesCamelK(ctx context.Context, c client.Client, namespace string) error
- func InstallViewerServiceAccountRolesKnative(ctx context.Context, c client.Client, namespace string) error
- func InstallViewerServiceAccountRolesKubernetes(ctx context.Context, c client.Client, namespace string) error
- func InstallViewerServiceAccountRolesOpenShift(ctx context.Context, c client.Client, namespace string) error
- func InstallViewerServiceAccountRolesStrimzi(ctx context.Context, c client.Client, namespace string) error
- func IsCRDInstalled(ctx context.Context, c client.Client, kind string, version string) (bool, error)
- func OpenShiftConsoleDownloadLink(ctx context.Context, c client.Client) error
- func Operator(ctx context.Context, c client.Client, cfg OperatorConfiguration, force bool) error
- func OperatorOrCollect(ctx context.Context, c client.Client, cfg OperatorConfiguration, ...) error
- func OperatorStartupOptionalTools(ctx context.Context, c client.Client, log logr.Logger)
- func Resource(ctx context.Context, c client.Client, namespace string, force bool, ...) error
- func ResourceOrCollect(ctx context.Context, c client.Client, namespace string, ...) error
- func Resources(ctx context.Context, c client.Client, namespace string, force bool, ...) error
- func ResourcesOrCollect(ctx context.Context, c client.Client, namespace string, ...) error
- func RuntimeObject(ctx context.Context, c client.Client, namespace string, force bool, ...) error
- func RuntimeObjectOrCollect(ctx context.Context, c client.Client, namespace string, ...) error
- func SetupClusterWideResourcesOrCollect(ctx context.Context, clientProvider client.Provider, ...) error
- func ViewerServiceAccountRoles(ctx context.Context, c client.Client, namespace string) error
- func WaitForAllCRDInstallation(ctx context.Context, clientProvider client.Provider, timeout time.Duration) error
- type OperatorConfiguration
- type ResourceCustomizer
Constants ¶
This section is empty.
Variables ¶
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
var IdentityResourceCustomizer = func(object ctrl.Object) ctrl.Object {
return object
}
IdentityResourceCustomizer is a ResourceCustomizer that does nothing
Functions ¶
func AreAllCRDInstalled ¶
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 InstallViewerServiceAccountRolesKnative ¶ added in v0.4.0
func InstallViewerServiceAccountRolesKubernetes ¶ added in v0.4.0
func InstallViewerServiceAccountRolesOpenShift ¶ added in v0.4.0
func InstallViewerServiceAccountRolesStrimzi ¶ added in v0.6.0
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 ¶ added in v0.1.0
OpenShiftConsoleDownloadLink installs the download link for the OpenShift console
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
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 ¶
ViewerServiceAccountRoles installs the viewer service account and related roles in the given namespace