mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-25 17:12:50 +00:00
bugfix: fix artifact image tag set func (#2870)
Signed-off-by: xuesongzuo@yunify.com <xuesongzuo@yunify.com>
This commit is contained in:
parent
4e3a92acec
commit
976a807711
|
|
@ -143,13 +143,16 @@ func (o *ArtifactImagesOptions) Complete(cmd *cobra.Command, args []string) (*kk
|
|||
}
|
||||
o.Playbook = args[0]
|
||||
|
||||
var tags = []string{"image_registry"}
|
||||
var tags = make([]string, 0)
|
||||
if o.Push {
|
||||
tags = append(tags, "push")
|
||||
}
|
||||
if o.Pull {
|
||||
tags = append(tags, "pull")
|
||||
}
|
||||
if !o.Pull && !o.Push {
|
||||
tags = append(tags, "image_registry")
|
||||
}
|
||||
|
||||
playbook.Spec = kkcorev1.PlaybookSpec{
|
||||
Playbook: o.Playbook,
|
||||
|
|
|
|||
Loading…
Reference in New Issue