mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +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]
|
o.Playbook = args[0]
|
||||||
|
|
||||||
var tags = []string{"image_registry"}
|
var tags = make([]string, 0)
|
||||||
if o.Push {
|
if o.Push {
|
||||||
tags = append(tags, "push")
|
tags = append(tags, "push")
|
||||||
}
|
}
|
||||||
if o.Pull {
|
if o.Pull {
|
||||||
tags = append(tags, "pull")
|
tags = append(tags, "pull")
|
||||||
}
|
}
|
||||||
|
if !o.Pull && !o.Push {
|
||||||
|
tags = append(tags, "image_registry")
|
||||||
|
}
|
||||||
|
|
||||||
playbook.Spec = kkcorev1.PlaybookSpec{
|
playbook.Spec = kkcorev1.PlaybookSpec{
|
||||||
Playbook: o.Playbook,
|
Playbook: o.Playbook,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue