Skip to content

Commit

Permalink
[chore] add a test checking upgrades from a previous release (#1617)
Browse files Browse the repository at this point in the history
* [chore] add a test checking upgrades from a previous release

* install operator initially

* do not try to install cert-manager as part of helm chart install
  • Loading branch information
atoulme authored Jan 15, 2025
1 parent ce19b52 commit e0fcb92
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/functional_test_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,68 @@ jobs:
cd functional_tests
go test -v -tags functional
eks-upgrade-from-release-test:
name: Test helm upgrade from release in EKS - credentials needed
needs: kubernetes-test
if: github.event.pull_request.head.repo.full_name == github.repository
concurrency:
group: eks-access
env:
KUBECONFIG: /tmp/kube-config-splunk-otel-collector-chart-functional-testing-eks
KUBE_TEST_ENV: eks
SKIP_TESTS: "true" # we need to skip functional tests as we have not set probes to listen to the traffic.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout old release
uses: actions/checkout@v4
with:
path: base
ref: splunk-otel-collector-0.109.0
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: ~1.21.8
cache: false
- name: Cache Go
id: go-cache
timeout-minutes: 5
uses: actions/cache@v4
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }}
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET }}
aws-region: us-west-1
- name: Install kubeconfig
run: |
aws eks update-kubeconfig --name rotel-eks --region us-west-1
- name: Update dependencies
run: |
cd base && make dep-update
- name: Deploy cert-manager
run: |
cd base && make cert-manager
- name: Deploy previous version of the chart
run: |
cd base && helm install sock helm-charts/splunk-otel-collector --set cloudProvider=aws --set distribution=eks --set splunkObservability.realm=us0 --set splunkObservability.accessToken=xxxxx --set operator.enabled=true --set environment=dev
- name: Update dependencies
run: |
make dep-update
- name: Deploy cert-manager
run: |
make cert-manager
- name: run functional tests
env:
HOST_ENDPOINT: 0.0.0.0
run: |
cd functional_tests
go test -v -tags functional
gke-autopilot-test:
name: Test helm install in GKE/Autopilot - credentials needed
needs: kubernetes-test
Expand Down

0 comments on commit e0fcb92

Please sign in to comment.