mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 18:59:09 +00:00
Add support for policy auto-creation
This commit is contained in:
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: kubernetes-operator
|
||||
description: NetBird Kubernetes Operator
|
||||
type: application
|
||||
version: 0.1.7
|
||||
appVersion: "0.1.2"
|
||||
version: 0.1.8
|
||||
appVersion: "0.1.3"
|
||||
|
||||
@@ -55,8 +55,16 @@ spec:
|
||||
x-kubernetes-validations:
|
||||
- message: Value is immutable
|
||||
rule: self == oldSelf
|
||||
policyFriendlyName:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
policyName:
|
||||
type: string
|
||||
policySourceGroups:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
tcpPorts:
|
||||
items:
|
||||
format: int32
|
||||
@@ -116,8 +124,20 @@ spec:
|
||||
type: array
|
||||
networkResourceID:
|
||||
type: string
|
||||
policyFriendlyName:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
policyName:
|
||||
type: string
|
||||
policyNameMapping:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
policySourceGroups:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
tcpPorts:
|
||||
items:
|
||||
format: int32
|
||||
|
||||
@@ -60,6 +60,9 @@ spec:
|
||||
{{- if or .Values.netbirdAPI.key .Values.netbirdAPI.keyFromSecret }}
|
||||
- --netbird-api-key=$(NB_API_KEY)
|
||||
{{- end }}
|
||||
{{- if .Values.ingress.allowAutomaticPolicyCreation }}
|
||||
- --allow-automatic-policy-creation
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: webhook-server
|
||||
containerPort: {{ .Values.webhook.service.port }}
|
||||
|
||||
@@ -135,6 +135,8 @@ ingress:
|
||||
enabled: false
|
||||
# Create router per namespace, useful for strict networking requirements
|
||||
namespacedNetworks: false
|
||||
# Allow creating policies through Service annotations
|
||||
allowAutomaticPolicyCreation: false
|
||||
kubernetesAPI:
|
||||
enabled: false
|
||||
groups: []
|
||||
|
||||
Reference in New Issue
Block a user