Documentation
¶
Index ¶
Constants ¶
View Source
const OriginFile = "HelmOriginFile"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chart ¶
type Chart struct {
Chartfile *Chartfile
Pods []*v1.Pod
ReplicationControllers []*v1.ReplicationController
Services []*v1.Service
Namespaces []*v1.Namespace
Secrets []*v1.Secret
PersistentVolumes []*v1.PersistentVolume
Manifests []*manifest.Manifest
}
Chart represents a complete chart.
A chart consists of the following parts:
- Chart.yaml: In code, we refer to this as the Chartfile
- manifests/*.yaml: The Kubernetes manifests
On the Chart object, the manifests are sorted by type into a handful of recognized Kubernetes API v1 objects.
TODO: Investigate treating these as unversioned.
type Chartfile ¶
type Chartfile struct {
Name string `yaml:"name"`
Home string `yaml:"home"`
Version string `yaml:"version"`
Description string `yaml:"description"`
Maintainers []string `yaml:"maintainers,omitempty"`
Details string `yaml:"details,omitempty"`
Dependencies []*Dependency `yaml:"dependencies,omitempty"`
PreInstall map[string]string `yaml:"preinstall,omitempty"`
}
Chart describes a Helm Chart (e.g. Chart.yaml)
func LoadChartfile ¶
Load loads a Chart.yaml file into a *Chart.
type Dependency ¶
Dependency describes a specific dependency.
func (*Dependency) VersionOK ¶
func (d *Dependency) VersionOK(version string) bool
VersionOK returns true if the given version meets the constraints.
It returns false if the version string or constraint is unparsable or if the version does not meet the constraint.
Click to show internal directories.
Click to hide internal directories.