Skip to content

Commit

Permalink
Command for e2e https
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder committed Aug 7, 2024
1 parent 8f678a9 commit 12cc45d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/create/create_loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ func SecStringToNum(sec string) int {
ret = 1
case "tls":
ret = 1
case "e2ehttps":
ret = 2
case "e2etls":
ret = 2
default:
ret = 0
}
Expand All @@ -132,7 +136,7 @@ func NewCreateLoadBalancerCmd(restOptions *api.RESTOptions) *cobra.Command {
o := CreateLoadBalancerOptions{}

var createLbCmd = &cobra.Command{
Use: "lb IP [--select=<rr|hash|priority|persist>] [--tcp=<port>:<targetPort>] [--udp=<port>:<targetPort>] [--sctp=<port>:<targetPort>] [--icmp] [--mark=<val>] [--secips=<ip>,][--endpoints=<ip>:<weight>,] [--mode=<onearm|fullnat>] [--bgp] [--monitor] [--inatimeout=<to>] [--name=<service-name>] [--attachEP] [--detachEP] [--security=<https|none>] [--host=<url>]",
Use: "lb IP [--select=<rr|hash|priority|persist>] [--tcp=<port>:<targetPort>] [--udp=<port>:<targetPort>] [--sctp=<port>:<targetPort>] [--icmp] [--mark=<val>] [--secips=<ip>,][--endpoints=<ip>:<weight>,] [--mode=<onearm|fullnat>] [--bgp] [--monitor] [--inatimeout=<to>] [--name=<service-name>] [--attachEP] [--detachEP] [--security=<https|e2ehttps|none>] [--host=<url>]",
Short: "Create a LoadBalancer",
Long: `Create a LoadBalancer
Expand Down
2 changes: 2 additions & 0 deletions cmd/get/get_loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ func NumToSecurty(sec int) string {
ret = ""
case 1:
ret = "https"
case 2:
ret = "e2ehttps"
default:
ret = ""
}
Expand Down

0 comments on commit 12cc45d

Please sign in to comment.