Documentation ¶
Index ¶
- Variables
- func AreAllCRDInstalled(ctx context.Context, c client.Client) (bool, error)
- func IsCRDInstalled(ctx context.Context, c client.Client, kind string) (bool, error)
- func IsClusterRoleInstalled(ctx context.Context, c client.Client) (bool, error)
- func Operator(ctx context.Context, c client.Client, cfg OperatorConfiguration) error
- func OperatorOrCollect(ctx context.Context, c client.Client, cfg OperatorConfiguration, ...) error
- func Resource(ctx context.Context, c client.Client, namespace string, ...) error
- func ResourceOrCollect(ctx context.Context, c client.Client, namespace string, ...) error
- func Resources(ctx context.Context, c client.Client, namespace string, ...) error
- func ResourcesOrCollect(ctx context.Context, c client.Client, namespace string, ...) error
- func RuntimeObject(ctx context.Context, c client.Client, namespace string, obj runtime.Object) error
- func RuntimeObjectOrCollect(ctx context.Context, c client.Client, namespace string, ...) error
- func SetupClusterwideResources(ctx context.Context, clientProvider client.Provider) 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 IdentityResourceCustomizer = func(object runtime.Object) runtime.Object {
return object
}
IdentityResourceCustomizer is a ResourceCustomizer that does nothing
Functions ¶
func AreAllCRDInstalled ¶
AreAllCRDInstalled check if all the required CRDs are installed
func IsCRDInstalled ¶
IsCRDInstalled check if the given CRD kind is installed
func IsClusterRoleInstalled ¶
IsClusterRoleInstalled check if cluster role camel-k:edit is installed
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 ¶
SetupClusterwideResources --
func SetupClusterwideResourcesOrCollect ¶
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
Types ¶
type OperatorConfiguration ¶
type OperatorConfiguration struct {
Namespace string
}
OperatorConfiguration --