Rename cluster-e2etest to cluster-icn 68/4568/2
authorTodd Malsbary <todd.malsbary@intel.com>
Tue, 14 Dec 2021 19:51:28 +0000 (11:51 -0800)
committerTodd Malsbary <todd.malsbary@intel.com>
Tue, 4 Jan 2022 18:37:34 +0000 (10:37 -0800)
This compute cluster definition includes all possible ICN addons.

Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I957e3a6dbdd459a8037f50f0313a65a652023eb1

35 files changed:
README.md
deploy/addons/addons.sh
deploy/cluster/values.yaml
deploy/kata/kata.sh
deploy/site/cluster-icn/cdi-operator-release.yaml [moved from deploy/site/cluster-e2etest/cdi-operator-release.yaml with 100% similarity]
deploy/site/cluster-icn/cdi-release.yaml [moved from deploy/site/cluster-e2etest/cdi-release.yaml with 100% similarity]
deploy/site/cluster-icn/cpu-manager-release.yaml [moved from deploy/site/cluster-e2etest/cpu-manager-release.yaml with 100% similarity]
deploy/site/cluster-icn/emco-db-release.yaml [moved from deploy/site/cluster-e2etest/emco-db-release.yaml with 100% similarity]
deploy/site/cluster-icn/emco-monitor-release.yaml [moved from deploy/site/cluster-e2etest/emco-monitor-release.yaml with 100% similarity]
deploy/site/cluster-icn/emco-namespace.yaml [moved from deploy/site/cluster-e2etest/emco-namespace.yaml with 100% similarity]
deploy/site/cluster-icn/emco-podsecurity-release.yaml [moved from deploy/site/cluster-e2etest/emco-podsecurity-release.yaml with 100% similarity]
deploy/site/cluster-icn/emco-services-release.yaml [moved from deploy/site/cluster-e2etest/emco-services-release.yaml with 100% similarity]
deploy/site/cluster-icn/emco-source.yaml [moved from deploy/site/cluster-e2etest/emco-source.yaml with 100% similarity]
deploy/site/cluster-icn/emco-tools-release.yaml [moved from deploy/site/cluster-e2etest/emco-tools-release.yaml with 100% similarity]
deploy/site/cluster-icn/flux-system/gotk-components.yaml [moved from deploy/site/cluster-e2etest/flux-system/gotk-components.yaml with 100% similarity]
deploy/site/cluster-icn/flux-system/gotk-sync.yaml [moved from deploy/site/cluster-e2etest/flux-system/gotk-sync.yaml with 87% similarity]
deploy/site/cluster-icn/flux-system/kustomization.yaml [moved from deploy/site/cluster-e2etest/flux-system/kustomization.yaml with 100% similarity]
deploy/site/cluster-icn/kata-kustomization.yaml [moved from deploy/site/cluster-e2etest/kata-kustomization.yaml with 100% similarity]
deploy/site/cluster-icn/kubevirt-operator-release.yaml [moved from deploy/site/cluster-e2etest/kubevirt-operator-release.yaml with 100% similarity]
deploy/site/cluster-icn/kubevirt-release.yaml [moved from deploy/site/cluster-e2etest/kubevirt-release.yaml with 100% similarity]
deploy/site/cluster-icn/kud-namespace.yaml [moved from deploy/site/cluster-e2etest/kud-namespace.yaml with 100% similarity]
deploy/site/cluster-icn/kud-podsecurity-release.yaml [moved from deploy/site/cluster-e2etest/kud-podsecurity-release.yaml with 100% similarity]
deploy/site/cluster-icn/kud-source.yaml [moved from deploy/site/cluster-e2etest/kud-source.yaml with 100% similarity]
deploy/site/cluster-icn/multus-cni-release.yaml [moved from deploy/site/cluster-e2etest/multus-cni-release.yaml with 100% similarity]
deploy/site/cluster-icn/node-feature-discovery-release.yaml [moved from deploy/site/cluster-e2etest/node-feature-discovery-release.yaml with 100% similarity]
deploy/site/cluster-icn/ovn4nfv-network-release.yaml [moved from deploy/site/cluster-e2etest/ovn4nfv-network-release.yaml with 100% similarity]
deploy/site/cluster-icn/ovn4nfv-release.yaml [moved from deploy/site/cluster-e2etest/ovn4nfv-release.yaml with 100% similarity]
deploy/site/cluster-icn/qat-device-plugin-release.yaml [moved from deploy/site/cluster-e2etest/qat-device-plugin-release.yaml with 100% similarity]
deploy/site/cluster-icn/sriov-network-operator-release.yaml [moved from deploy/site/cluster-e2etest/sriov-network-operator-release.yaml with 100% similarity]
deploy/site/cluster-icn/sriov-network-release.yaml [moved from deploy/site/cluster-e2etest/sriov-network-release.yaml with 100% similarity]
deploy/site/pod11/pod11.sh
deploy/site/pod11/site.yaml
deploy/site/vm/site.yaml
deploy/site/vm/vm.sh
tools/migration/to_r6.sh

