release

package
v2.16.9+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 2,266

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Hook_DeletePolicy_name = map[int32]string{
	0: "SUCCEEDED",
	1: "FAILED",
	2: "BEFORE_HOOK_CREATION",
}
View Source
var Hook_DeletePolicy_value = map[string]int32{
	"SUCCEEDED":            0,
	"FAILED":               1,
	"BEFORE_HOOK_CREATION": 2,
}
View Source
var Hook_Event_name = map[int32]string{
	0:  "UNKNOWN",
	1:  "PRE_INSTALL",
	2:  "POST_INSTALL",
	3:  "PRE_DELETE",
	4:  "POST_DELETE",
	5:  "PRE_UPGRADE",
	6:  "POST_UPGRADE",
	7:  "PRE_ROLLBACK",
	8:  "POST_ROLLBACK",
	9:  "RELEASE_TEST_SUCCESS",
	10: "RELEASE_TEST_FAILURE",
	11: "CRD_INSTALL",
}
View Source
var Hook_Event_value = map[string]int32{
	"UNKNOWN":              0,
	"PRE_INSTALL":          1,
	"POST_INSTALL":         2,
	"PRE_DELETE":           3,
	"POST_DELETE":          4,
	"PRE_UPGRADE":          5,
	"POST_UPGRADE":         6,
	"PRE_ROLLBACK":         7,
	"POST_ROLLBACK":        8,
	"RELEASE_TEST_SUCCESS": 9,
	"RELEASE_TEST_FAILURE": 10,
	"CRD_INSTALL":          11,
}
View Source
var Status_Code_name = map[int32]string{
	0: "UNKNOWN",
	1: "DEPLOYED",
	2: "DELETED",
	3: "SUPERSEDED",
	4: "FAILED",
	5: "DELETING",
	6: "PENDING_INSTALL",
	7: "PENDING_UPGRADE",
	8: "PENDING_ROLLBACK",
}
View Source
var Status_Code_value = map[string]int32{
	"UNKNOWN":          0,
	"DEPLOYED":         1,
	"DELETED":          2,
	"SUPERSEDED":       3,
	"FAILED":           4,
	"DELETING":         5,
	"PENDING_INSTALL":  6,
	"PENDING_UPGRADE":  7,
	"PENDING_ROLLBACK": 8,
}
View Source
var TestRun_Status_name = map[int32]string{
	0: "UNKNOWN",
	1: "SUCCESS",
	2: "FAILURE",
	3: "RUNNING",
}
View Source
var TestRun_Status_value = map[string]int32{
	"UNKNOWN": 0,
	"SUCCESS": 1,
	"FAILURE": 2,
	"RUNNING": 3,
}

Functions

This section is empty.

Types

type Hook

