utility

package
v0.88.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArgocdAppsFile = "/application-values.yaml"
)

Variables

This section is empty.

Functions

func DeployPgbouncerManifests added in v0.87.0

func DeployPgbouncerManifests(k8sClient *k8s.KubeClient, logger log.FieldLogger) error

DeployManifests deploy pgbouncer manifests if they don't exist: pgbouncer-configmap and pgbouncer-userlist-secret

func NewUtilityGroupHandle

func NewUtilityGroupHandle(
	allowCIDRRangeList []string,
	kubeconfigPath string,
	tempDir string,
	cluster *model.Cluster,
	awsClient aws.AWS,
	gitClient git.Client,
	argocdClient argocd.Client,
	parentLogger log.FieldLogger,
) (*utilityGroup, error)

func ProvisionUtilityArgocd added in v0.84.0

func ProvisionUtilityArgocd(utilityName, tempDir, clusterID string, allowCIDRRangeList []string, awsClient aws.AWS,
	gitClient git.Client, argocdClient argocd.Client, logger log.FieldLogger) error

Types

type HelmListOutput

type HelmListOutput []helmReleaseJSON

HelmListOutput is a struct for holding the unmarshaled representation of the output from helm list --output json

type Utility

type Utility interface {
	// CreateOrUpgrade is responsible for deploying the utility in the
	// cluster and then for updating it if it already exists when called
	CreateOrUpgrade() error

	// Destroy can be used if special care must be taken for deleting a
	// utility from a cluster
	Destroy() error

	// Migrate can be used if special care must be taken for migrating a
	// utility from a cluster
	Migrate() error

	// ActualVersion returns the utility's last reported actual version,
	// at the time of Create or Upgrade. This version will remain valid
	// unless something interacts with the cluster out of band, at which
	// time it will be invalid until Upgrade is called again
	ActualVersion() *model.HelmUtilityVersion

	// DesiredVersion returns the utility's target version, which has been
	// requested, but may not yet have been reconciled
	DesiredVersion() *model.HelmUtilityVersion

	// Name returns the canonical string-version name for the utility,
	// used throughout the application
	Name() string

	// ValuesPath returns the location where the values file(s) are
	// stored for this utility
	ValuesPath() string
}

A Utility is a service that runs one per cluster but is not part of k8s itself, nor is it part of a ClusterInstallation or an Installation

Jump to

Keyboard shortcuts

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