Versions in this module Expand all Collapse all v2 v2.1.1 Dec 22, 2021 v2.1.0 Dec 22, 2021 Changes in this version + const DescriptionAnnotationKey + const FirstRevision + const RestartedAtAnnotationKey + const RevisionAnnotationKey + func DeployApp(spec *AppDeploymentSpec, client client.Interface) error + func DeployAppFromFile(cfg *rest.Config, spec *AppDeploymentFromFileSpec) (bool, error) + func FindNewReplicaSet(deployment *apps.Deployment, rsList []*apps.ReplicaSet) *apps.ReplicaSet + func FindOldReplicaSets(deployment *apps.Deployment, rsList []*apps.ReplicaSet) ([]*apps.ReplicaSet, []*apps.ReplicaSet, error) + func GetDeploymentNewReplicaSet(client client.Interface, dsQuery *dataselect.DataSelectQuery, namespace string, ...) (*replicaset.ReplicaSet, error) + func GetDeploymentOldReplicaSets(client client.Interface, dsQuery *dataselect.DataSelectQuery, namespace string, ...) (*replicaset.ReplicaSetList, error) + func GetDeploymentPods(client client.Interface, metricClient metricapi.MetricClient, ...) (*pod.PodList, error) + func GetNewReplicaSetTemplate(deployment *apps.Deployment) v1.PodTemplateSpec + func GetReplicaSetFromDeployment(client client.Interface, namespace, name string) ([]v1.ReplicaSet, error) + func PauseDeployment(client client.Interface, namespace, name string) (*v1.Deployment, error) + func ResumeDeployment(client client.Interface, namespace, name string) (*v1.Deployment, error) + type AppDeploymentFromFileResponse struct + Content string + Error string + Name string + type AppDeploymentFromFileSpec struct + Content string + Name string + Namespace string + Validate bool + type AppDeploymentSpec struct + ContainerCommand *string + ContainerCommandArgs *string + ContainerImage string + CpuRequirement *resource.Quantity + Description *string + ImagePullSecret *string + IsExternal bool + Labels []Label + MemoryRequirement *resource.Quantity + Name string + Namespace string + PortMappings []PortMapping + Replicas int32 + RunAsPrivileged bool + Variables []EnvironmentVariable + type Deployment struct + ContainerImages []string + InitContainerImages []string + ObjectMeta api.ObjectMeta + Pods common.PodInfo + TypeMeta api.TypeMeta + type DeploymentCell apps.Deployment + func (self DeploymentCell) GetProperty(name dataselect.PropertyName) dataselect.ComparableValue + func (self DeploymentCell) GetResourceSelector() *metricapi.ResourceSelector + type DeploymentDetail struct + Conditions []common.Condition + Errors []error + MinReadySeconds int32 + RevisionHistoryLimit *int32 + RollingUpdateStrategy *RollingUpdateStrategy + Selector map[string]string + Strategy apps.DeploymentStrategyType + func GetDeploymentDetail(client client.Interface, namespace string, deploymentName string) (*DeploymentDetail, error) + type DeploymentList struct + CumulativeMetrics []metricapi.Metric + Deployments []Deployment + Errors []error + ListMeta api.ListMeta + Status common.ResourceStatus + func GetDeploymentList(client client.Interface, nsQuery *common.NamespaceQuery, ...) (*DeploymentList, error) + func GetDeploymentListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery, ...) (*DeploymentList, error) + type EnvironmentVariable struct + Name string + Value string + type Label struct + Key string + Value string + type PortMapping struct + Port int32 + Protocol api.Protocol + TargetPort int32 + type Protocols struct + Protocols []api.Protocol + func GetAvailableProtocols() *Protocols + type RollingUpdateStrategy struct + MaxSurge *intstr.IntOrString + MaxUnavailable *intstr.IntOrString + type RolloutSpec struct + Revision string + func RestartDeployment(client client.Interface, namespace, name string) (*RolloutSpec, error) + func RollbackDeployment(client client.Interface, rolloutSpec *RolloutSpec, namespace, name string) (*RolloutSpec, error) + type StatusInfo struct + Available int32 + Replicas int32 + Unavailable int32 + Updated int32 + func GetStatusInfo(deploymentStatus *apps.DeploymentStatus) StatusInfo