-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test upgrade with no change in values
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' |