fixed pipeline kubernetes issue
Add changes to install kubectl explicitly for its older version 1.23.0.
@@ -154,6 +154,16 @@ jobs:
- ./image.tar
- ./latest.tar
+ aws-cli-setup:
+ executor: aws-cli/default
+ steps:
+ - checkout
+ - aws-cli/setup:
+ profile-name: example
+ - run:
+ name: delete kube config
+ command: |
+ aws eks update-kubeconfig --name eks-cxflow-ci
deploy-cxflow:
executor: aws-eks/python3
parameters:
@@ -187,7 +197,9 @@ jobs:
- checkout
- aws-eks/update-kubeconfig-with-authenticator:
cluster-name: << parameters.cluster-name >>
- install-kubectl: true
+ install-kubectl: false
+ - kubernetes/install:
+ kubectl-version: v1.23.0
- run:
name: Change appVersion
command: |
@@ -259,9 +271,11 @@ jobs:
type: string
steps:
- checkout
+ - kubernetes/install:
+ kubectl-version: v1.23.6
- aws-eks/update-kubeconfig-with-authenticator:
cluster-name: << parameters.cluster-name >>
- install-kubectl: true
+ install-kubectl: false
- run:
name: Run E2E Tests
command: |
@@ -511,9 +525,11 @@ jobs:
version:
type: string
steps:
+ - kubernetes/install:
+ kubectl-version: v1.23.6
- aws-eks/update-kubeconfig-with-authenticator:
cluster-name: << parameters.cluster-name >>
- install-kubectl: true
+ install-kubectl: false
- helm/install-helm-client:
version: << parameters.version >>
- run:
@@ -570,9 +586,11 @@ jobs:
clean-eks:
executor: aws-eks/python3
steps:
+ - kubernetes/install:
+ kubectl-version: v1.23.6
- aws-eks/update-kubeconfig-with-authenticator:
cluster-name: eks-cxflow-ci
- install-kubectl: true
+ install-kubectl: false
- run:
name: Delete namespace
command: |
@@ -587,6 +605,7 @@ jobs:
fi
orbs:
+ aws-cli: circleci/aws-cli@3.1.1
aws-eks: circleci/aws-eks@1.0.0
kubernetes: circleci/kubernetes@0.4.0
helm: circleci/helm@0.2.3
@@ -615,6 +634,9 @@ workflows:
- component-tests:
requires:
- build
+ - aws-cli-setup:
+ requires:
+ - docker-build
- deploy-cxflow:
cluster-name: eks-cxflow-ci
chart: ./helm/cxflow
@@ -631,6 +653,7 @@ workflows:
requires:
- docker-build
- component-tests
+ - aws-cli-setup
- e2e-tests:
cluster-name: eks-cxflow-ci
namespace: cxflow-${CIRCLE_SHA1::7}
