k8s

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package k8s provides a thin wrapper around the Helm CLI for managing nSelf Helm chart deployments (B50).

Status: PLANNED — deferred. Requires UD-12 minor release approval. The nSelf Helm chart lives in charts/nself/ at the repo root.

Index

Constants

View Source
const ChartRepo = "https://charts.nself.org"

ChartRepo is the Helm repository URL for the nSelf chart.

View Source
const HelmReleaseName = "nself"

HelmReleaseName is the default Helm release name used by nself k8s install.

Variables

View Source
var ErrHelmNotFound = fmt.Errorf("k8s: helm binary not found; install from https://helm.sh")

ErrHelmNotFound is returned when the helm binary is not in PATH.

Functions

func Install

func Install(ctx context.Context, opts InstallOptions) error

Install runs `helm install` for the nSelf chart.

func RepoAdd

func RepoAdd(ctx context.Context) error

RepoAdd adds the nSelf Helm repository.

func Status

func Status(ctx context.Context, releaseName, kubeconfig string) (string, error)

Status returns the Helm release status summary.

func Upgrade

func Upgrade(ctx context.Context, opts InstallOptions) error

Upgrade runs `helm upgrade` for the nSelf chart with rolling update semantics.

Types

type InstallOptions

type InstallOptions struct {
	ReleaseName string
	Domain      string
	Kubeconfig  string
	LicenseKey  string
	Plugins     []string
}

InstallOptions holds parameters for helm install/upgrade.

Jump to

Keyboard shortcuts

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