@@ -397,3 +397,80 @@ jobs:
397
397
UPGRADE_FROM_CHART_DIR : base/splunk-otel-collector
398
398
run : |
399
399
TEARDOWN_BEFORE_SETUP=true SUITE=functional make functionaltest
400
+
401
+ eks-auto-mode-test :
402
+ name : Test helm install in EKS Auto Mode - credentials needed
403
+ if : |
404
+ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
405
+ (github.ref == 'refs/heads/main')
406
+ env :
407
+ KUBECONFIG : /tmp/kube-config-splunk-otel-collector-chart-functional-testing-eks-auto-mode
408
+ KUBE_TEST_ENV : eks/auto-mode
409
+ SKIP_TESTS : " true" # we need to skip functional tests as we have not set probes to listen to the traffic.
410
+ runs-on : ubuntu-latest
411
+ continue-on-error : ${{ contains(github.event.pull_request.labels.*.name, 'Ignore Tests') }}
412
+ steps :
413
+ - uses : actions/checkout@v4
414
+ - uses : actions/setup-go@v5
415
+ with :
416
+ go-version : ${{ env.GO_VERSION }}
417
+ cache-dependency-path : ' **/go.sum'
418
+ - name : Configure AWS credentials
419
+ uses : aws-actions/configure-aws-credentials@v4
420
+ with :
421
+ aws-access-key-id : ${{ secrets.AWS_KEY }}
422
+ aws-secret-access-key : ${{ secrets.AWS_SECRET }}
423
+ aws-region : us-west-2
424
+ - name : Install kubeconfig
425
+ run : |
426
+ aws eks update-kubeconfig --name rotel-eks-autotest --region us-west-2
427
+ - name : Update dependencies
428
+ run : |
429
+ make dep-update
430
+ - name : run functional tests
431
+ env :
432
+ HOST_ENDPOINT : 0.0.0.0
433
+ run : |
434
+ TEARDOWN_BEFORE_SETUP=true SUITE=functional make functionaltest
435
+
436
+ eks-auto-mode-upgrade-test :
437
+ name : Test helm upgrade in EKS Auto Mode - credentials needed
438
+ if : |
439
+ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
440
+ (github.ref == 'refs/heads/main')
441
+ env :
442
+ KUBECONFIG : /tmp/kube-config-splunk-otel-collector-chart-functional-testing-eks-auto-mode
443
+ KUBE_TEST_ENV : eks/auto-mode
444
+ SKIP_TESTS : " true" # we need to skip functional tests as we have not set probes to listen to the traffic.
445
+ runs-on : ubuntu-latest
446
+ continue-on-error : ${{ contains(github.event.pull_request.labels.*.name, 'Ignore Tests') }}
447
+ steps :
448
+ - uses : actions/checkout@v4
449
+ - name : Download the latest published release to use as a base for the upgrade
450
+ run : |
451
+ helm repo add splunk-otel-collector-chart https://signalfx.github.io/splunk-otel-collector-chart
452
+ helm repo update
453
+ helm pull splunk-otel-collector-chart/splunk-otel-collector --untar --untardir base
454
+ - uses : actions/setup-go@v5
455
+ with :
456
+ go-version : ${{ env.GO_VERSION }}
457
+ cache-dependency-path : ' **/go.sum'
458
+ - name : Configure AWS credentials
459
+ uses : aws-actions/configure-aws-credentials@v4
460
+ with :
461
+ aws-access-key-id : ${{ secrets.AWS_KEY }}
462
+ aws-secret-access-key : ${{ secrets.AWS_SECRET }}
463
+ aws-region : us-west-2
464
+ - name : Install kubeconfig
465
+ run : |
466
+ aws eks update-kubeconfig --name rotel-eks-autotest --region us-west-2
467
+ - name : Update dependencies
468
+ run : |
469
+ make dep-update
470
+ - name : run functional tests
471
+ env :
472
+ HOST_ENDPOINT : 0.0.0.0
473
+ UPGRADE_FROM_VALUES : aws_upgrade_from_previous_release_values.yaml
474
+ UPGRADE_FROM_CHART_DIR : base/splunk-otel-collector
475
+ run : |
476
+ TEARDOWN_BEFORE_SETUP=true SUITE=functional make functionaltest
0 commit comments