helm

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultChartRef = "oci://ghcr.io/lexfrei/charts/cloudflare-tunnel"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudflaredValues

type CloudflaredValues struct {
	TunnelToken  string
	Protocol     string
	ReplicaCount int
	Sidecar      *SidecarConfig
}

CloudflaredValues holds configuration for cloudflare-tunnel Helm chart.

func (*CloudflaredValues) BuildValues

func (v *CloudflaredValues) BuildValues() map[string]any

BuildValues converts CloudflaredValues to Helm values map.

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager() (*Manager, error)

func (*Manager) GetActionConfig

func (m *Manager) GetActionConfig(namespace string) (*action.Configuration, error)

func (*Manager) GetLatestVersion

func (m *Manager) GetLatestVersion(_ context.Context, chartRef string) (string, error)

func (*Manager) GetRelease

func (m *Manager) GetRelease(cfg *action.Configuration, releaseName string) (*release.Release, error)

func (*Manager) Install

func (m *Manager) Install(
	ctx context.Context,
	cfg *action.Configuration,
	releaseName, namespace string,
	loadedChart *chart.Chart,
	values map[string]any,
) (*release.Release, error)

func (*Manager) LoadChart

func (m *Manager) LoadChart(_ context.Context, chartRef, version string) (*chart.Chart, error)

func (*Manager) ReleaseExists

func (m *Manager) ReleaseExists(cfg *action.Configuration, releaseName string) bool

func (*Manager) Uninstall

func (m *Manager) Uninstall(cfg *action.Configuration, releaseName string) error

func (*Manager) Upgrade

func (m *Manager) Upgrade(
	ctx context.Context,
	cfg *action.Configuration,
	releaseName string,
	loadedChart *chart.Chart,
	values map[string]any,
) (*release.Release, error)

type SidecarConfig

type SidecarConfig struct {
	ConfigSecretName string
	InterfaceName    string // AWG interface name (derived from config file name, e.g., "cftunnel" for cftunnel.conf)
}

SidecarConfig holds AWG sidecar configuration.

Jump to

Keyboard shortcuts

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