mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
2.7 KiB
74 lines
2.7 KiB
package chart
|
|
|
|
type Metadata_Engine int32
|
|
|
|
const (
|
|
Metadata_UNKNOWN Metadata_Engine = 0
|
|
Metadata_GOTPL Metadata_Engine = 1
|
|
)
|
|
|
|
var Metadata_Engine_name = map[int32]string{
|
|
0: "UNKNOWN",
|
|
1: "GOTPL",
|
|
}
|
|
var Metadata_Engine_value = map[string]int32{
|
|
"UNKNOWN": 0,
|
|
"GOTPL": 1,
|
|
}
|
|
|
|
func (x Metadata_Engine) String() string {
|
|
return Metadata_Engine_name[int32(x)]
|
|
}
|
|
|
|
// Maintainer describes a Chart maintainer.
|
|
type Maintainer struct {
|
|
// Name is a user name or organization name
|
|
Name string `json:"name,omitempty"`
|
|
// Email is an optional email address to contact the named maintainer
|
|
Email string `json:"email,omitempty"`
|
|
// Url is an optional URL to an address for the named maintainer
|
|
Url string `json:"url,omitempty"`
|
|
}
|
|
|
|
// Metadata for a Chart file. This models the structure of a Chart.yaml file.
|
|
//
|
|
// Spec: https://k8s.io/helm/blob/master/docs/design/chart_format.md#the-chart-file
|
|
type Metadata struct {
|
|
// The name of the chart
|
|
Name string `json:"name,omitempty"`
|
|
// The URL to a relevant project page, git repo, or contact person
|
|
Home string `json:"home,omitempty"`
|
|
// Source is the URL to the source code of this chart
|
|
Sources []string `json:"sources,omitempty"`
|
|
// A SemVer 2 conformant version string of the chart
|
|
Version string `json:"version,omitempty"`
|
|
// A one-sentence description of the chart
|
|
Description string `json:"description,omitempty"`
|
|
// A list of string keywords
|
|
Keywords []string `json:"keywords,omitempty"`
|
|
// A list of name and URL/email address combinations for the maintainer(s)
|
|
Maintainers []*Maintainer `json:"maintainers,omitempty"`
|
|
// The name of the template engine to use. Defaults to 'gotpl'.
|
|
Engine string `json:"engine,omitempty"`
|
|
// The URL to an icon file.
|
|
Icon string `json:"icon,omitempty"`
|
|
// The API Version of this chart.
|
|
ApiVersion string `json:"apiVersion,omitempty"`
|
|
// The condition to check to enable chart
|
|
Condition string `json:"condition,omitempty"`
|
|
// The tags to check to enable chart
|
|
Tags string `json:"tags,omitempty"`
|
|
// The version of the application enclosed inside of this chart.
|
|
AppVersion string `json:"appVersion,omitempty"`
|
|
// Whether or not this chart is deprecated
|
|
Deprecated bool `json:"deprecated,omitempty"`
|
|
// TillerVersion is a SemVer constraints on what version of Tiller is required.
|
|
// See SemVer ranges here: https://github.com/Masterminds/semver#basic-comparisons
|
|
TillerVersion string `json:"tillerVersion,omitempty"`
|
|
// Annotations are additional mappings uninterpreted by Tiller,
|
|
// made available for inspection by other applications.
|
|
Annotations map[string]string `json:"annotations,omitempty"`
|
|
// KubeVersion is a SemVer constraint specifying the version of Kubernetes required.
|
|
KubeVersion string `json:"kubeVersion,omitempty"`
|
|
}
|