Documentation
¶
Index ¶
- Variables
- type Deployment
- func (d *Deployment) CheckStatus(ctx context.Context, runCtx *runcontext.RunContext)
- func (d *Deployment) Deadline() time.Duration
- func (d *Deployment) FirstPodErrOccurred() proto.StatusCode
- func (d *Deployment) HasEncounteredUnrecoverableError() bool
- func (d *Deployment) IsStatusCheckComplete() bool
- func (d *Deployment) MarkComplete()
- func (d *Deployment) Name() string
- func (d *Deployment) ReportSinceLastUpdated() string
- func (d *Deployment) Status() Status
- func (d *Deployment) String() string
- func (d *Deployment) UpdateStatus(ae proto.ActionableErr)
- func (d *Deployment) WithPodStatuses(scs []proto.StatusCode) *Deployment
- func (d *Deployment) WithValidator(pd diag.Diagnose) *Deployment
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MsgKubectlConnection = "kubectl connection error\n"
)
Functions ¶
This section is empty.
Types ¶
type Deployment ¶
type Deployment struct {
StatusCode proto.StatusCode
// contains filtered or unexported fields
}
func NewDeployment ¶
func NewDeployment(name string, ns string, deadline time.Duration) *Deployment
func (*Deployment) CheckStatus ¶ added in v0.39.0
func (d *Deployment) CheckStatus(ctx context.Context, runCtx *runcontext.RunContext)
func (*Deployment) Deadline ¶
func (d *Deployment) Deadline() time.Duration
func (*Deployment) FirstPodErrOccurred ¶ added in v1.12.1
func (d *Deployment) FirstPodErrOccurred() proto.StatusCode
Return first pod status in error. TODO: should we return all distinct error codes in future?
func (*Deployment) HasEncounteredUnrecoverableError ¶ added in v1.7.1
func (d *Deployment) HasEncounteredUnrecoverableError() bool
HasEncounteredUnrecoverableError goes through all pod statuses and return true if any cannot be recovered
func (*Deployment) IsStatusCheckComplete ¶ added in v1.10.0
func (d *Deployment) IsStatusCheckComplete() bool
func (*Deployment) MarkComplete ¶ added in v1.7.1
func (d *Deployment) MarkComplete()
func (*Deployment) Name ¶
func (d *Deployment) Name() string
func (*Deployment) ReportSinceLastUpdated ¶ added in v1.7.1
func (d *Deployment) ReportSinceLastUpdated() string
This returns a string representing deployment status along with tab header e.g.
- testNs:deployment/leeroy-app: waiting for rollout to complete. (1/2) pending
- testNs:pod/leeroy-app-xvbg : error pulling container image
func (*Deployment) Status ¶
func (d *Deployment) Status() Status
func (*Deployment) String ¶
func (d *Deployment) String() string
func (*Deployment) UpdateStatus ¶
func (d *Deployment) UpdateStatus(ae proto.ActionableErr)
func (*Deployment) WithPodStatuses ¶ added in v1.7.1
func (d *Deployment) WithPodStatuses(scs []proto.StatusCode) *Deployment
func (*Deployment) WithValidator ¶ added in v1.7.1
func (d *Deployment) WithValidator(pd diag.Diagnose) *Deployment
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func (Status) ActionableError ¶ added in v1.7.1
func (rs Status) ActionableError() proto.ActionableErr
Click to show internal directories.
Click to hide internal directories.