Skip to content

Commit d0d51ca

Browse files
authored
docs(MEP16): FCM contents adjustments (#142)
1 parent 11aa745 commit d0d51ca

File tree

1 file changed

+26
-12
lines changed
  • docs/contributing/01-Proposals/MEP16

1 file changed

+26
-12
lines changed

docs/contributing/01-Proposals/MEP16/README.md

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,16 @@ spec:
204204
firewall:
205205
source: static
206206
- path: /etc/firewall-controller/seed.yaml
207-
secretRef:
208-
name: seed-kubeconfig
209-
generateFirewallControllerKubeconfig: true
207+
contentFrom:
208+
firewallControllerKubeconfigSecret:
209+
name: seed-kubeconfig
210+
key: kubeconfig
211+
210212
- path: /etc/firewall-controller/shoot.yaml
211-
secretRef:
212-
name: shoot-kubeconfig
213+
contentFrom:
214+
secretRef:
215+
name: shoot-kubeconfig
216+
key: kubeconfig
213217
```
214218

215219
### Gardener Extension Provider Metal Stack
@@ -236,11 +240,17 @@ spec:
236240
firewallTemplate:
237241
userdataContents:
238242
- path: /etc/firewall-controller/config.yaml
239-
secretName: ${CLUSTER_NAME}-firewall-controller-config
243+
contentFrom:
244+
secretRef:
245+
name: ${CLUSTER_NAME}-firewall-controller-config
246+
key: controllerConfig
240247
241248
- path: /etc/firewall-controller/workload.yaml
242-
# this is the kubeconfig generated by kubeadm
243-
secretName: ${CLUSTER_NAME}-kubeconfig
249+
contentFrom:
250+
# this is the kubeconfig generated by kubeadm
251+
secretRef:
252+
name: ${CLUSTER_NAME}-kubeconfig
253+
key: value
244254
---
245255
kind: Secret
246256
metadata:
@@ -294,25 +304,29 @@ In case this control surfaces as a requirement, it would need to be implemented
294304

295305
In general this proposal is not thought to be implemented in one batch. Instead an incremental approach is required.
296306

297-
1. Enhance firewall-controller
307+
1. Enhance firewall-controller-manager
308+
309+
- Add `FirewallDeployment.spec.template.spec.userdataContents`
310+
311+
2. Enhance firewall-controller
298312

299313
- Reduce coupling between controllers
300314
- Introduce controller config
301315
- Abstract module to write into distinct nftable rules for every controller
302316
- Implement `sources.static`, but not `sources.metal`
303317
- GEPM should set `FirewallDeployment.spec.template.spec.userdataContents`
304318

305-
2. Allow Cluster API to use the FCM with static ruleset
319+
3. Allow Cluster API to use the FCM with static ruleset
306320

307321
- Add `firewall.metal-stack.io/paused` annotation (managed by CAPMS during `clusterctl move`, theoretically useful for Gardener shoot migration as well to avoid shallow deletion).
308322
- Reconcile multiple `FirewallDeployment` resources across multiple namespaces. For Gardener the old behavior of reconciling only one namespace should persist.
309323
- Allow setting the `firewall.metal-stack.io/no-controller-connection` annotation through the `FirewallDeployment` (either through the template or inheritance).
310324
- Add `MetalStackCluster.spec.firewallTemplate`.
311325
- Make `MetalStackCluster.spec.nodeNetworkID` optional if `spec.firewallTemplate` given.
312326

313-
3. Add `sources.metal` as configuration option.
327+
4. Add `sources.metal` as configuration option.
314328

315329
- Allow updates of firewall rules in the metal-apiserver.
316330
- Depends on [MEP-4](../MEP4/README.md) metal-apiserver progress
317331

318-
4. Potentially migrate the GEPM to use `sources.metal`
332+
5. Potentially migrate the GEPM to use `sources.metal`

0 commit comments

Comments
 (0)