2018-04-20 03:59:46 -04:00
|
|
|
/*
|
2018-08-24 15:03:55 -04:00
|
|
|
Copyright The Helm Authors.
|
2018-04-20 03:59:46 -04:00
|
|
|
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.
|
|
|
|
|
*/
|
|
|
|
|
|
2018-04-18 17:53:38 -04:00
|
|
|
package release
|
|
|
|
|
|
2019-10-14 17:31:25 -04:00
|
|
|
import (
|
2022-09-09 04:55:06 -04:00
|
|
|
"k8s.io/apimachinery/pkg/runtime"
|
|
|
|
|
|
2019-10-14 17:31:25 -04:00
|
|
|
"helm.sh/helm/v3/pkg/time"
|
|
|
|
|
)
|
2018-04-18 17:53:38 -04:00
|
|
|
|
|
|
|
|
// Info describes release information.
|
|
|
|
|
type Info struct {
|
2018-05-09 11:37:20 -04:00
|
|
|
// FirstDeployed is when the release was first deployed.
|
2018-04-18 18:35:37 -04:00
|
|
|
FirstDeployed time.Time `json:"first_deployed,omitempty"`
|
2018-05-09 11:37:20 -04:00
|
|
|
// LastDeployed is when the release was last deployed.
|
|
|
|
|
LastDeployed time.Time `json:"last_deployed,omitempty"`
|
2018-04-18 17:53:38 -04:00
|
|
|
// Deleted tracks when this object was deleted.
|
2019-10-14 17:31:25 -04:00
|
|
|
Deleted time.Time `json:"deleted"`
|
2018-04-18 17:53:38 -04:00
|
|
|
// Description is human-friendly "log entry" about this release.
|
2019-10-14 17:31:25 -04:00
|
|
|
Description string `json:"description,omitempty"`
|
2018-04-26 19:52:31 -04:00
|
|
|
// Status is the current state of the release
|
2019-02-12 13:18:33 -05:00
|
|
|
Status Status `json:"status,omitempty"`
|
2018-04-26 19:52:31 -04:00
|
|
|
// Contains the rendered templates/NOTES.txt if available
|
|
|
|
|
Notes string `json:"notes,omitempty"`
|
2022-04-28 16:59:38 -04:00
|
|
|
// Contains the deployed resources information
|
2022-09-09 04:55:06 -04:00
|
|
|
Resources map[string][]runtime.Object `json:"resources,omitempty"`
|
2018-04-18 17:53:38 -04:00
|
|
|
}
|