Add optional arguments to kubectl run ...
This commit is contained in:
@@ -27,12 +27,12 @@ import (
|
||||
func TestGenerateService(t *testing.T) {
|
||||
tests := []struct {
|
||||
generator Generator
|
||||
params map[string]string
|
||||
params map[string]interface{}
|
||||
expected api.Service
|
||||
}{
|
||||
{
|
||||
generator: ServiceGeneratorV2{},
|
||||
params: map[string]string{
|
||||
params: map[string]interface{}{
|
||||
"selector": "foo=bar,baz=blah",
|
||||
"name": "test",
|
||||
"port": "80",
|
||||
@@ -61,7 +61,7 @@ func TestGenerateService(t *testing.T) {
|
||||
{
|
||||
|
||||
generator: ServiceGeneratorV2{},
|
||||
params: map[string]string{
|
||||
params: map[string]interface{}{
|
||||
"selector": "foo=bar,baz=blah",
|
||||
"name": "test",
|
||||
"port": "80",
|
||||
@@ -89,7 +89,7 @@ func TestGenerateService(t *testing.T) {
|
||||
},
|
||||
{
|
||||
generator: ServiceGeneratorV2{},
|
||||
params: map[string]string{
|
||||
params: map[string]interface{}{
|
||||
"selector": "foo=bar,baz=blah",
|
||||
"labels": "key1=value1,key2=value2",
|
||||
"name": "test",
|
||||
@@ -122,7 +122,7 @@ func TestGenerateService(t *testing.T) {
|
||||
},
|
||||
{
|
||||
generator: ServiceGeneratorV2{},
|
||||
params: map[string]string{
|
||||
params: map[string]interface{}{
|
||||
"selector": "foo=bar,baz=blah",
|
||||
"name": "test",
|
||||
"port": "80",
|
||||
@@ -152,7 +152,7 @@ func TestGenerateService(t *testing.T) {
|
||||
},
|
||||
{
|
||||
generator: ServiceGeneratorV2{},
|
||||
params: map[string]string{
|
||||
params: map[string]interface{}{
|
||||
"selector": "foo=bar,baz=blah",
|
||||
"name": "test",
|
||||
"port": "80",
|
||||
@@ -184,7 +184,7 @@ func TestGenerateService(t *testing.T) {
|
||||
},
|
||||
{
|
||||
generator: ServiceGeneratorV2{},
|
||||
params: map[string]string{
|
||||
params: map[string]interface{}{
|
||||
"selector": "foo=bar,baz=blah",
|
||||
"name": "test",
|
||||
"port": "80",
|
||||
@@ -214,7 +214,7 @@ func TestGenerateService(t *testing.T) {
|
||||
},
|
||||
{
|
||||
generator: ServiceGeneratorV2{},
|
||||
params: map[string]string{
|
||||
params: map[string]interface{}{
|
||||
"selector": "foo=bar,baz=blah",
|
||||
"name": "test",
|
||||
"port": "80",
|
||||
@@ -245,7 +245,7 @@ func TestGenerateService(t *testing.T) {
|
||||
},
|
||||
{
|
||||
generator: ServiceGeneratorV1{},
|
||||
params: map[string]string{
|
||||
params: map[string]interface{}{
|
||||
"selector": "foo=bar,baz=blah",
|
||||
"name": "test",
|
||||
"port": "80",
|
||||
@@ -274,7 +274,7 @@ func TestGenerateService(t *testing.T) {
|
||||
},
|
||||
{
|
||||
generator: ServiceGeneratorV1{},
|
||||
params: map[string]string{
|
||||
params: map[string]interface{}{
|
||||
"selector": "foo=bar,baz=blah",
|
||||
"name": "test",
|
||||
"port": "80",
|
||||
|
Reference in New Issue
Block a user