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.
44 lines
1.8 KiB
44 lines
1.8 KiB
6 years ago
|
/*
|
||
6 years ago
|
Copyright The Helm Authors.
|
||
6 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.
|
||
|
*/
|
||
|
|
||
6 years ago
|
package release
|
||
|
|
||
6 years ago
|
// Status is the status of a release
|
||
|
type Status string
|
||
6 years ago
|
|
||
6 years ago
|
// Describe the status of a release
|
||
6 years ago
|
const (
|
||
6 years ago
|
// StatusUnknown indicates that a release is in an uncertain state.
|
||
6 years ago
|
StatusUnknown Status = "unknown"
|
||
6 years ago
|
// StatusDeployed indicates that the release has been pushed to Kubernetes.
|
||
6 years ago
|
StatusDeployed Status = "deployed"
|
||
6 years ago
|
// StatusUninstalled indicates that a release has been uninstalled from Kubermetes.
|
||
6 years ago
|
StatusUninstalled Status = "uninstalled"
|
||
6 years ago
|
// StatusSuperseded indicates that this release object is outdated and a newer one exists.
|
||
6 years ago
|
StatusSuperseded Status = "superseded"
|
||
6 years ago
|
// StatusFailed indicates that the release was not successfully deployed.
|
||
6 years ago
|
StatusFailed Status = "failed"
|
||
6 years ago
|
// StatusUninstalling indicates that a uninstall operation is underway.
|
||
6 years ago
|
StatusUninstalling Status = "uninstalling"
|
||
6 years ago
|
// StatusPendingInstall indicates that an install operation is underway.
|
||
6 years ago
|
StatusPendingInstall Status = "pending-install"
|
||
6 years ago
|
// StatusPendingUpgrade indicates that an upgrade operation is underway.
|
||
6 years ago
|
StatusPendingUpgrade Status = "pending-upgrade"
|
||
6 years ago
|
// StatusPendingRollback indicates that an rollback operation is underway.
|
||
6 years ago
|
StatusPendingRollback Status = "pending-rollback"
|
||
6 years ago
|
)
|
||
|
|
||
6 years ago
|
func (x Status) String() string { return string(x) }
|