Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployment ¶
type Deployment struct { ObjectMeta types.ObjectMeta `json:"objectMeta"` TypeMeta types.TypeMeta `json:"typeMeta"` // Aggregate information about pods belonging to this Deployment. Pods common.PodInfo `json:"pods"` // Container images of the Deployment. ContainerImages []string `json:"containerImages"` // Init Container images of the Deployment. InitContainerImages []string `json:"initContainerImages"` }
Deployment is a presentation layer view of Kubernetes Deployment resource. This means it is Deployment plus additional augmented data we can get from other sources (like services that target the same pods).
type DeploymentCell ¶
type DeploymentCell apps.Deployment
func (DeploymentCell) GetProperty ¶
func (self DeploymentCell) GetProperty(name dataselect.PropertyName) dataselect.ComparableValue
GetProperty is used to get property of the deployment
type DeploymentDetail ¶
type DeploymentDetail struct { // Extends list item structure. Deployment `json:",inline"` // Label selector of the service. Selector map[string]string `json:"selector"` // Status information on the deployment StatusInfo `json:"statusInfo"` // Conditions describe the state of a deployment at a certain point. Conditions []common.Condition `json:"conditions"` // The deployment strategy to use to replace existing pods with new ones. // Valid options: Recreate, RollingUpdate Strategy apps.DeploymentStrategyType `json:"strategy"` // Min ready seconds MinReadySeconds int32 `json:"minReadySeconds"` // Rolling update strategy containing maxSurge and maxUnavailable RollingUpdateStrategy *RollingUpdateStrategy `json:"rollingUpdateStrategy,omitempty"` // Optional field that specifies the number of old Replica Sets to retain to allow rollback. RevisionHistoryLimit *int32 `json:"revisionHistoryLimit"` // List of non-critical errors, that occurred during resource retrieval. Errors []error `json:"errors"` }
DeploymentDetail is a presentation layer view of Kubernetes Deployment resource.
func GetDeploymentDetail ¶
func GetDeploymentDetail(client client.Interface, namespace string, deploymentName string) (*DeploymentDetail, error)
GetDeploymentDetail returns model object of deployment and error, if any.
type DeploymentList ¶
type DeploymentList struct { ListMeta types.ListMeta `json:"listMeta"` // Basic information about resources status on the list. Status common.ResourceStatus `json:"status"` // Unordered list of Deployments. Deployments []Deployment `json:"deployments"` // List of non-critical errors, that occurred during resource retrieval. Errors []error `json:"errors"` }
DeploymentList contains a list of Deployments in the cluster.
func GetDeploymentList ¶
func GetDeploymentList(client client.Interface, nsQuery *common.NamespaceQuery, dsQuery *dataselect.DataSelectQuery) (*DeploymentList, error)
GetDeploymentList returns a list of all Deployments in the cluster.
func GetDeploymentListFromChannels ¶
func GetDeploymentListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery) (*DeploymentList, error)
GetDeploymentListFromChannels returns a list of all Deployments in the cluster reading required resource list once from the channels.
type RollingUpdateStrategy ¶
type RollingUpdateStrategy struct { MaxSurge *intstr.IntOrString `json:"maxSurge"` }
RollingUpdateStrategy is behavior of a rolling update. See RollingUpdateDeployment K8s object.
type StatusInfo ¶
type StatusInfo struct { // Total number of desired replicas on the deployment Replicas int32 `json:"replicas"` // Number of non-terminated pods that have the desired template spec Updated int32 `json:"updated"` // Number of available pods (ready for at least minReadySeconds) // targeted by this deployment Available int32 `json:"available"` Unavailable int32 `json:"unavailable"` }
StatusInfo is the status information of the deployment
func GetStatusInfo ¶
func GetStatusInfo(deploymentStatus *apps.DeploymentStatus) StatusInfo
GetStatusInfo is used to get the status information from the *apps.DeploymentStatus