Documentation ¶
Index ¶
- Variables
- type Deployment
- func (d *Deployment) CheckStatus(ctx context.Context, cfg kubectl.Config)
- func (d *Deployment) Deadline() time.Duration
- func (d *Deployment) HasEncounteredUnrecoverableError() bool
- func (d *Deployment) IsStatusCheckCompleteOrCancelled() bool
- func (d *Deployment) MarkComplete()
- func (d *Deployment) Name() string
- func (d *Deployment) ReportSinceLastUpdated(isMuted bool) string
- func (d *Deployment) Status() Status
- func (d *Deployment) StatusCode() proto.StatusCode
- func (d *Deployment) StatusMessage() string
- 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 {
// 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, cfg kubectl.Config)
func (*Deployment) Deadline ¶
func (d *Deployment) Deadline() time.Duration
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) IsStatusCheckCompleteOrCancelled ¶ added in v1.7.1
func (d *Deployment) IsStatusCheckCompleteOrCancelled() 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(isMuted bool) string
ReportSinceLastUpdated 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) StatusCode ¶ added in v1.7.1
func (d *Deployment) StatusCode() proto.StatusCode
StatusCode() returns the deployment status code if the status check is cancelled or if no pod data exists for this deployment. If pods are fetched, this function returns the error code a pod container encountered.
func (*Deployment) StatusMessage ¶ added in v1.7.1
func (d *Deployment) StatusMessage() string
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.