Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Fix lb ingress status #740

Merged
merged 10 commits into from
Dec 2, 2021
Prev Previous commit
fix: config unit test
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
  • Loading branch information
tao12345666333 committed Dec 2, 2021
commit a46283a813b46c0a453a5e3505323e7240a985d1
20 changes: 13 additions & 7 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,15 @@ apisix:

func TestConfigWithEnvVar(t *testing.T) {
cfg := &Config{
LogLevel: "warn",
LogOutput: "stdout",
HTTPListen: ":9090",
HTTPSListen: ":9443",
CertFilePath: "/etc/webhook/certs/cert.pem",
KeyFilePath: "/etc/webhook/certs/key.pem",
EnableProfiling: true,
LogLevel: "warn",
LogOutput: "stdout",
HTTPListen: ":9090",
HTTPSListen: ":9443",
IngressPublishService: "",
IngressStatusAddress: []string{},
CertFilePath: "/etc/webhook/certs/cert.pem",
KeyFilePath: "/etc/webhook/certs/key.pem",
EnableProfiling: true,
Kubernetes: KubernetesConfig{
ResyncInterval: types.TimeDuration{Duration: time.Hour},
Kubeconfig: "",
Expand Down Expand Up @@ -147,6 +149,8 @@ func TestConfigWithEnvVar(t *testing.T) {
"log_output": "stdout",
"http_listen": ":9090",
"https_listen": ":9443",
"ingress_publish_service": "",
"ingress_status_address": [],
"enable_profiling": true,
"kubernetes": {
"kubeconfig": "{{.KUBECONFIG}}",
Expand Down Expand Up @@ -180,6 +184,8 @@ log_level: warn
log_output: stdout
http_listen: :9090
https_listen: :9443
ingress_publish_service: ""
ingress_status_address: []
enable_profiling: true
kubernetes:
resync_interval: 1h0m0s
Expand Down