github.com/zsuzhengdu/helm@v3.0.0-beta.3+incompatible/pkg/release/status.go (about)

     1  /*
     2  Copyright The Helm Authors.
     3  Licensed under the Apache License, Version 2.0 (the "License");
     4  you may not use this file except in compliance with the License.
     5  You may obtain a copy of the License at
     6  
     7  http://www.apache.org/licenses/LICENSE-2.0
     8  
     9  Unless required by applicable law or agreed to in writing, software
    10  distributed under the License is distributed on an "AS IS" BASIS,
    11  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  See the License for the specific language governing permissions and
    13  limitations under the License.
    14  */
    15  
    16  package release
    17  
    18  // Status is the status of a release
    19  type Status string
    20  
    21  // Describe the status of a release
    22  const (
    23  	// StatusUnknown indicates that a release is in an uncertain state.
    24  	StatusUnknown Status = "unknown"
    25  	// StatusDeployed indicates that the release has been pushed to Kubernetes.
    26  	StatusDeployed Status = "deployed"
    27  	// StatusUninstalled indicates that a release has been uninstalled from Kubermetes.
    28  	StatusUninstalled Status = "uninstalled"
    29  	// StatusSuperseded indicates that this release object is outdated and a newer one exists.
    30  	StatusSuperseded Status = "superseded"
    31  	// StatusFailed indicates that the release was not successfully deployed.
    32  	StatusFailed Status = "failed"
    33  	// StatusUninstalling indicates that a uninstall operation is underway.
    34  	StatusUninstalling Status = "uninstalling"
    35  	// StatusPendingInstall indicates that an install operation is underway.
    36  	StatusPendingInstall Status = "pending-install"
    37  	// StatusPendingUpgrade indicates that an upgrade operation is underway.
    38  	StatusPendingUpgrade Status = "pending-upgrade"
    39  	// StatusPendingRollback indicates that an rollback operation is underway.
    40  	StatusPendingRollback Status = "pending-rollback"
    41  )
    42  
    43  func (x Status) String() string { return string(x) }