|
26 | 26 | mode: auto
|
27 | 27 | release-branch: master
|
28 | 28 | open-source-additional-arguments: --exclude=test
|
29 |
| - aks_integration_tests: |
30 |
| - docker: |
31 |
| - - image: cimg/node:18.19.1 |
32 |
| - resource_class: large |
33 |
| - steps: |
34 |
| - - checkout |
35 |
| - - setup_remote_docker |
36 |
| - - run: |
37 |
| - command: npm ci |
38 |
| - - install_python_requests |
39 |
| - - azure-cli/install |
40 |
| - - run: |
41 |
| - command: mkdir -p /tmp/logs/test/integration/aks |
42 |
| - name: Create temp dir for logs |
43 |
| - - run: |
44 |
| - command: | |
45 |
| - export KUBERNETES_MONITOR_IMAGE_NAME_AND_TAG=$(./scripts/circleci-jobs/setup-integration-tests.py) |
46 |
| - .circleci/do-exclusively --branch staging --job ${CIRCLE_JOB} npm run test:integration:aks:yaml |
47 |
| - name: Integration tests AKS |
48 |
| - - run: |
49 |
| - command: | |
50 |
| - ./scripts/slack/notify_failure_on_branch.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}" |
51 |
| - name: Notify Slack on failure |
52 |
| - when: on_fail |
53 |
| - - store_artifacts: |
54 |
| - path: /tmp/logs/test/integration/aks |
55 |
| - working_directory: ~/kubernetes-monitor |
56 | 29 | build_image:
|
57 | 30 | docker:
|
58 | 31 | - image: cimg/base:current
|
@@ -143,150 +116,6 @@ jobs:
|
143 | 116 | name: Notify Slack on failure
|
144 | 117 | when: on_fail
|
145 | 118 | working_directory: ~/kubernetes-monitor
|
146 |
| - deploy_to_sysdig_integration_cluster: |
147 |
| - docker: |
148 |
| - - image: cimg/base:stable |
149 |
| - steps: |
150 |
| - - checkout |
151 |
| - - run: |
152 |
| - command: | |
153 |
| - LATEST_KUBECTL_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt) |
154 |
| - curl -LO "https://dl.k8s.io/release/${LATEST_KUBECTL_VERSION}/bin/linux/amd64/kubectl" |
155 |
| - curl -LO "https://dl.k8s.io/${LATEST_KUBECTL_VERSION}/bin/linux/amd64/kubectl.sha256" |
156 |
| - echo "$(<kubectl.sha256) kubectl" | sha256sum --check |
157 |
| - sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl |
158 |
| - # Ensure the kubectl command is runnable |
159 |
| - kubectl version --client |
160 |
| - # Prepare kubeconfig to point to the cluster |
161 |
| - mkdir ~/.kube || true |
162 |
| - printf "%s" "${SYSDIG_KUBECONFIG}" | base64 -d > ~/.kube/config |
163 |
| - name: Install and prepare kubectl |
164 |
| - - run: |
165 |
| - command: | |
166 |
| - curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 |
167 |
| - chmod 700 get_helm.sh |
168 |
| - ./get_helm.sh |
169 |
| - # Ensure the Helm command is runnable |
170 |
| - helm version |
171 |
| - name: Install Helm |
172 |
| - - run: |
173 |
| - command: | |
174 |
| - LATEST_TAG_WITH_V=`git describe --abbrev=0 --tags ${CIRCLE_SHA1}` |
175 |
| - LATEST_TAG=${LATEST_TAG_WITH_V:1}-approved |
176 |
| - ./scripts/slack/notify_deploy.py $LATEST_TAG sysdig-integration-cluster |
177 |
| - helm upgrade --install snyk-monitor ./snyk-monitor --namespace snyk-monitor --set image.tag=${LATEST_TAG} --set clusterName="Sysdig cluster" --set sysdig.enabled=true |
178 |
| - name: Deploy to shared Sysdig cluster |
179 |
| - - run: |
180 |
| - command: ./scripts/slack/notify_failure.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}" |
181 |
| - name: Notify Slack on failure |
182 |
| - when: on_fail |
183 |
| - working_directory: ~/kubernetes-monitor |
184 |
| - eks_integration_tests: |
185 |
| - docker: |
186 |
| - - image: cimg/node:18.19.1 |
187 |
| - resource_class: large |
188 |
| - steps: |
189 |
| - - checkout |
190 |
| - - setup_remote_docker |
191 |
| - - run: |
192 |
| - command: npm ci |
193 |
| - - install_python_requests |
194 |
| - - aws-cli/install: |
195 |
| - override-installed: true |
196 |
| - - run: |
197 |
| - command: mkdir -p /tmp/logs/test/integration/eks |
198 |
| - name: Create temp dir for logs |
199 |
| - - run: |
200 |
| - command: | |
201 |
| - export KUBERNETES_MONITOR_IMAGE_NAME_AND_TAG=$(./scripts/circleci-jobs/setup-integration-tests.py) |
202 |
| - .circleci/do-exclusively --branch staging --job ${CIRCLE_JOB} npm run test:integration:eks:yaml |
203 |
| - name: Integration tests EKS |
204 |
| - - run: |
205 |
| - command: | |
206 |
| - ./scripts/slack/notify_failure_on_branch.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}" |
207 |
| - name: Notify Slack on failure |
208 |
| - when: on_fail |
209 |
| - - store_artifacts: |
210 |
| - path: /tmp/logs/test/integration/eks |
211 |
| - working_directory: ~/kubernetes-monitor |
212 |
| - integration_tests: |
213 |
| - docker: |
214 |
| - - image: cimg/node:18.19.1 |
215 |
| - resource_class: large |
216 |
| - steps: |
217 |
| - - checkout |
218 |
| - - setup_remote_docker |
219 |
| - - run: |
220 |
| - command: npm ci |
221 |
| - - install_python_requests |
222 |
| - - run: |
223 |
| - command: mkdir -p /tmp/logs/test/integration/kind |
224 |
| - name: create temp dir for logs |
225 |
| - - run: |
226 |
| - command: | |
227 |
| - export KUBERNETES_MONITOR_IMAGE_NAME_AND_TAG=$(./scripts/circleci-jobs/setup-integration-tests.py) |
228 |
| - npm run test:integration:kind:yaml |
229 |
| - name: Integration tests |
230 |
| - - run: |
231 |
| - command: | |
232 |
| - ./scripts/slack/notify_failure_on_branch.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}" |
233 |
| - name: Notify Slack on failure |
234 |
| - when: on_fail |
235 |
| - - store_artifacts: |
236 |
| - path: /tmp/logs/test/integration/kind |
237 |
| - working_directory: ~/kubernetes-monitor |
238 |
| - integration_tests_helm: |
239 |
| - docker: |
240 |
| - - image: cimg/node:18.19.1 |
241 |
| - resource_class: large |
242 |
| - steps: |
243 |
| - - checkout |
244 |
| - - setup_remote_docker |
245 |
| - - run: |
246 |
| - command: npm ci |
247 |
| - - install_python_requests |
248 |
| - - run: |
249 |
| - command: mkdir -p /tmp/logs/test/integration/kind-helm |
250 |
| - name: Create temporary directory for logs |
251 |
| - - run: |
252 |
| - command: | |
253 |
| - export KUBERNETES_MONITOR_IMAGE_NAME_AND_TAG=$(./scripts/circleci-jobs/setup-integration-tests.py) |
254 |
| - npm run test:integration:kind:helm |
255 |
| - name: Integration tests with Helm deployment |
256 |
| - - run: |
257 |
| - command: | |
258 |
| - ./scripts/slack/notify_failure_on_branch.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}" |
259 |
| - name: Notify Slack on failure |
260 |
| - when: on_fail |
261 |
| - - store_artifacts: |
262 |
| - path: /tmp/logs/test/integration/kind-helm |
263 |
| - working_directory: ~/kubernetes-monitor |
264 |
| - integration_tests_proxy: |
265 |
| - docker: |
266 |
| - - image: cimg/node:18.19.1 |
267 |
| - resource_class: large |
268 |
| - steps: |
269 |
| - - checkout |
270 |
| - - setup_remote_docker |
271 |
| - - run: |
272 |
| - command: npm ci |
273 |
| - - install_python_requests |
274 |
| - - run: |
275 |
| - command: mkdir -p /tmp/logs/test/integration/proxy |
276 |
| - name: Create temporary directory for logs |
277 |
| - - run: |
278 |
| - command: | |
279 |
| - export KUBERNETES_MONITOR_IMAGE_NAME_AND_TAG=$(./scripts/circleci-jobs/setup-integration-tests.py) |
280 |
| - npm run test:integration:kind:proxy |
281 |
| - name: Integration tests with proxy |
282 |
| - - run: |
283 |
| - command: | |
284 |
| - ./scripts/slack/notify_failure_on_branch.py "${CIRCLE_BRANCH}" "${CIRCLE_JOB}" "${CIRCLE_BUILD_URL}" "${CIRCLE_PULL_REQUEST}" "${SLACK_WEBHOOK}" |
285 |
| - name: Notify Slack on failure |
286 |
| - when: on_fail |
287 |
| - - store_artifacts: |
288 |
| - path: /tmp/logs/test/integration/proxy |
289 |
| - working_directory: ~/kubernetes-monitor |
290 | 119 | lint:
|
291 | 120 | docker:
|
292 | 121 | - image: cimg/node:18.19.1
|
@@ -479,6 +308,7 @@ workflows:
|
479 | 308 | - deploy_to_prod:
|
480 | 309 | context:
|
481 | 310 | - team-container-integration-circleci
|
| 311 | + - kubernetes-monitor |
482 | 312 | filters:
|
483 | 313 | branches:
|
484 | 314 | only:
|
@@ -517,7 +347,10 @@ workflows:
|
517 | 347 | - unit_tests
|
518 | 348 | - system_tests
|
519 | 349 | - prepare_to_deploy:
|
520 |
| - context: team-container-integration |
| 350 | + context: |
| 351 | + - team-container-integration |
| 352 | + - team-container-integration-circleci |
| 353 | + - kubernetes-monitor |
521 | 354 | filters:
|
522 | 355 | branches:
|
523 | 356 | only:
|
|
0 commit comments