type Hook struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Kind is the Kubernetes kind.
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	// Path is the chart-relative path to the template.
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// Manifest is the manifest contents.
	Manifest string `protobuf:"bytes,4,opt,name=manifest,proto3" json:"manifest,omitempty"`
	// Events are the events that this hook fires on.
	Events []Hook_Event `protobuf:"varint,5,rep,packed,name=events,proto3,enum=hapi.release.Hook_Event" json:"events,omitempty"`
	// LastRun indicates the date/time this was last run.
	LastRun *timestamp.Timestamp `protobuf:"bytes,6,opt,name=last_run,json=lastRun,proto3" json:"last_run,omitempty"`
	// Weight indicates the sort order for execution among similar Hook type
	Weight int32 `protobuf:"varint,7,opt,name=weight,proto3" json:"weight,omitempty"`
	// DeletePolicies are the policies that indicate when to delete the hook
	DeletePolicies []Hook_DeletePolicy `` /* 147-byte string literal not displayed */
	// DeleteTimeout indicates how long to wait for a resource to be deleted before timing out
	DeleteTimeout        int64    `protobuf:"varint,9,opt,name=delete_timeout,json=deleteTimeout,proto3" json:"delete_timeout,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Hook defines a hook object.

func (*Hook) Descriptor

func (*Hook) Descriptor() ([]byte, []int)

func (*Hook) GetDeletePolicies

func (m *Hook) GetDeletePolicies() []Hook_DeletePolicy

func (*Hook) GetDeleteTimeout

func (m *Hook) GetDeleteTimeout() int64

func (*Hook) GetEvents

func (m *Hook) GetEvents() []Hook_Event

func (*Hook) GetKind

func (m *Hook) GetKind() string

func (*Hook) GetLastRun

func (m *Hook) GetLastRun() *timestamp.Timestamp

func (*Hook) GetManifest

func (m *Hook) GetManifest() string

func (*Hook) GetName

func (m *Hook) GetName() string

func (*Hook) GetPath

func (m *Hook) GetPath() string

func (*Hook) GetWeight

func (m *Hook) GetWeight() int32

func (*Hook) ProtoMessage

func (*Hook) ProtoMessage()

func (*Hook) Reset

func (m *Hook) Reset()

func (*Hook) String

func (m *Hook) String() string

func (*Hook) XXX_DiscardUnknown

func (m *Hook) XXX_DiscardUnknown()

func (*Hook) XXX_Marshal

func (m *Hook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Hook) XXX_Merge

func (dst *Hook) XXX_Merge(src proto.Message)

func (*Hook) XXX_Size

func (m *Hook) XXX_Size() int

func (*Hook) XXX_Unmarshal

func (m *Hook) XXX_Unmarshal(b []byte) error

type Hook_DeletePolicy

type Hook_DeletePolicy int32
const (
	Hook_SUCCEEDED            Hook_DeletePolicy = 0
	Hook_FAILED               Hook_DeletePolicy = 1
	Hook_BEFORE_HOOK_CREATION Hook_DeletePolicy = 2
)

func (Hook_DeletePolicy) EnumDescriptor

func (Hook_DeletePolicy) EnumDescriptor() ([]byte, []int)

func (Hook_DeletePolicy) String

func (x Hook_DeletePolicy) String() string

type Hook_Event

type Hook_Event int32
const (
	Hook_UNKNOWN              Hook_Event = 0
	Hook_PRE_INSTALL          Hook_Event = 1
	Hook_POST_INSTALL         Hook_Event = 2
	Hook_PRE_DELETE           Hook_Event = 3
	Hook_POST_DELETE          Hook_Event = 4
	Hook_PRE_UPGRADE          Hook_Event = 5
	Hook_POST_UPGRADE         Hook_Event = 6
	Hook_PRE_ROLLBACK         Hook_Event = 7
	Hook_POST_ROLLBACK        Hook_Event = 8
	Hook_RELEASE_TEST_SUCCESS Hook_Event = 9
	Hook_RELEASE_TEST_FAILURE Hook_Event = 10
	Hook_CRD_INSTALL          Hook_Event = 11
)

func (Hook_Event) EnumDescriptor

func (Hook_Event) EnumDescriptor() ([]byte, []int)

func (Hook_Event) String

func (x Hook_Event) String() string

type Info

type Info struct {
	Status        *Status              `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	FirstDeployed *timestamp.Timestamp `protobuf:"bytes,2,opt,name=first_deployed,json=firstDeployed,proto3" json:"first_deployed,omitempty"`
	LastDeployed  *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_deployed,json=lastDeployed,proto3" json:"last_deployed,omitempty"`
	// Deleted tracks when this object was deleted.
	Deleted *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// Description is human-friendly "log entry" about this release.
	Description          string   `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Info describes release information.

func (*Info) Descriptor

func (*Info) Descriptor() ([]byte, []int)

func (*Info) GetDeleted

func (m *Info) GetDeleted() *timestamp.Timestamp

func (*Info) GetDescription

func (m *Info) GetDescription() string

func (*Info) GetFirstDeployed

func (m *Info) GetFirstDeployed() *timestamp.Timestamp

func (*Info) GetLastDeployed

func (m *Info) GetLastDeployed() *timestamp.Timestamp

func (*Info) GetStatus

func (m *Info) GetStatus() *Status

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) String

func (m *Info) String() string

func (*Info) XXX_DiscardUnknown

func (m *Info) XXX_DiscardUnknown()

func (*Info) XXX_Marshal

func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Info) XXX_Merge

func (dst *Info) XXX_Merge(src proto.Message)

func (*Info) XXX_Size

func (m *Info) XXX_Size() int

func (*Info) XXX_Unmarshal

func (m *Info) XXX_Unmarshal(b []byte) error

type Release

type Release struct {
	// Name is the name of the release
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Info provides information about a release
	Info *Info `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	// Chart is the chart that was released.
	Chart *chart.Chart `protobuf:"bytes,3,opt,name=chart,proto3" json:"chart,omitempty"`
	// Config is the set of extra Values added to the chart.
	// These values override the default values inside of the chart.
	Config *chart.Config `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	// Manifest is the string representation of the rendered template.
	Manifest string `protobuf:"bytes,5,opt,name=manifest,proto3" json:"manifest,omitempty"`
	// Hooks are all of the hooks declared for this release.
	Hooks []*Hook `protobuf:"bytes,6,rep,name=hooks,proto3" json:"hooks,omitempty"`
	// Version is an int32 which represents the version of the release.
	Version int32 `protobuf:"varint,7,opt,name=version,proto3" json:"version,omitempty"`
	// Namespace is the kubernetes namespace of the release.
	Namespace            string   `protobuf:"bytes,8,opt,name=namespace,proto3" json:"namespace,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Release describes a deployment of a chart, together with the chart and the variables used to deploy that chart.

