Added allowedNodeTypes to ClusterSet, and fixed NetworkPolicy reconciliation (#144)

* updated CRDs

* added Mode to ClusterSet, and enum to CRD

* fix typos

* fix mode type in cli

* deletion of second clusterset in same namespace

* removed focused test, added clusterset example

* renamed modes

* added allowedNodeTypes, fixed samples

* fixed network policy reconciliation
This commit is contained in:
Enrico Candino
2024-11-27 23:00:39 +02:00
committed by GitHub
parent 37573d36a4
commit c561b033df
10 changed files with 269 additions and 45 deletions
+9
View File
@@ -0,0 +1,9 @@
apiVersion: k3k.io/v1alpha1
kind: ClusterSet
metadata:
name: clusterset-example
# spec:
# disableNetworkPolicy: false
# allowedNodeTypes:
# - "shared"
# - "virtual"
+1
View File
@@ -3,6 +3,7 @@ kind: Cluster
metadata:
name: example1
spec:
mode: "shared"
servers: 1
agents: 3
token: test
+1
View File
@@ -3,6 +3,7 @@ kind: Cluster
metadata:
name: single-server
spec:
mode: "shared"
servers: 1
agents: 3
token: test