cloudnativepg

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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