Help us shape the future of Go! Take the 2026 Go Developer Survey

perses

package
v1.153.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimeoutWaitForManagedResource = 2 * time.Minute

TimeoutWaitForManagedResource is the timeout used while waiting for the ManagedResources to become healthy or deleted.

Functions

This section is empty.

Types

type ExposureValues

type ExposureValues struct {
	// AuthSecretName is the name of the auth secret.
	AuthSecretName string
	// AuthSecretManaged indicates whether the auth secret is managed by the secrets manager (referenced by its base
	// name) or used verbatim.
	AuthSecretManaged bool
	// Host is the hostname under which the Perses instance should be exposed.
	Host string
	// IsGardenCluster specifies whether the cluster is the garden cluster.
	IsGardenCluster bool
	// IstioIngressGatewayLabels are the labels identifying the corresponding istio ingress gateway.
	IstioIngressGatewayLabels map[string]string
	// IstioIngressGatewayNamespace is the namespace of the corresponding istio ingress gateway. The Gateway,
	// VirtualService and DestinationRule are exported to this namespace only, and the TLS certificate is copied there.
	IstioIngressGatewayNamespace string
	// SecretsManager is the secrets manager used for generating the TLS certificate if no wildcard certificate is
	// provided.
	SecretsManager secretsmanager.Interface
	// SigningCA is the name of the CA that should be used to sign a self-signed server certificate. Only needed when
	// no wildcard certificate secret is provided.
	SigningCA string
	// WildcardCertSecretName is name of a secret containing the wildcard TLS certificate which is issued for the
	// ingress domain. If not provided, a self-signed server certificate will be created.
	WildcardCertSecretName *string
}

ExposureValues contains configuration for exposing this Perses instance via a VirtualService resource.

type Interface

type Interface interface {
	component.DeployWaiter
}

Interface contains functions for a Perses deployer.

func New

func New(
	client client.Client,
	namespace string,
	values Values,
) Interface

New creates a new instance of Interface for Perses.

type Values

type Values struct {
	// Image is the container image used for Perses.
	Image string
	// ClusterType is the type of the cluster.
	ClusterType component.ClusterType
	// Replicas is the number of replicas.
	Replicas int32
	// VPAEnabled states whether VerticalPodAutoscaler is enabled.
	VPAEnabled bool
	// IsGardenCluster specifies whether the cluster is a garden cluster.
	IsGardenCluster bool
	// ExternalExposure contains configuration for exposing this Perses instance via a VirtualService resource.
	ExternalExposure *ExposureValues
	// VictoriaLogsEnabled indicates whether VictoriaLogs is enabled as the logging backend.
	VictoriaLogsEnabled bool
	// OnlyDeployDatasourcesAndDashboards only leads to deployment of the PersesDatasource and PersesDashboard CRs.
	// This is relevant when the Perses instance is already deployed by another component (e.g., gardener-operator),
	// and the gardenlet wants to contribute seed-specific configuration.
	OnlyDeployDatasourcesAndDashboards bool
	// Dashboards is a map of PersesDashboard CRs to deploy, keyed by name.
	Dashboards map[string]persesv1alpha2.Dashboard
}

Values contains configuration values for the Perses resources.

Jump to

Keyboard shortcuts

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