|
83 | 83 | {% set abac_policy_file = " --authorization-policy-file=/srv/kubernetes/abac-authz-policy.jsonl" -%}
|
84 | 84 | {% endif -%}
|
85 | 85 |
|
86 |
| -{% set webhook_authorization_config = "" -%} |
87 |
| -{% set webhook_config_mount = "" -%} |
88 |
| -{% set webhook_config_volume = "" -%} |
89 |
| -{% if grains.webhook_authorization_config is defined -%} |
90 |
| - {% set webhook_authorization_config = " --authorization-webhook-config-file=" + grains.webhook_authorization_config -%} |
91 |
| - {% set webhook_config_mount = "{\"name\": \"webhookconfigmount\",\"mountPath\": \"" + grains.webhook_authorization_config + "\", \"readOnly\": false}," -%} |
92 |
| - {% set webhook_config_volume = "{\"name\": \"webhookconfigmount\",\"hostPath\": {\"path\": \"" + grains.webhook_authorization_config + "\"}}," -%} |
93 |
| - {% set authz_mode = authz_mode + ",Webhook" -%} |
94 |
| -{% endif -%} |
95 |
| - |
96 | 86 | {% set admission_control = "" -%}
|
97 | 87 | {% if pillar['admission_control'] is defined -%}
|
98 | 88 | {% set admission_control = "--admission-control=" + pillar['admission_control'] -%}
|
|
109 | 99 | {% endif -%}
|
110 | 100 |
|
111 | 101 | {% set params = address + " " + etcd_servers + " " + etcd_servers_overrides + " " + cloud_provider + " " + cloud_config + " " + runtime_config + " " + admission_control + " " + service_cluster_ip_range + " " + client_ca_file + basic_auth_file + " " + min_request_timeout -%}
|
112 |
| -{% set params = params + " " + cert_file + " " + key_file + " --secure-port=" + secure_port + token_auth_file + " " + bind_address + " " + log_level + " " + advertise_address + " " + proxy_ssh_options + authz_mode + abac_policy_file + webhook_authorization_config-%} |
| 102 | +{% set params = params + " " + cert_file + " " + key_file + " --secure-port=" + secure_port + token_auth_file + " " + bind_address + " " + log_level + " " + advertise_address + " " + proxy_ssh_options + authz_mode + abac_policy_file -%} |
113 | 103 |
|
114 | 104 | # test_args has to be kept at the end, so they'll overwrite any prior configuration
|
115 | 105 | {% if pillar['apiserver_test_args'] is defined -%}
|
|
162 | 152 | ],
|
163 | 153 | "volumeMounts": [
|
164 | 154 | {{cloud_config_mount}}
|
165 |
| - {{webhook_config_mount}} |
166 | 155 | {{additional_cloud_config_mount}}
|
167 | 156 | { "name": "srvkube",
|
168 | 157 | "mountPath": "{{srv_kube_path}}",
|
|
190 | 179 | ],
|
191 | 180 | "volumes":[
|
192 | 181 | {{cloud_config_volume}}
|
193 |
| - {{webhook_config_volume}} |
194 | 182 | {{additional_cloud_config_volume}}
|
195 | 183 | { "name": "srvkube",
|
196 | 184 | "hostPath": {
|
|
0 commit comments