Kaynağa Gözat

chore: format manifests

Signed-off-by: squat <lserven@gmail.com>
squat 2 ay önce
ebeveyn
işleme
33e05e298f

+ 5 - 4
e2e/kilo-kind-userspace.yaml

@@ -74,9 +74,9 @@ roleRef:
   kind: ClusterRole
   name: kilo
 subjects:
-  - kind: ServiceAccount
-    name: kilo
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kilo
+  namespace: kube-system
 ---
 apiVersion: apps/v1
 kind: DaemonSet
@@ -154,7 +154,8 @@ spec:
         command:
         - /bin/sh
         - -c
-        - set -e -x;
+        - |
+          set -e -x;
           cp /opt/cni/bin/* /host/opt/cni/bin/;
           TMP_CONF="$CNI_CONF_NAME".tmp;
           echo "$CNI_NETWORK_CONFIG" > $TMP_CONF;

+ 3 - 3
manifests/kilo-bootkube-flannel.yaml

@@ -40,9 +40,9 @@ roleRef:
   kind: ClusterRole
   name: kilo
 subjects:
-  - kind: ServiceAccount
-    name: kilo
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kilo
+  namespace: kube-system
 ---
 apiVersion: apps/v1
 kind: DaemonSet

+ 5 - 4
manifests/kilo-bootkube.yaml

@@ -74,9 +74,9 @@ roleRef:
   kind: ClusterRole
   name: kilo
 subjects:
-  - kind: ServiceAccount
-    name: kilo
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kilo
+  namespace: kube-system
 ---
 apiVersion: apps/v1
 kind: DaemonSet
@@ -135,7 +135,8 @@ spec:
         command:
         - /bin/sh
         - -c
-        - set -e -x;
+        - |
+          set -e -x;
           cp /opt/cni/bin/* /host/opt/cni/bin/;
           TMP_CONF="$CNI_CONF_NAME".tmp;
           echo "$CNI_NETWORK_CONFIG" > $TMP_CONF;

+ 3 - 3
manifests/kilo-k3s-cilium.yaml

@@ -40,9 +40,9 @@ roleRef:
   kind: ClusterRole
   name: kilo
 subjects:
-  - kind: ServiceAccount
-    name: kilo
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kilo
+  namespace: kube-system
 ---
 apiVersion: v1
 kind: ConfigMap

+ 3 - 3
manifests/kilo-k3s-flannel.yaml

@@ -40,9 +40,9 @@ roleRef:
   kind: ClusterRole
   name: kilo
 subjects:
-  - kind: ServiceAccount
-    name: kilo
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kilo
+  namespace: kube-system
 ---
 apiVersion: v1
 kind: ConfigMap

+ 7 - 5
manifests/kilo-k3s-userspace-heterogeneous.yaml

@@ -75,9 +75,9 @@ roleRef:
   kind: ClusterRole
   name: kilo
 subjects:
-  - kind: ServiceAccount
-    name: kilo
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kilo
+  namespace: kube-system
 ---
 apiVersion: v1
 kind: ConfigMap
@@ -189,7 +189,8 @@ spec:
         command:
         - /bin/sh
         - -c
-        - set -e -x;
+        - |
+          set -e -x;
           cp /opt/cni/bin/* /host/opt/cni/bin/;
           TMP_CONF="$CNI_CONF_NAME".tmp;
           echo "$CNI_NETWORK_CONFIG" > $TMP_CONF;
@@ -336,7 +337,8 @@ spec:
         command:
         - /bin/sh
         - -c
-        - set -e -x;
+        - |
+          set -e -x;
           cp /opt/cni/bin/* /host/opt/cni/bin/;
           TMP_CONF="$CNI_CONF_NAME".tmp;
           echo "$CNI_NETWORK_CONFIG" > $TMP_CONF;

+ 6 - 4
manifests/kilo-k3s-userspace.yaml

@@ -74,10 +74,11 @@ roleRef:
   kind: ClusterRole
   name: kilo
 subjects:
-  - kind: ServiceAccount
-    name: kilo
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kilo
+  namespace: kube-system
 ---
+
 ---
 apiVersion: v1
 kind: ConfigMap
@@ -203,7 +204,8 @@ spec:
         command:
         - /bin/sh
         - -c
-        - set -e -x;
+        - |
+          set -e -x;
           cp /opt/cni/bin/* /host/opt/cni/bin/;
           TMP_CONF="$CNI_CONF_NAME".tmp;
           echo "$CNI_NETWORK_CONFIG" > $TMP_CONF;

+ 5 - 4
manifests/kilo-k3s.yaml

@@ -74,9 +74,9 @@ roleRef:
   kind: ClusterRole
   name: kilo
 subjects:
-  - kind: ServiceAccount
-    name: kilo
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kilo
+  namespace: kube-system
 ---
 apiVersion: v1
 kind: ConfigMap
@@ -185,7 +185,8 @@ spec:
         command:
         - /bin/sh
         - -c
-        - set -e -x;
+        - |
+          set -e -x;
           cp /opt/cni/bin/* /host/opt/cni/bin/;
           TMP_CONF="$CNI_CONF_NAME".tmp;
           echo "$CNI_NETWORK_CONFIG" > $TMP_CONF;

+ 16 - 20
manifests/kilo-kubeadm-cilium.yaml

@@ -40,9 +40,9 @@ roleRef:
   kind: ClusterRole
   name: kilo
 subjects:
-  - kind: ServiceAccount
-    name: kilo
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kilo
+  namespace: kube-system
 ---
 apiVersion: apps/v1
 kind: DaemonSet
@@ -92,18 +92,16 @@ spec:
         volumeMounts:
         - name: kilo-dir
           mountPath: /var/lib/kilo
-
-        # with kube-proxy configmap
-        # - name: kubeconfig
-        #   mountPath: /etc/kubernetes
-        #   readOnly: true
-
         # without kube-proxy host kubeconfig binding
         - name: kubeconfig
+          # with kube-proxy configmap
+          # - name: kubeconfig
+          #   mountPath: /etc/kubernetes
+          #   readOnly: true
+
           mountPath: /etc/kubernetes/kubeconfig
           subPath: admin.conf
           readOnly: true
-
         - name: lib-modules
           mountPath: /lib/modules
           readOnly: true
@@ -119,20 +117,18 @@ spec:
       - name: kilo-dir
         hostPath:
           path: /var/lib/kilo
-
-      # with kube-proxy configmap
-      # - name: kubeconfig
-      #   configMap:
-      #     name: kube-proxy
-      #     items:
-      #       - key: kubeconfig.conf
-      #         path: kubeconfig
-
       # without kube-proxy host kubeconfig binding
       - name: kubeconfig
+        # with kube-proxy configmap
+        # - name: kubeconfig
+        #   configMap:
+        #     name: kube-proxy
+        #     items:
+        #       - key: kubeconfig.conf
+        #         path: kubeconfig
+
         hostPath:
           path: /etc/kubernetes
-
       - name: lib-modules
         hostPath:
           path: /lib/modules

+ 9 - 9
manifests/kilo-kubeadm-flannel-userspace.yaml

@@ -40,9 +40,9 @@ roleRef:
   kind: ClusterRole
   name: kilo
 subjects:
-  - kind: ServiceAccount
-    name: kilo
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kilo
+  namespace: kube-system
 ---
 apiVersion: apps/v1
 kind: DaemonSet
@@ -69,15 +69,15 @@ spec:
       - name: boringtun
         image: leonnicolas/boringtun:cc19859
         args:
-          - --disable-drop-privileges=true
-          - --foreground
-          - kilo0
+        - --disable-drop-privileges=true
+        - --foreground
+        - kilo0
         securityContext:
           privileged: true
         volumeMounts:
-          - name: wireguard
-            mountPath: /var/run/wireguard
-            readOnly: false
+        - name: wireguard
+          mountPath: /var/run/wireguard
+          readOnly: false
       - name: kilo
         image: squat/kilo:0.6.0
         args:

+ 3 - 3
manifests/kilo-kubeadm-flannel.yaml

@@ -40,9 +40,9 @@ roleRef:
   kind: ClusterRole
   name: kilo
 subjects:
-  - kind: ServiceAccount
-    name: kilo
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kilo
+  namespace: kube-system
 ---
 apiVersion: apps/v1
 kind: DaemonSet

+ 11 - 10
manifests/kilo-kubeadm-userspace.yaml

@@ -74,9 +74,9 @@ roleRef:
   kind: ClusterRole
   name: kilo
 subjects:
-  - kind: ServiceAccount
-    name: kilo
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kilo
+  namespace: kube-system
 ---
 apiVersion: apps/v1
 kind: DaemonSet
@@ -104,15 +104,15 @@ spec:
         image: leonnicolas/boringtun:cc19859
         imagePullPolicy: IfNotPresent
         args:
-          - --disable-drop-privileges
-          - --foreground
-          - kilo0
+        - --disable-drop-privileges
+        - --foreground
+        - kilo0
         securityContext:
           privileged: true
         volumeMounts:
-          - name: wireguard
-            mountPath: /var/run/wireguard
-            readOnly: false
+        - name: wireguard
+          mountPath: /var/run/wireguard
+          readOnly: false
       - name: kilo
         image: squat/kilo:0.6.0
         imagePullPolicy: IfNotPresent
@@ -155,7 +155,8 @@ spec:
         command:
         - /bin/sh
         - -c
-        - set -e -x;
+        - |
+          set -e -x;
           cp /opt/cni/bin/* /host/opt/cni/bin/;
           TMP_CONF="$CNI_CONF_NAME".tmp;
           echo "$CNI_NETWORK_CONFIG" > $TMP_CONF;

+ 5 - 4
manifests/kilo-kubeadm.yaml

@@ -74,9 +74,9 @@ roleRef:
   kind: ClusterRole
   name: kilo
 subjects:
-  - kind: ServiceAccount
-    name: kilo
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kilo
+  namespace: kube-system
 ---
 apiVersion: apps/v1
 kind: DaemonSet
@@ -135,7 +135,8 @@ spec:
         command:
         - /bin/sh
         - -c
-        - set -e -x;
+        - |
+          set -e -x;
           cp /opt/cni/bin/* /host/opt/cni/bin/;
           TMP_CONF="$CNI_CONF_NAME".tmp;
           echo "$CNI_NETWORK_CONFIG" > $TMP_CONF;

+ 3 - 3
manifests/kilo-typhoon-flannel.yaml

@@ -40,9 +40,9 @@ roleRef:
   kind: ClusterRole
   name: kilo
 subjects:
-  - kind: ServiceAccount
-    name: kilo
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kilo
+  namespace: kube-system
 ---
 apiVersion: apps/v1
 kind: DaemonSet

+ 5 - 4
manifests/kilo-typhoon.yaml

@@ -74,9 +74,9 @@ roleRef:
   kind: ClusterRole
   name: kilo
 subjects:
-  - kind: ServiceAccount
-    name: kilo
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kilo
+  namespace: kube-system
 ---
 apiVersion: apps/v1
 kind: DaemonSet
@@ -135,7 +135,8 @@ spec:
         command:
         - /bin/sh
         - -c
-        - set -e -x;
+        - |
+          set -e -x;
           cp /opt/cni/bin/* /host/opt/cni/bin/;
           TMP_CONF="$CNI_CONF_NAME".tmp;
           echo "$CNI_NETWORK_CONFIG" > $TMP_CONF;

+ 3 - 3
manifests/kube-router.yaml

@@ -107,6 +107,6 @@ roleRef:
   kind: ClusterRole
   name: kube-router
 subjects:
-  - kind: ServiceAccount
-    name: kube-router
-    namespace: kube-system
+- kind: ServiceAccount
+  name: kube-router
+  namespace: kube-system

+ 12 - 12
manifests/peer-validation.yaml

@@ -10,11 +10,11 @@ metadata:
 webhooks:
 - name: "peers.kilo.squat.ai"
   rules:
-  - apiGroups:   ["kilo.squat.ai"]
+  - apiGroups: ["kilo.squat.ai"]
     apiVersions: ["v1alpha1"]
-    operations:  ["CREATE","UPDATE"]
-    resources:   ["peers"]
-    scope:       "Cluster"
+    operations: ["CREATE", "UPDATE"]
+    resources: ["peers"]
+    scope: "Cluster"
   clientConfig:
     service:
       namespace: "kilo"
@@ -76,8 +76,8 @@ spec:
   selector:
     app.kubernetes.io/name: peer-validation-server
   ports:
-    - port: 443
-      targetPort: webhook
+  - port: 443
+    targetPort: webhook
 ---
 apiVersion: v1
 kind: ServiceAccount
@@ -109,9 +109,9 @@ roleRef:
   kind: ClusterRole
   name: kilo-peer-validation
 subjects:
-  - kind: ServiceAccount
-    namespace: kilo
-    name: kilo-peer-validation
+- kind: ServiceAccount
+  namespace: kilo
+  name: kilo-peer-validation
 ---
 apiVersion: rbac.authorization.k8s.io/v1
 kind: Role
@@ -137,9 +137,9 @@ roleRef:
   kind: Role
   name: kilo-peer-validation
 subjects:
-  - kind: ServiceAccount
-    namespace: kilo
-    name: kilo-peer-validation
+- kind: ServiceAccount
+  namespace: kilo
+  name: kilo-peer-validation
 ---
 apiVersion: batch/v1
 kind: Job