resources

package
v0.0.0-...-87cf9b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 7 Imported by: 0

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

type UpdateResult struct {
	OldImage     string
	CurrentImage string
}

UpdateResult 更新结果

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL