Documentation ¶
Overview ¶
Package cloudnativepg provides utilities for setting up and managing CloudNativePG environments for end-to-end testing.
Index ¶
- func Install(ctx context.Context, cl client.Client, opts ...InstallOption) error
- type InstallCloudNativePGOptions
- type InstallOption
- func WithIgnoreExistingResources(ignore bool) InstallOption
- func WithImageName(ref string) InstallOption
- func WithImageTag(tag string) InstallOption
- func WithKustomizationRef(ref string) InstallOption
- func WithKustomizationResourceURL(url string) InstallOption
- func WithKustomizationTimeout(timeout string) InstallOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InstallCloudNativePGOptions ¶
type InstallCloudNativePGOptions struct { ImageName string ImageTag string KustomizationResourceURL string KustomizationRef string KustomizationTimeout string IgnoreExistResources bool }
InstallCloudNativePGOptions contains the options for installing CloudNativePG.
type InstallOption ¶
type InstallOption func(*InstallCloudNativePGOptions)
InstallOption is a function that sets up an option for installing CloudNativePG.
func WithIgnoreExistingResources ¶
func WithIgnoreExistingResources(ignore bool) InstallOption
WithIgnoreExistingResources sets whether to ignore existing resources.
func WithImageName ¶
func WithImageName(ref string) InstallOption
WithImageName sets the name for the CloudNativePG image.
func WithImageTag ¶
func WithImageTag(tag string) InstallOption
WithImageTag sets the tag for the CloudNativePG image.
func WithKustomizationRef ¶
func WithKustomizationRef(ref string) InstallOption
WithKustomizationRef sets the ref for the CloudNativePG kustomization.
func WithKustomizationResourceURL ¶
func WithKustomizationResourceURL(url string) InstallOption
WithKustomizationResourceURL sets the URL for the CloudNativePG kustomization.
func WithKustomizationTimeout ¶
func WithKustomizationTimeout(timeout string) InstallOption
WithKustomizationTimeout sets the timeout for the kustomization resources.