helm

package
v0.0.0-...-0a9a495 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HelmLog = ctrl.Log.WithName("HelmLog")

Functions

func GetHelmDest

func GetHelmDest(d *helmDriver, r *releasetypes.ReleaseConfig, ReleaseImageURI, assetName string) (string, error)

func GetPackagesImageTags

func GetPackagesImageTags(packagesArtifacts map[string][]releasetypes.Artifact) (map[string]string, error)

func HasChart

func HasChart(helmdir string) (string, error)

HasChart checks for the existance of the Chart.yaml within the helm directory.

func HasRequires

func HasRequires(helmdir string) (string, error)

HasRequires checks for the existance of the requires.yaml within the helm directory.

func ModifyAndPushChartYaml

func ModifyAndPushChartYaml(i releasetypes.ImageArtifact, r *releasetypes.ReleaseConfig, d *helmDriver, helmDest string, eksaArtifacts map[string][]releasetypes.Artifact, shaMap map[string]anywherev1alpha1.Image) error

func NewHelm

func NewHelm() (*helmDriver, error)

func OverWriteChartValuesImageSha

func OverWriteChartValuesImageSha(filename string, shaMap map[string]anywherev1alpha1.Image) error

func OverWriteChartValuesImageTag

func OverWriteChartValuesImageTag(filename string, tagMap map[string]string) error

func OverwriteChartYaml

func OverwriteChartYaml(filename string, helmChart *chart.Metadata) error

func PackageHelmChart

func PackageHelmChart(dir string) (string, error)

PackageHelmChart will package a dir into a helm chart.

func PushHelmChart

func PushHelmChart(packaged, URI string) error

PushHelmChart will take in packaged helm chart and push to a remote URI.

func UnTarHelmChart

func UnTarHelmChart(chartRef, chartPath, dest string) error

UnTarHelmChart will attempt to move the helm chart out of the helm cache, by untaring it to the pwd and creating the filesystem to unpack it into.

func ValidateHelmChart

func ValidateHelmChart(fileName string) (*chart.Metadata, error)

ValidateHelmChart runs the parse file into struct function, and validations.

Types

type Configuration

type Configuration struct {
	Name     string `json:"name,omitempty"`
	Required bool   `json:"required,omitempty"`
	Default  string `json:"default,omitempty"`
}

type DockerAuth

type DockerAuth struct {
	Auths map[string]DockerAuthRegistry `json:"auths,omitempty"`
}

type DockerAuthFile

type DockerAuthFile struct {
	Authfile string `json:"authfile"`
}

type DockerAuthRegistry

type DockerAuthRegistry struct {
	Auth string `json:"auth"`
}

type Image

type Image struct {
	Repository string `json:"repository,omitempty"`
	Tag        string `json:"tag,omitempty"`
	Digest     string `json:"digest,omitempty"`
}

type Requires

type Requires struct {
	Kind     string            `json:"kind,omitempty"`
	Metadata metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec     RequiresSpec      `json:"spec,omitempty"`
}

func GetChartImageTags

func GetChartImageTags(d *helmDriver, helmDest string) (*Requires, error)

func ValidateHelmRequires

func ValidateHelmRequires(fileName string) (*Requires, error)

ValidateHelmRequires runs the parse file into struct function, and validations.

type RequiresSpec

type RequiresSpec struct {
	Images         []Image         `json:"images,omitempty"`
	Configurations []Configuration `json:"configurations,omitempty"`
	Schema         string          `json:"schema,omitempty"`
}

Jump to

Keyboard shortcuts

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