You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
For many external peers for a node, it might be difficult to change per-node settings (e.g. password, asn prepends, etc.) because they are stored in different arrays.
Describe the solution you'd like
Restructure configuration in a serialized json or yaml format, with elements of peer configurations.
apiVersion: v1
kind: Node
metadata:
annotations:
...
kube-router.io/peers: |
- remoteip: 192.168.8.254
remoteasn: 64640
password: cGFzc3dvcmQ=
...
``
For compatibility, both formats can be supported at the same time.
**Additional context**
If having multiple peers, and for example we want some fields have defaults or not specified (e.g. a password), the list can read confusing. Also, right now there are many settings applicable for a peer, and restructuring them into a real struct would enhance readability, and also would make processing it in code much simpler.
The text was updated successfully, but these errors were encountered:
That would allow the user multiple ways to specify the same data either at runtime via node annotation or via configuration file that is passed to kube-router at startup. The same Go object should be able to decode both.
Is your feature request related to a problem? Please describe.
For many external peers for a node, it might be difficult to change per-node settings (e.g. password, asn prepends, etc.) because they are stored in different arrays.
Describe the solution you'd like
Restructure configuration in a serialized json or yaml format, with elements of peer configurations.
Instead of:
We could have:
The text was updated successfully, but these errors were encountered: