Documentation
¶
Index ¶
- Constants
- func BuildDependencies(chartPath string, r client.ChartsReader, sourceRepo, targetRepo *api.Repo) error
- func ChangeReferences(chartPath, name, version string, source *api.Source, target *api.Target) error
- func GetChartDependencies(filepath string, name string) ([]*chart.Dependency, error)
- func GetChartLock(chartPath string) (*chart.Lock, error)
- func GetLockAPIVersion(chartPath string) (string, error)
Constants ¶
View Source
const ( APIV1 string = "v1" APIV2 string = "v2" ChartFilename string = "Chart.yaml" ChartLockFilename string = "Chart.lock" ValuesFilename string = "values.yaml" ValuesProductionFilename string = "values-production.yaml" RequirementsFilename string = "requirements.yaml" RequirementsLockFilename string = "requirements.lock" ReadmeFilename string = "README.md" )
Constants
Variables ¶
This section is empty.
Functions ¶
func BuildDependencies ¶
func BuildDependencies(chartPath string, r client.ChartsReader, sourceRepo, targetRepo *api.Repo) error
BuildDependencies updates the chart dependencies and their repository references in the provided chart path
It reads the lock file to download the versions from the target chart repository (it assumes all charts are stored in a single repo).
func ChangeReferences ¶
func ChangeReferences(chartPath, name, version string, source *api.Source, target *api.Target) error
ChangeReferences changes the references of a chart tgz file from the source repo to the target repo
func GetChartDependencies ¶
func GetChartDependencies(filepath string, name string) ([]*chart.Dependency, error)
GetChartDependencies returns the chart chart.Dependencies from a chart in tgz format.
func GetChartLock ¶
GetChartLock returns the chart.Lock from an uncompressed chart
func GetLockAPIVersion ¶
GetLockAPIVersion returns the apiVersion field of a chart's lock file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.