helm

package
v0.30.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Psql17AirbyteTag is the image tag for PostgreSQL 17 compatibility
	Psql17AirbyteTag = "1.7.0-17"
)

Variables

This section is empty.

Functions

func BuildAirbyteValues

func BuildAirbyteValues(ctx context.Context, valuesOpts ValuesOpts, chartVersion string) (string, error)

BuildAirbyteValues generates a values yaml string for the Airbyte Helm chart based on the chart version. It delegates to BuildAirbyteValuesV1 for v1 charts and BuildAirbyteValuesV2 for v2+ charts.

func BuildNginxValues

func BuildNginxValues(port int) (string, error)

func ChartEqualsOrHigherVersion added in v0.30.3

func ChartEqualsOrHigherVersion(v string, threshold string) bool

ChartEqualsOrHigherVersion returns true if the chart version is equals or higher than threshold

func ChartIsV1Dot8Plus added in v0.30.3

func ChartIsV1Dot8Plus(v string) bool

ChartIsV1Dot8Plus returns true if the chart version is v1.8.0 or higher

func ChartIsV2Plus added in v0.30.0

func ChartIsV2Plus(v string) bool

ChartIsV2Plus returns true if the chart version is v2.0.0 or higher

func ClientOptions

func ClientOptions(namespace string) *goHelm.Options

func FindImagesFromChart added in v0.30.0

func FindImagesFromChart(client goHelm.Client, valuesYaml, chartName, chartVersion string) ([]string, error)

func GetLatestAirbyteChartUrlFromRepoIndex added in v0.30.0

func GetLatestAirbyteChartUrlFromRepoIndex(repoName, repoUrl string) (string, string, error)

GetLatestAirbyteChartUrlFromRepoIndex fetches the latest stable Airbyte Helm chart URL and version from the given Helm repository index. Returns the chart download URL, the chart version, and an error if any. Only stable (non-prerelease) versions are considered.

func GetMetadataForRef added in v0.30.0

func GetMetadataForRef(client goHelm.Client, chartRef string) (*chart.Metadata, error)

GetMetadataForRef returns the chart metadata for a local path or chart reference using the provided Helm client.

func GetMetadataForURL added in v0.30.0

func GetMetadataForURL(url string) (*chart.Metadata, error)

GetMetadataForURL fetches a remote chart archive (.tgz) from the given URL and returns its chart metadata.

func New

func New(kubecfg, kubectx, namespace string) (goHelm.Client, error)

New returns the default helm client

Types

type ChartResolver added in v0.30.0

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

ChartResolver handles resolution of Airbyte chart references from v1/v2 repositories, local paths, and URLs

func NewChartResolver added in v0.30.0

func NewChartResolver(client goHelm.Client) *ChartResolver

NewChartResolver creates a resolver with default Airbyte v1/v2 repository URLs

func NewChartResolverWithURLs added in v0.30.0

func NewChartResolverWithURLs(client goHelm.Client, v1URL, v2URL string) *ChartResolver

NewChartResolverWithURLs creates a resolver with custom v1/v2 repository URLs

func (*ChartResolver) ResolveChartReference added in v0.30.0

func (r *ChartResolver) ResolveChartReference(chart, version string) (string, string, error)

ResolveChartReference resolves an Airbyte chart reference to its full URL/path and version. For empty chart+version, returns latest v2 chart. For version-only, uses v1/v2 repo based on base version (strips pre-release suffix for repo selection). For URLs and local paths, returns as-is with version from chart metadata.

type ValuesOpts

type ValuesOpts struct {
	ValuesFile      string
	LowResourceMode bool
	InsecureCookies bool
	TelemetryUser   string
	ImagePullSecret string
	DisableAuth     bool
	LocalStorage    bool
	EnablePsql17    bool
	Port            int
}

ValuesOpts contains configuration options for building Airbyte Helm values.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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