func (*Release) Descriptor

func (*Release) Descriptor() ([]byte, []int)

func (*Release) GetChart

func (m *Release) GetChart() *chart.Chart

func (*Release) GetConfig

func (m *Release) GetConfig() *chart.Config

func (*Release) GetHooks

func (m *Release) GetHooks() []*Hook

func (*Release) GetInfo

func (m *Release) GetInfo() *Info

func (*Release) GetManifest

func (m *Release) GetManifest() string

func (*Release) GetName

func (m *Release) GetName() string

func (*Release) GetNamespace

func (m *Release) GetNamespace() string

func (*Release) GetVersion

func (m *Release) GetVersion() int32

func (*Release) ProtoMessage

func (*Release) ProtoMessage()

func (*Release) Reset

func (m *Release) Reset()

func (*Release) String

func (m *Release) String() string

func (*Release) XXX_DiscardUnknown

func (m *Release) XXX_DiscardUnknown()

func (*Release) XXX_Marshal

func (m *Release) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Release) XXX_Merge

func (dst *Release) XXX_Merge(src proto.Message)

func (*Release) XXX_Size

func (m *Release) XXX_Size() int

func (*Release) XXX_Unmarshal

func (m *Release) XXX_Unmarshal(b []byte) error

type Status

type Status struct {
	Code Status_Code `protobuf:"varint,1,opt,name=code,proto3,enum=hapi.release.Status_Code" json:"code,omitempty"`
	// Cluster resources as kubectl would print them.
	Resources string `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"`
	// Contains the rendered templates/NOTES.txt if available
	Notes string `protobuf:"bytes,4,opt,name=notes,proto3" json:"notes,omitempty"`
	// LastTestSuiteRun provides results on the last test run on a release
	LastTestSuiteRun     *TestSuite `protobuf:"bytes,5,opt,name=last_test_suite_run,json=lastTestSuiteRun,proto3" json:"last_test_suite_run,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Status defines the status of a release.

func (*Status) Descriptor

func (*Status) Descriptor() ([]byte, []int)

func (*Status) GetCode

func (m *Status) GetCode() Status_Code

func (*Status) GetLastTestSuiteRun

func (m *Status) GetLastTestSuiteRun() *TestSuite

func (*Status) GetNotes

func (m *Status) GetNotes() string

func (*Status) GetResources

func (m *Status) GetResources() string

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) String

func (m *Status) String() string

func (*Status) XXX_DiscardUnknown

func (m *Status) XXX_DiscardUnknown()

func (*Status) XXX_Marshal

func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Status) XXX_Merge

func (dst *Status) XXX_Merge(src proto.Message)

func (*Status) XXX_Size

func (m *Status) XXX_Size() int

func (*Status) XXX_Unmarshal

func (m *Status) XXX_Unmarshal(b []byte) error

type Status_Code

type Status_Code int32
const (
	// Status_UNKNOWN indicates that a release is in an uncertain state.
	Status_UNKNOWN Status_Code = 0
	// Status_DEPLOYED indicates that the release has been pushed to Kubernetes.
	Status_DEPLOYED Status_Code = 1
	// Status_DELETED indicates that a release has been deleted from Kubernetes.
	Status_DELETED Status_Code = 2
	// Status_SUPERSEDED indicates that this release object is outdated and a newer one exists.
	Status_SUPERSEDED Status_Code = 3
	// Status_FAILED indicates that the release was not successfully deployed.
	Status_FAILED Status_Code = 4
	// Status_DELETING indicates that a delete operation is underway.
	Status_DELETING Status_Code = 5
	// Status_PENDING_INSTALL indicates that an install operation is underway.
	Status_PENDING_INSTALL Status_Code = 6
	// Status_PENDING_UPGRADE indicates that an upgrade operation is underway.
	Status_PENDING_UPGRADE Status_Code = 7
	// Status_PENDING_ROLLBACK indicates that a rollback operation is underway.
	Status_PENDING_ROLLBACK Status_Code = 8
)

func (Status_Code) EnumDescriptor

func (Status_Code) EnumDescriptor() ([]byte, []int)

func (Status_Code) String

func (x Status_Code) String() string

type TestRun

type TestRun struct {
	Name                 string               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Status               TestRun_Status       `protobuf:"varint,2,opt,name=status,proto3,enum=hapi.release.TestRun_Status" json:"status,omitempty"`
	Info                 string               `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
	StartedAt            *timestamp.Timestamp `protobuf:"bytes,4,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	CompletedAt          *timestamp.Timestamp `protobuf:"bytes,5,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*TestRun) Descriptor

func (*TestRun) Descriptor() ([]byte, []int)

func (*TestRun) GetCompletedAt

func (m *TestRun) GetCompletedAt() *timestamp.Timestamp

func (*TestRun) GetInfo

func (m *TestRun) GetInfo() string

func (*TestRun) GetName

func (m *TestRun) GetName() string

func (*TestRun) GetStartedAt

func (m *TestRun) GetStartedAt() *timestamp.Timestamp

func (*TestRun) GetStatus

func (m *TestRun) GetStatus() TestRun_Status

func (*TestRun) ProtoMessage

func (*TestRun) ProtoMessage()

func (*TestRun) Reset

func (m *TestRun) Reset()

func (*TestRun) String

func (m *TestRun) String() string

func (*TestRun) XXX_DiscardUnknown

func (m *TestRun) XXX_DiscardUnknown()

func (*TestRun) XXX_Marshal

func (m *TestRun) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestRun) XXX_Merge

