Skip to content

Commit

Permalink
mcclient: lb: allow empty string as arg for --redirect-{scheme,host,p…
Browse files Browse the repository at this point in the history
…ath}
  • Loading branch information
yousong committed Jun 19, 2020
1 parent 3fe10a7 commit 0038848
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions pkg/mcclient/options/loadbalancerlistenerrules.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ type LoadbalancerListenerRuleCreateOptions struct {

Redirect *string `choices:"off|raw"`
RedirectCode *int `choices:"301|302|307"`
RedirectScheme *string `choices:"http|https"`
RedirectHost *string
RedirectPath *string
RedirectScheme *string `json:",allowempty" choices:"http|https|"`
RedirectHost *string `json:",allowempty"`
RedirectPath *string `json:",allowempty"`
}

type LoadbalancerListenerRuleListOptions struct {
Expand All @@ -41,9 +41,9 @@ type LoadbalancerListenerRuleListOptions struct {

Redirect *string `choices:"off|raw"`
RedirectCode *int `choices:"301|302|307"`
RedirectScheme *string `choices:"http|https"`
RedirectHost *string
RedirectPath *string
RedirectScheme *string `choices:"http|https|" json:",allowempty"`
RedirectHost *string `json:",allowempty"`
RedirectPath *string `json:",allowempty"`
}

type LoadbalancerListenerRuleUpdateOptions struct {
Expand All @@ -57,9 +57,9 @@ type LoadbalancerListenerRuleUpdateOptions struct {

Redirect *string `choices:"off|raw"`
RedirectCode *int `choices:"301|302|307"`
RedirectScheme *string `choices:"http|https"`
RedirectHost *string
RedirectPath *string
RedirectScheme *string `choices:"http|https|" json:",allowempty"`
RedirectHost *string `json:",allowempty"`
RedirectPath *string `json:",allowempty"`
}

type LoadbalancerListenerRuleGetOptions struct {
Expand Down
18 changes: 9 additions & 9 deletions pkg/mcclient/options/loadbalancerlisteners.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ type LoadbalancerListenerCreateOptions struct {

Redirect *string `choices:"off|raw"`
RedirectCode *int `choices:"301|302|307"`
RedirectScheme *string `choices:"http|https"`
RedirectHost *string
RedirectPath *string
RedirectScheme *string `choices:"http|https|" json:",allowempty"`
RedirectHost *string `json:",allowempty"`
RedirectPath *string `json:",allowempty"`
}

type LoadbalancerListenerListOptions struct {
Expand Down Expand Up @@ -128,9 +128,9 @@ type LoadbalancerListenerListOptions struct {

Redirect *string `choices:"off|raw"`
RedirectCode *int `choices:"301|302|307"`
RedirectScheme *string `choices:"http|https"`
RedirectHost *string
RedirectPath *string
RedirectScheme *string `choices:"http|https|" json:",allowempty"`
RedirectHost *string `json:",allowempty"`
RedirectPath *string `json:",allowempty"`
}

type LoadbalancerListenerUpdateOptions struct {
Expand Down Expand Up @@ -184,9 +184,9 @@ type LoadbalancerListenerUpdateOptions struct {

Redirect *string `choices:"off|raw"`
RedirectCode *int `choices:"301|302|307"`
RedirectScheme *string `choices:"http|https"`
RedirectHost *string
RedirectPath *string
RedirectScheme *string `choices:"http|https|" json:",allowempty"`
RedirectHost *string `json:",allowempty"`
RedirectPath *string `json:",allowempty"`
}

type LoadbalancerListenerGetOptions struct {
Expand Down

0 comments on commit 0038848

Please sign in to comment.