Skip to content

Commit 05377d4

Browse files
author
OpenShift Bot
authored
Merge pull request #12954 from JacobTanenbaum/BZ1421990
Merged by openshift-bot
2 parents badb6ac + 94c654d commit 05377d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/cmd/cli/cmd/expose.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func validate(cmd *cobra.Command, f *clientcmd.Factory, args []string) error {
101101

102102
wildcardpolicy := kcmdutil.GetFlagString(cmd, "wildcard-policy")
103103
if len(wildcardpolicy) > 0 && (wildcardpolicy != "Subdomain" && wildcardpolicy != "None") {
104-
return fmt.Errorf("only \"Subdomain\" or \"None\" are supported for wildcardpolicy")
104+
return fmt.Errorf("only \"Subdomain\" or \"None\" are supported for wildcard-policy")
105105
}
106106

107107
if len(infos) > 1 {

pkg/route/generator/generate.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func (RouteGenerator) ParamNames() []kubectl.GeneratorParam {
2727
{Name: "name", Required: false},
2828
{Name: "hostname", Required: false},
2929
{Name: "path", Required: false},
30-
{Name: "wildcardpolicy", Required: false},
30+
{Name: "wildcard-policy", Required: false},
3131
}
3232
}
3333

@@ -70,7 +70,7 @@ func (RouteGenerator) Generate(genericParams map[string]interface{}) (runtime.Ob
7070
},
7171
Spec: api.RouteSpec{
7272
Host: params["hostname"],
73-
WildcardPolicy: api.WildcardPolicyType(params["wildcardpolicy"]),
73+
WildcardPolicy: api.WildcardPolicyType(params["wildcard-policy"]),
7474
Path: params["path"],
7575
To: api.RouteTargetReference{
7676
Name: params["default-name"],

0 commit comments

Comments
 (0)