Refactoring of k8s manager and tests
Changes:
- Official kubernetes python lib
- Rewrite k8s api wrapper in OOP manner
- Use api where its possible instead of cli
- Remove virtlet code because its can be replaced with pod api
- Remove unused/oudated manager code
- Remove bug workaround in k8s upgrade template
- Remove netchecker obsolete code
- Remove unfinished test_rbd_flexvolume_driver
Change-Id: I446a240123282196a6ba54f588aea84791f175ba
Related-PROD: PROD-21700
diff --git a/tcp_tests/templates/k8s-ha-calico/k8s-update.yaml b/tcp_tests/templates/k8s-ha-calico/k8s-update.yaml
index 1f27c73..7162657 100644
--- a/tcp_tests/templates/k8s-ha-calico/k8s-update.yaml
+++ b/tcp_tests/templates/k8s-ha-calico/k8s-update.yaml
@@ -1,7 +1,7 @@
{% from 'k8s-ha-calico/underlay.yaml' import HOSTNAME_CFG01 with context %}
{% from 'k8s-ha-calico/underlay.yaml' import HOSTNAME_CTL01 with context %}
-# Kubernetes
+# Kubernetes upgrade
- description: Update hypercube image
cmd: salt --hard-crash --state-output=mixed --state-verbose=False
-C 'I@kubernetes:pool' state.sls kubernetes.pool
@@ -9,18 +9,11 @@
retry: {count: 3, delay: 5}
skip_fail: false
-- description: Run whole master to check consistency
+- description: Update the Kubernetes Master nodes and restart the services
cmd: salt --hard-crash --state-output=mixed --state-verbose=False
-C 'I@kubernetes:master' state.sls kubernetes exclude=kubernetes.master.setup
node_name: {{ HOSTNAME_CFG01 }}
retry: {count: 1, delay: 5}
- skip_fail: true
-
-# TODO: sync with PROD-20441
-- desciption: Restart kube-apiserver
- cmd: salt --hard-crash --state-output=mixed --state-verbose=False -C 'I@kubernetes:control' service.restart kube-apiserver
- node_name: {{ HOSTNAME_CFG01 }}
- retry: {count: 3, delay: 5}
skip_fail: false
- desciption: Print kubernetes version