Skip to content

Commit 6e5510b

Browse files
author
Shi Wang
authored
[INFINITUS-12]feat: add f5 provider (#186)
* update vendor * add f5 provider
1 parent 6bd9c39 commit 6e5510b

File tree

36 files changed

+1716
-47
lines changed

36 files changed

+1716
-47
lines changed

Gopkg.lock

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
[[override]]
4040
name = "github.com/caicloud/clientset"
41-
branch = "release-1.14"
41+
branch = "release-1.14-oem-infinitus"
4242

4343
[[override]]
4444
name = "github.com/json-iterator/go"

pkg/config/config.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ type ProxyNginx struct {
8080
type Providers struct {
8181
Ipvsdr ProviderIpvsdr
8282
Azure ProviderAzure
83+
F5 ProviderF5
8384
}
8485

8586
// ProviderIpvsdr contains all cli flags of ipvsdr providers
@@ -94,6 +95,11 @@ type ProviderAzure struct {
9495
Image string
9596
}
9697

98+
// ProviderF5 contains all cli flags of f5 providers
99+
type ProviderF5 struct {
100+
Image string
101+
}
102+
97103
// AddFlags add flags to app
98104
func (c *Configuration) AddFlags(fs *pflag.FlagSet) {
99105

@@ -107,6 +113,7 @@ func (c *Configuration) AddFlags(fs *pflag.FlagSet) {
107113
fs.StringVar(&c.Proxies.Nginx.AnnotationPrefix, "proxy-nginx-annotation-prefix", defaultIngressAnnotationPrefix, "Prefix of ingress annotation")
108114

109115
fs.StringVar(&c.Providers.Ipvsdr.Image, "provider-ipvsdr", defaultIpvsdrImage, "`Image` of ipvsdr provider")
116+
fs.StringVar(&c.Providers.F5.Image, "provider-f5", defaultIpvsdrImage, "`Image` of ipvsdr provider")
110117
fs.StringVar(&c.Providers.Ipvsdr.NodeIPLabel, "nodeip-label", "", "tell provider which label of node stores node ip")
111118
fs.StringVar(&c.Providers.Ipvsdr.NodeIPAnnotation, "nodeip-annotation", "", "tell provider which annotation of node stores node ip")
112119

0 commit comments

Comments
 (0)