File tree Expand file tree Collapse file tree 2 files changed +0
-33
lines changed
internal/controller/config Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,3 @@ leader_election:
1515 retry_period : 2s # retry_period is the time in seconds that the acting controller
1616 # will wait between tries of actions with the controller.
1717 disable : false # Whether to disable leader election.
18-
19- # ingress_class: api7 # The ingress class name of the API7 Ingress Controller.
20- # ingress_publish_service: "" # The service name of the ingress publish service.
21- # ingress_status_address: [] # The status address of the ingress.
22- # gateway_configs: # The configuration of the API7 Gateway.
23- # - name: api7 # The name of the Gateway in the Gateway API.
24- # control_plane:
25- # admin_key: "${ADMIN_KEY}" # The admin key of the control plane.
26- # endpoints:
27- # - ${ENDPOINT} # The endpoint of the control plane.
28- # tls_verify: false
29- # addresses: # record the status address of the gateway-api gateway
30- # - "172.18.0.4" # The LB IP of the gateway service.
Original file line number Diff line number Diff line change @@ -89,26 +89,6 @@ func (c *Config) Validate() error {
8989 return nil
9090}
9191
92- //nolint:unused
93- func (c * Config ) validateGatewayConfig (gc * GatewayConfig ) error {
94-
95- if gc .Name == "" {
96- return fmt .Errorf ("control_planesp[].gateway_name is required" )
97- }
98- if gc .ControlPlane .AdminKey == "" {
99- return fmt .Errorf ("control_planes[].admin_api.admin_key is required" )
100- }
101- if len (gc .ControlPlane .Endpoints ) == 0 {
102- return fmt .Errorf ("control_planes[].admin_api.endpoints is required" )
103- }
104- if gc .ControlPlane .TLSVerify == nil {
105- gc .ControlPlane .TLSVerify = new (bool )
106- * gc .ControlPlane .TLSVerify = true
107- }
108-
109- return nil
110- }
111-
11292func GetControllerName () string {
11393 return ControllerConfig .ControllerName
11494}
You can’t perform that action at this time.
0 commit comments