File tree Expand file tree Collapse file tree 4 files changed +20
-8
lines changed
internal/controller/config Expand file tree Collapse file tree 4 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,6 @@ metadata:
55 namespace : {{ .Release.Namespace }}
66data :
77 config.yaml : |
8- cert_file: {{ .Values.config.certFile | default "" }}
9-
10- key_file: {{ .Values.config.keyFile | default "" }}
11-
128 log_level: {{ .Values.config.logLevel | default "info" }}
139
1410 controller_name: {{ .Values.config.controllerName | default "apisix.apache.org/apisix-ingress-controller" }}
3430 secure_metrics: {{ .Values.config.secureMetrics | default "" }}
3531
3632 exec_adc_timeout: {{ .Values.config.execADCTimeout | default "15s" }}
33+
34+ provider:
35+ sync_period: {{ .Values.config.provider.syncPeriod | default "0s" }}
36+
37+ init_sync_delay: {{ .Values.config.provider.initSyncDelay | default "20m" }}
Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ deployment:
3838 tag : " dev"
3939
4040config :
41- certFile : " "
42- keyFile : " "
4341 logLevel : " info"
4442 controllerName : apisix.apache.org/apisix-ingress-controller
4543 leaderElection :
@@ -53,3 +51,6 @@ config:
5351 probeAddr : " :8081"
5452 secureMetrics : " "
5553 execADCTimeout : " 15s"
54+ provider :
55+ syncPeriod : " 0s"
56+ initSyncDelay : " 20m"
Original file line number Diff line number Diff line change @@ -16,6 +16,18 @@ leader_election:
1616 # will wait between tries of actions with the controller.
1717 disable : false # Whether to disable leader election.
1818
19+ metrics_addr : " :8080" # The address the metrics endpoint binds to.
20+ # The default value is ":8080".
21+
22+ enable_http2 : false # Whether to enable HTTP/2 for the server.
23+ # The default value is false.
24+
25+ probe_addr : " :8081" # The address the probe endpoint binds to.
26+ # The default value is ":8081".
27+
28+ secure_metrics : " " # The secure metrics configuration.
29+ # The default value is "" (empty).
30+
1931exec_adc_timeout : 15s # The timeout for the ADC to execute.
2032 # The default value is 15 seconds.
2133
Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ const (
3636// Config contains all config items which are necessary for
3737// apisix-ingress-controller's running.
3838type Config struct {
39- CertFilePath string `json:"cert_file" yaml:"cert_file"`
40- KeyFilePath string `json:"key_file" yaml:"key_file"`
4139 LogLevel string `json:"log_level" yaml:"log_level"`
4240 ControllerName string `json:"controller_name" yaml:"controller_name"`
4341 LeaderElectionID string `json:"leader_election_id" yaml:"leader_election_id"`
You can’t perform that action at this time.
0 commit comments