Skip to content

Commit

Permalink
test upgrade with no change in values
Browse files Browse the repository at this point in the history
  • Loading branch information
jinja2 committed Jan 15, 2025
1 parent e0fcb92 commit 5d8c137
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/functional_test_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -488,3 +488,61 @@ jobs:
run: |
cd functional_tests
TEARDOWN_BEFORE_SETUP=true go test -v -tags functional
kubernetes-test-upgrade-with-no-values-change:
name: Test helm upgrade in kind without any values change by a user
if: github.event.pull_request.head.repo.full_name == github.repository
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.22.5
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: Create kind cluster
uses: helm/[email protected]
with:
node_image: kindest/node:v1.30.0
kubectl_version: v1.30.0
cluster_name: kind
config: ./.github/workflows/configs/kind-config.yaml
- name: Fix kubelet TLS server certificates
run: |
kubectl get csr -o=jsonpath='{range.items[?(@.spec.signerName=="kubernetes.io/kubelet-serving")]}{.metadata.name}{" "}{end}' | xargs kubectl certificate approve
- name: Update dependencies
run: |
make dep-update
- name: Deploy cert-manager
run: |
make cert-manager
- name: install helm chart with operator enabled
run: |
cd base
helm install sock helm-charts/splunk-otel-collector --wait \
--set splunkObservability.realm=us0 --set splunkObservability.accessToken=xxxxx \
--set operator.enabled=true --set environment=dev --set clusterName=dev
- name: check crds are installed
run: |
kubectl get crds | grep 'opentelemetry.io'
kubectl get instrumentations.opentelemetry.io -A
- name: upgrade helm chart
run: |
helm upgrade sock helm-charts/splunk-otel-collector --reuse-values --wait
- name: check crds are installed
run: |
kubectl get crds | grep 'opentelemetry.io'

0 comments on commit 5d8c137

Please sign in to comment.