Documentation ¶
Index ¶
- Constants
- Variables
- func ArchiveCRDs(fs billy.Filesystem, ...) error
- func ConvertToHelmChart(fs billy.Filesystem, dirPath string) error
- func CopyCRDsFromChart(fs billy.Filesystem, ...) error
- func CreateOrUpdateHelmIndex(rootFs billy.Filesystem) error
- func DeleteCRDsFromChart(fs billy.Filesystem, helmChartPath string) error
- func ExportHelmChart(rootFs, fs billy.Filesystem, helmChartPath string, packageVersion *int, ...) error
- func GenerateArchive(rootFs, fs billy.Filesystem, helmChartPath, chartAssetsDirpath string, ...) (string, error)
- func GetHelmMetadataVersion(fs billy.Filesystem, mainHelmChartPath string) (string, error)
- func StandardizeChartYaml(fs billy.Filesystem, dirPath string) error
- func UpdateHelmMetadataWithName(fs billy.Filesystem, mainHelmChartPath string, name string) error
- func UpdateIndex(original, new *helmRepo.IndexFile) (*helmRepo.IndexFile, bool)
Constants ¶
const (
NumPatchDigits = 2
)
Variables ¶
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
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 ¶
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
GetHelmMetadataVersion gets the version of a Helm chart as defined in its Chart.yaml
func StandardizeChartYaml ¶ added in v0.3.0
StandardizeChartYaml marshalls and unmarshalls the Chart.yaml to ensure that it is ordered as expected
func UpdateHelmMetadataWithName ¶
UpdateHelmMetadataWithName updates the name of the chart in the metadata
Types ¶
This section is empty.