cloudnativepg

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package cloudnativepg provides utilities for setting up and managing CloudNativePG environments for end-to-end testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(ctx context.Context, cl client.Client, opts ...InstallOption) error

Install installs CloudNativePG using kubectl.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL