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.
47 lines
1.7 KiB
47 lines
1.7 KiB
7 years ago
|
/*
|
||
6 years ago
|
Copyright The Helm Authors.
|
||
7 years ago
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
you may not use this file except in compliance with the License.
|
||
|
You may obtain a copy of the License at
|
||
|
|
||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
Unless required by applicable law or agreed to in writing, software
|
||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
See the License for the specific language governing permissions and
|
||
|
limitations under the License.
|
||
|
*/
|
||
|
|
||
7 years ago
|
package release
|
||
|
|
||
6 years ago
|
import "k8s.io/helm/pkg/chart"
|
||
7 years ago
|
|
||
|
// Release describes a deployment of a chart, together with the chart
|
||
|
// and the variables used to deploy that chart.
|
||
|
type Release struct {
|
||
|
// Name is the name of the release
|
||
|
Name string `json:"name,omitempty"`
|
||
|
// Info provides information about a release
|
||
|
Info *Info `json:"info,omitempty"`
|
||
|
// Chart is the chart that was released.
|
||
6 years ago
|
Chart *chart.Chart `json:"-"`
|
||
7 years ago
|
// Config is the set of extra Values added to the chart.
|
||
|
// These values override the default values inside of the chart.
|
||
6 years ago
|
Config map[string]interface{} `json:"config,omitempty"`
|
||
7 years ago
|
// Manifest is the string representation of the rendered template.
|
||
|
Manifest string `json:"manifest,omitempty"`
|
||
|
// Hooks are all of the hooks declared for this release.
|
||
|
Hooks []*Hook `json:"hooks,omitempty"`
|
||
7 years ago
|
// Version is an int which represents the version of the release.
|
||
|
Version int `json:"version,omitempty"`
|
||
7 years ago
|
// Namespace is the kubernetes namespace of the release.
|
||
|
Namespace string `json:"namespace,omitempty"`
|
||
|
}
|
||
6 years ago
|
|
||
|
// SetStatus is a helper for setting the status on a release.
|
||
6 years ago
|
func (r *Release) SetStatus(status Status, msg string) {
|
||
6 years ago
|
r.Info.Status = status
|
||
|
r.Info.Description = msg
|
||
|
}
|