mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 18:59:09 +00:00
Add network router and resource (#189)
This change adds two new resources, NetworkRouter and NetworkResource, which enable clusters to expose Kubernetes services to Netbird. The NetworkRouter is responsible for creating the network, group, setup key and routing peer all of which are unique to the isntance. Along with the deployment of the client in the cluster. The NetworkResource exposes a service by linking to the specific router it wants to expose to. This makes coupling between the resource and network easy to understand. Routers also set a DNS zone which is used to give names to resources based on the name and namespace of the service being exposed. Part of #172 Signed-off-by: Philip Laine <philip.laine@gmail.com>
This commit is contained in:
@@ -52,10 +52,11 @@ spec:
|
||||
items:
|
||||
properties:
|
||||
id:
|
||||
description: id of the resource in the Netbird API.
|
||||
description: ID is the id of a resource in the Netbird API.
|
||||
type: string
|
||||
localRef:
|
||||
description: local reference to the object in the same namespace.
|
||||
description: LocalReference is a reference to a object in the
|
||||
same namespace.
|
||||
properties:
|
||||
name:
|
||||
default: ""
|
||||
@@ -87,8 +88,13 @@ spec:
|
||||
x-kubernetes-validations:
|
||||
- message: ephemeral is immutable
|
||||
rule: self == oldSelf
|
||||
name:
|
||||
description: Name of the setup key.
|
||||
minLength: 1
|
||||
type: string
|
||||
required:
|
||||
- ephemeral
|
||||
- name
|
||||
type: object
|
||||
status:
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user