helm

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NumPatchDigits = 2
)

Variables

View Source
var (
	PatchNumMultiplier = uint64(math.Pow10(2))
	MaxPatchNum        = PatchNumMultiplier - 1
)

Functions

func ArchiveCRDs added in v0.2.3

func ArchiveCRDs(fs billy.Filesystem, srcHelmChartPath, srcCRDsDir, dstHelmChartPath, destCRDsDir string) error

ArchiveCRDs bundles, compresses and saves the CRD files from the source to the destination

func ConvertToHelmChart added in v0.3.0

func ConvertToHelmChart(fs billy.Filesystem, dirPath string) error

ConvertToHelmChart converts a given path to a Helm chart. It does so by moving all YAML files to templates and creating a dummy Chart.yaml and values.yaml

func CopyCRDsFromChart

func CopyCRDsFromChart(fs billy.Filesystem, srcHelmChartPath, srcCRDsDir, dstHelmChartPath, destCRDsDir string) error

CopyCRDsFromChart copies the CRDs from a chart to another chart

func CreateOrUpdateHelmIndex

func CreateOrUpdateHelmIndex(rootFs billy.Filesystem) error

CreateOrUpdateHelmIndex either creates or updates the index.yaml for the repository this package is within

func DeleteCRDsFromChart

func DeleteCRDsFromChart(fs billy.Filesystem, helmChartPath string) error

DeleteCRDsFromChart deletes all the CRDs loaded by a chart

func ExportHelmChart

func ExportHelmChart(rootFs, fs billy.Filesystem, helmChartPath string, packageVersion *int, version *semver.Version, upstreamChartVersion string, omitBuildMetadata bool) error

ExportHelmChart creates a Helm chart archive and an unarchived Helm chart at RepositoryAssetDirpath and RepositoryChartDirPath helmChartPath is a relative path (rooted at the package level) that contains the chart.

func GenerateArchive added in v0.3.0

func GenerateArchive(rootFs, fs billy.Filesystem, helmChartPath, chartAssetsDirpath string, chartVersion *string) (string, error)

GenerateArchive produces a Helm chart archive. If an archive exists at that path already, it does a deep check of the internal contents of the archive and only updates the archive if something within it has been changed.

func GetHelmMetadataVersion added in v0.2.0

func GetHelmMetadataVersion(fs billy.Filesystem, mainHelmChartPath string) (string, error)

GetHelmMetadataVersion gets the version of a Helm chart as defined in its Chart.yaml

func StandardizeChartYaml added in v0.3.0

func StandardizeChartYaml(fs billy.Filesystem, dirPath string) error

StandardizeChartYaml marshalls and unmarshalls the Chart.yaml to ensure that it is ordered as expected

func UpdateHelmMetadataWithName

func UpdateHelmMetadataWithName(fs billy.Filesystem, mainHelmChartPath string, name string) error

UpdateHelmMetadataWithName updates the name of the chart in the metadata

func UpdateIndex added in v0.3.0

func UpdateIndex(original, new *helmRepo.IndexFile) (*helmRepo.IndexFile, bool)

UpdateIndex updates the original index with the new contents

Types

This section is empty.

Jump to

Keyboard shortcuts

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