Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UpdateInfo ¶
type UpdateInfo struct { Namespace string `json:"namespace"` Name string `json:"name"` ContainerName string `json:"container_name"` // 为空修改第一个容器 Image string `json:"update_image"` // 为空根据版本修改 ImageVersion string `json:"image_version"` // 与image二选一 }
UpdateInfo 更新 deploy 所需信息
func (UpdateInfo) UpdateCronJobsImage ¶
func (th UpdateInfo) UpdateCronJobsImage() (ur UpdateResult, err error)
UpdateCronJobsImage 更新 cronjob 镜像
func (UpdateInfo) UpdateDeploymentImage ¶
func (th UpdateInfo) UpdateDeploymentImage() (ur UpdateResult, err error)
UpdateDeploymentImage 更新 deploy 镜像
func (UpdateInfo) UpdateImage ¶
func (th UpdateInfo) UpdateImage(containers []v1.Container) (ur UpdateResult, result []v1.Container)
UpdateImage 更新镜像名称
type UpdateResult ¶
UpdateResult 更新结果
Click to show internal directories.
Click to hide internal directories.