File tree Expand file tree Collapse file tree 5 files changed +21
-2
lines changed
src/KubernetesPfSenseController/Plugin Expand file tree Collapse file tree 5 files changed +21
-2
lines changed Original file line number Diff line number Diff line change
1
+ # v0.5.2
2
+
3
+ Released 2021-08-01
4
+
5
+ - update deploy assets to use modern ` apiVersion ` s
6
+ - handle more stringent type checks by php 8
7
+
1
8
# v0.5.1
2
9
3
10
Released 2021-07-31
Original file line number Diff line number Diff line change @@ -224,6 +224,14 @@ can be established. Each `kpc` instance will only require 1 process (ie: access
224
224
225
225
# Development
226
226
227
+ # # check store values
228
+
229
+ ```
230
+ kubectl -n kube-system get configmaps kubernetes-pfsense-controller-store -o json | jq -crM '.data."haproxy-declarative"' | jq .
231
+ kubectl -n kube-system get configmaps kubernetes-pfsense-controller-store -o json | jq -crM '.data."metallb"' | jq .
232
+ ...
233
+ ```
234
+
227
235
## HAProxy
228
236
XML config structure (note that `ha_backends` is actually frontends...it's badly named):
229
237
```yaml
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ metadata:
6
6
namespace : kube-system
7
7
---
8
8
kind : ClusterRole
9
- apiVersion : rbac.authorization.k8s.io/v1beta1
9
+ apiVersion : rbac.authorization.k8s.io/v1
10
10
metadata :
11
11
name : kubernetes-pfsense-controller
12
12
rules :
40
40
- watch
41
41
---
42
42
kind : ClusterRoleBinding
43
- apiVersion : rbac.authorization.k8s.io/v1beta1
43
+ apiVersion : rbac.authorization.k8s.io/v1
44
44
metadata :
45
45
name : kubernetes-pfsense-controller
46
46
roleRef :
Original file line number Diff line number Diff line change @@ -7,4 +7,5 @@ metadata:
7
7
type : Opaque
8
8
data :
9
9
# base64 encoded password
10
+ # echo -n "mypassword" | base64
10
11
pfsense-password :
Original file line number Diff line number Diff line change @@ -214,6 +214,9 @@ private function doActionGeneric()
214
214
215
215
// get store data
216
216
$ store = $ this ->getStore ();
217
+ $ store [$ pluginConfig ['bgp-implementation ' ]] = $ store [$ pluginConfig ['bgp-implementation ' ]] ?? [];
218
+ $ store [$ pluginConfig ['bgp-implementation ' ]]['managed_neighbors ' ] = $ store [$ pluginConfig ['bgp-implementation ' ]]['managed_neighbors ' ] ?? [];
219
+
217
220
$ managedNeighborNamesPreSave = @array_keys ($ managedNeighborsPreSave );
218
221
$ managedNeighborNames = @array_keys ($ store [$ pluginConfig ['bgp-implementation ' ]]['managed_neighbors ' ]);
219
222
if (empty ($ managedNeighborNames )) {
You can’t perform that action at this time.
0 commit comments