index 9ca60b4..da6a544 100644 (file)
--- a/README.md
+++ b/README.md
@@ -317,7 +317,7 @@ spec:
         flux:
             url: https://gerrit.akraino.org/r/icn
             branch: master
-            path: ./deploy/site/cluster-e2etest
+            path: ./deploy/site/cluster-icn
 ```
 
 A brief overview of the values is below. Refer to the machine and
index 33f5d80..28337d9 100755 (executable)
@@ -11,7 +11,7 @@ BUILDDIR=${SCRIPTDIR/deploy/build}
 mkdir -p ${BUILDDIR}
 
 function register_emco_controllers {
-    local -r cluster_name=${CLUSTER_NAME:-e2etest}
+    local -r cluster_name=${CLUSTER_NAME:-icn}
     local -r host=$(kubectl -n metal3 get cluster/${cluster_name} -o jsonpath='{.spec.controlPlaneEndpoint.host}')
     cat <<EOF >${BUILDDIR}/${cluster_name}-config.yaml
 orchestrator:
@@ -66,13 +66,13 @@ EOF
 }
 
 function unregister_emco_controllers {
-    local -r cluster_name=${CLUSTER_NAME:-e2etest}
+    local -r cluster_name=${CLUSTER_NAME:-icn}
     emcoctl --config ${BUILDDIR}/${cluster_name}-config.yaml delete -f ${BUILDDIR}/${cluster_name}-controllers.yaml
 }
 
 function test_addons {
     # Create a temporary kubeconfig file for the tests
-    local -r cluster_name=${CLUSTER_NAME:-e2etest}
+    local -r cluster_name=${CLUSTER_NAME:-icn}
     local -r cluster_kubeconfig="${BUILDDIR}/${cluster_name}.conf"
     clusterctl -n metal3 get kubeconfig ${cluster_name} >${cluster_kubeconfig}
 
@@ -113,7 +113,7 @@ case $1 in
 Usage: $(basename $0) COMMAND
 
 The "test" command looks for the CLUSTER_NAME variable in the
-environment (default: "e2etest").  This should be the name of the
+environment (default: "icn").  This should be the name of the
 Cluster resource to execute the tests in.
 
 Commands:
index 87c2632..63b7fad 100644 (file)
@@ -73,7 +73,7 @@ flux:
   branch: master
   # path is the repository to the resources to be applied to the
   # cluster.
-  path: ./deploy/site/e2etest
+  path: ./deploy/site/cluster-icn
 
 # containerRuntime may be containerd or docker.
 containerRuntime: containerd
index 75ca024..0cc3b86 100755 (executable)
@@ -65,14 +65,14 @@ function clean_webhook {
 }
 
 function is_kata_deployed {
-    local -r cluster_name=${CLUSTER_NAME:-e2etest}
+    local -r cluster_name=${CLUSTER_NAME:-icn}
     local -r cluster_kubeconfig="${BUILDDIR}/${cluster_name}.conf"
     kubectl --kubeconfig=${cluster_kubeconfig} get runtimeclass/kata-qemu
 }
 
 function test_kata {
     # Create a temporary kubeconfig file for the tests
-    local -r cluster_name=${CLUSTER_NAME:-e2etest}
+    local -r cluster_name=${CLUSTER_NAME:-icn}
     local -r cluster_kubeconfig="${BUILDDIR}/${cluster_name}.conf"
     clusterctl -n metal3 get kubeconfig ${cluster_name} >${cluster_kubeconfig}
 
@@ -102,7 +102,7 @@ case $1 in
 Usage: $(basename $0) COMMAND
 
 The "test" command looks for the CLUSTER_NAME variable in the
-environment (default: "e2etest").  This should be the name of the
+environment (default: "icn").  This should be the name of the
 Cluster resource to execute the tests in.
 
 Commands:
@@ -15,11 +15,11 @@ spec:
 apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
 kind: Kustomization
 metadata:
-  name: e2etest-flux-sync
+  name: icn-flux-sync
   namespace: flux-system
 spec:
   interval: 10m0s
-  path: ./deploy/site/cluster-e2etest
+  path: ./deploy/site/cluster-icn
   prune: true
   sourceRef:
     kind: GitRepository
index c26b239..c031495 100755 (executable)
@@ -25,15 +25,15 @@ function clean {
 }
 
 function is_cluster_ready {
-    [[ $(kubectl -n metal3 get cluster e2etest -o jsonpath='{.status.conditions[?(@.type=="Ready")].status}') == "True" ]]
+    [[ $(kubectl -n metal3 get cluster icn -o jsonpath='{.status.conditions[?(@.type=="Ready")].status}') == "True" ]]
 }
 
 function is_control_plane_ready {
     # Checking the Cluster resource status is not sufficient, it
     # reports the control plane as ready before the nodes forming the
     # control plane are ready
-    local -r replicas=$(kubectl -n metal3 get kubeadmcontrolplane e2etest -o jsonpath='{.spec.replicas}')
-    [[ $(kubectl --kubeconfig=${BUILDDIR}/e2etest-admin.conf get nodes -l node-role.kubernetes.io/control-plane -o jsonpath='{range .items[*]}{.status.conditions[?(@.type=="Ready")].status}{"\n"}{end}' | grep -c True) == ${replicas} ]]
+    local -r replicas=$(kubectl -n metal3 get kubeadmcontrolplane icn -o jsonpath='{.spec.replicas}')
+    [[ $(kubectl --kubeconfig=${BUILDDIR}/icn-admin.conf get nodes -l node-role.kubernetes.io/control-plane -o jsonpath='{range .items[*]}{.status.conditions[?(@.type=="Ready")].status}{"\n"}{end}' | grep -c True) == ${replicas} ]]
 }
 
 function insert_control_plane_network_identity_into_ssh_config {
@@ -46,8 +46,8 @@ function insert_control_plane_network_identity_into_ssh_config {
     chmod 600 ${HOME}/.ssh/config
     # Add the entry for the control plane network, host value in ssh
     # config is a wildcard
-    endpoint=$(helm -n metal3 get values -a cluster-e2etest | awk '/controlPlaneEndpoint:/ {print $2}')
-    prefix=$(helm -n metal3 get values -a cluster-e2etest | awk '/controlPlanePrefix:/ {print $2}')
+    endpoint=$(helm -n metal3 get values -a cluster-icn | awk '/controlPlaneEndpoint:/ {print $2}')
+    prefix=$(helm -n metal3 get values -a cluster-icn | awk '/controlPlanePrefix:/ {print $2}')
     host=$(ipcalc ${endpoint}/${prefix} | awk '/Network:/ {sub(/\.0.*/,".*"); print $2}')
     if [[ $(grep -c "Host ${host}" ${HOME}/.ssh/config) != 0 ]]; then
        sed -i -e '/Host '"${host}"'/,+1 d' ${HOME}/.ssh/config
@@ -62,8 +62,8 @@ function wait_for_all_ready {
     WAIT_FOR_INTERVAL=60s
     WAIT_FOR_TRIES=30
     wait_for is_cluster_ready
-    clusterctl -n metal3 get kubeconfig e2etest >${BUILDDIR}/e2etest-admin.conf
-    chmod 600 ${BUILDDIR}/e2etest-admin.conf
+    clusterctl -n metal3 get kubeconfig icn >${BUILDDIR}/icn-admin.conf
+    chmod 600 ${BUILDDIR}/icn-admin.conf
     wait_for is_control_plane_ready
     insert_control_plane_network_identity_into_ssh_config
 }
index 9c66316..7b423cb 100644 (file)
@@ -225,7 +225,7 @@ sops:
 apiVersion: helm.toolkit.fluxcd.io/v2beta1
 kind: HelmRelease
 metadata:
-    name: cluster-e2etest
+    name: cluster-icn
     namespace: metal3
 spec:
     interval: 5m
@@ -237,7 +237,7 @@ spec:
                 name: icn
             interval: 1m
     values:
-        clusterName: e2etest
+        clusterName: icn
         clusterLabels:
             site: pod11
         controlPlaneEndpoint: 10.10.110.23
@@ -253,7 +253,7 @@ spec:
         flux:
             url: https://gerrit.akraino.org/r/icn
             branch: master
-            path: ./deploy/site/cluster-e2etest
+            path: ./deploy/site/cluster-icn
 sops:
     kms: []
     gcp_kms: []
index 3dce0b8..b393f73 100644 (file)
@@ -185,7 +185,7 @@ sops:
 apiVersion: helm.toolkit.fluxcd.io/v2beta1
 kind: HelmRelease
 metadata:
-    name: cluster-e2etest
+    name: cluster-icn
     namespace: metal3
 spec:
     interval: 5m
@@ -197,7 +197,7 @@ spec:
                 name: icn
             interval: 1m
     values:
-        clusterName: e2etest
+        clusterName: icn
         clusterLabels:
             site: vm
         keepalived:
@@ -214,7 +214,7 @@ spec:
         flux:
             url: https://gerrit.akraino.org/r/icn
             branch: master
-            path: ./deploy/site/cluster-e2etest
+            path: ./deploy/site/cluster-icn
 sops:
     kms: []
     gcp_kms: []
index 841644b..de1fdf8 100755 (executable)
@@ -50,15 +50,15 @@ function clean {
 }
 
 function is_cluster_ready {
-    [[ $(kubectl -n metal3 get cluster e2etest -o jsonpath='{.status.conditions[?(@.type=="Ready")].status}') == "True" ]]
+    [[ $(kubectl -n metal3 get cluster icn -o jsonpath='{.status.conditions[?(@.type=="Ready")].status}') == "True" ]]
 }
 
 function is_control_plane_ready {
     # Checking the Cluster resource status is not sufficient, it
     # reports the control plane as ready before the nodes forming the
     # control plane are ready
-    local -r replicas=$(kubectl -n metal3 get kubeadmcontrolplane e2etest -o jsonpath='{.spec.replicas}')
-    [[ $(kubectl --kubeconfig=${BUILDDIR}/e2etest-admin.conf get nodes -l node-role.kubernetes.io/control-plane -o jsonpath='{range .items[*]}{.status.conditions[?(@.type=="Ready")].status}{"\n"}{end}' | grep -c True) == ${replicas} ]]
+    local -r replicas=$(kubectl -n metal3 get kubeadmcontrolplane icn -o jsonpath='{.spec.replicas}')
+    [[ $(kubectl --kubeconfig=${BUILDDIR}/icn-admin.conf get nodes -l node-role.kubernetes.io/control-plane -o jsonpath='{range .items[*]}{.status.conditions[?(@.type=="Ready")].status}{"\n"}{end}' | grep -c True) == ${replicas} ]]
 }
 
 function insert_control_plane_network_identity_into_ssh_config {
@@ -71,8 +71,8 @@ function insert_control_plane_network_identity_into_ssh_config {
     chmod 600 ${HOME}/.ssh/config
     # Add the entry for the control plane network, host value in ssh
     # config is a wildcard
-    endpoint=$(helm -n metal3 get values -a cluster-e2etest | awk '/controlPlaneEndpoint:/ {print $2}')
-    prefix=$(helm -n metal3 get values -a cluster-e2etest | awk '/controlPlanePrefix:/ {print $2}')
+    endpoint=$(helm -n metal3 get values -a cluster-icn | awk '/controlPlaneEndpoint:/ {print $2}')
+    prefix=$(helm -n metal3 get values -a cluster-icn | awk '/controlPlanePrefix:/ {print $2}')
     host=$(ipcalc ${endpoint}/${prefix} | awk '/Network:/ {sub(/\.0.*/,".*"); print $2}')
     if [[ $(grep -c "Host ${host}" ${HOME}/.ssh/config) != 0 ]]; then
        sed -i -e '/Host '"${host}"'/,+1 d' ${HOME}/.ssh/config
@@ -87,8 +87,8 @@ function wait_for_all_ready {
     WAIT_FOR_INTERVAL=60s
     WAIT_FOR_TRIES=30
     wait_for is_cluster_ready
-    clusterctl -n metal3 get kubeconfig e2etest >${BUILDDIR}/e2etest-admin.conf
-    chmod 600 ${BUILDDIR}/e2etest-admin.conf
+    clusterctl -n metal3 get kubeconfig icn >${BUILDDIR}/icn-admin.conf
+    chmod 600 ${BUILDDIR}/icn-admin.conf
     wait_for is_control_plane_ready
     insert_control_plane_network_identity_into_ssh_config
 }
index 29470dd..86682b4 100755 (executable)
@@ -132,7 +132,7 @@ userData: {}
 #flux:
 #  url: https://gerrit.akraino.org/r/icn
 #  branch: master
-#  path: ./deploy/site/cluster-e2etest
+#  path: ./deploy/site/cluster-icn
 EOF
 }