Documentation
¶
Index ¶
- Constants
- func BuildAirbyteValues(ctx context.Context, valuesOpts ValuesOpts, chartVersion string) (string, error)
- func BuildNginxValues(port int) (string, error)
- func ChartEqualsOrHigherVersion(v string, threshold string) bool
- func ChartIsV1Dot8Plus(v string) bool
- func ChartIsV2Plus(v string) bool
- func ClientOptions(namespace string) *goHelm.Options
- func FindImagesFromChart(client goHelm.Client, valuesYaml, chartName, chartVersion string) ([]string, error)
- func GetLatestAirbyteChartUrlFromRepoIndex(repoName, repoUrl string) (string, string, error)
- func GetMetadataForRef(client goHelm.Client, chartRef string) (*chart.Metadata, error)
- func GetMetadataForURL(url string) (*chart.Metadata, error)
- func New(kubecfg, kubectx, namespace string) (goHelm.Client, error)
- type ChartResolver
- type ValuesOpts
Constants ¶
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 ChartEqualsOrHigherVersion ¶ added in v0.30.3
ChartEqualsOrHigherVersion returns true if the chart version is equals or higher than threshold
func ChartIsV1Dot8Plus ¶ added in v0.30.3
ChartIsV1Dot8Plus returns true if the chart version is v1.8.0 or higher
func ChartIsV2Plus ¶ added in v0.30.0
ChartIsV2Plus returns true if the chart version is v2.0.0 or higher
func ClientOptions ¶
func FindImagesFromChart ¶ added in v0.30.0
func GetLatestAirbyteChartUrlFromRepoIndex ¶ added in v0.30.0
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
GetMetadataForRef returns the chart metadata for a local path or chart reference using the provided Helm client.
func GetMetadataForURL ¶ added in v0.30.0
GetMetadataForURL fetches a remote chart archive (.tgz) from the given URL and returns its chart metadata.
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.