mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-02 02:30:43 +00:00
allow to set image without a tag
This commit is contained in:
@@ -84,6 +84,18 @@ func TestSetImage(t *testing.T) {
|
||||
" name: image1",
|
||||
}},
|
||||
},
|
||||
{
|
||||
description: "<image>=<image>",
|
||||
given: given{
|
||||
args: []string{"ngnix=localhost:5000/my-project/ngnix"},
|
||||
},
|
||||
expected: expected{
|
||||
fileOutput: []string{
|
||||
"images:",
|
||||
"- name: ngnix",
|
||||
" newName: localhost:5000/my-project/ngnix",
|
||||
}},
|
||||
},
|
||||
{
|
||||
given: given{
|
||||
args: []string{"ngnix=localhost:5000/my-project/ngnix:dev-01"},
|
||||
|
||||
Reference in New Issue
Block a user