func (dst *TestRun) XXX_Merge(src proto.Message)

func (*TestRun) XXX_Size

func (m *TestRun) XXX_Size() int

func (*TestRun) XXX_Unmarshal

func (m *TestRun) XXX_Unmarshal(b []byte) error

type TestRun_Status

type TestRun_Status int32
const (
	TestRun_UNKNOWN TestRun_Status = 0
	TestRun_SUCCESS TestRun_Status = 1
	TestRun_FAILURE TestRun_Status = 2
	TestRun_RUNNING TestRun_Status = 3
)

func (TestRun_Status) EnumDescriptor

func (TestRun_Status) EnumDescriptor() ([]byte, []int)

func (TestRun_Status) String

func (x TestRun_Status) String() string

type TestSuite

type TestSuite struct {
	// StartedAt indicates the date/time this test suite was kicked off
	StartedAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	// CompletedAt indicates the date/time this test suite was completed
	CompletedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"`
	// Results are the results of each segment of the test
	Results              []*TestRun `protobuf:"bytes,3,rep,name=results,proto3" json:"results,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

TestSuite comprises of the last run of the pre-defined test suite of a release version

func (*TestSuite) Descriptor

func (*TestSuite) Descriptor() ([]byte, []int)

func (*TestSuite) GetCompletedAt

func (m *TestSuite) GetCompletedAt() *timestamp.Timestamp

func (*TestSuite) GetResults

func (m *TestSuite) GetResults() []*TestRun

func (*TestSuite) GetStartedAt

func (m *TestSuite) GetStartedAt() *timestamp.Timestamp

func (*TestSuite) ProtoMessage

func (*TestSuite) ProtoMessage()

func (*TestSuite) Reset

func (m *TestSuite) Reset()

func (*TestSuite) String

func (m *TestSuite) String() string

func (*TestSuite) XXX_DiscardUnknown

func (m *TestSuite) XXX_DiscardUnknown()

func (*TestSuite) XXX_Marshal

func (m *TestSuite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestSuite) XXX_Merge

func (dst *TestSuite) XXX_Merge(src proto.Message)

func (*TestSuite) XXX_Size

func (m *TestSuite) XXX_Size() int

func (*TestSuite) XXX_Unmarshal

func (m *TestSuite) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL