-
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.
- Loading branch information
Showing
1 changed file
with
84 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,87 @@ 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.113.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: | | ||
cd base && make dep-update | ||
- name: Deploy cert-manager | ||
run: | | ||
cd base && make cert-manager | ||
- name: install helm chart with operator enabled | ||
run: | | ||
cd base && helm install sock helm-charts/splunk-otel-collector --debug \ | ||
--set splunkObservability.realm=us0 --set splunkObservability.accessToken=xxxxx \ | ||
--set operator.enabled=true --set environment=dev --set clusterName=dev | ||
continue-on-error: true | ||
- name: check crds are installed | ||
run: | | ||
kubectl get crds | grep 'opentelemetry.io' | ||
echo "get instrumentations - none if install failed" | ||
kubectl get instrumentations.opentelemetry.io -A | ||
- name: check operator | ||
run: | | ||
kubectl describe po -lapp.kubernetes.io/name=operator | ||
kubectl get po -lapp.kubernetes.io/name=operator -o=name | xargs -n 1 kubectl wait --for=condition=Ready --timeout=2m | ||
kubectl describe po -lapp.kubernetes.io/name=operator | ||
continue-on-error: true | ||
- name: upgrade old again | ||
run: | | ||
cd base && helm upgrade sock helm-charts/splunk-otel-collector --debug \ | ||
--set splunkObservability.realm=us0 --set splunkObservability.accessToken=xxxxx \ | ||
--set operator.enabled=true --set environment=dev --set clusterName=dev | ||
continue-on-error: true | ||
- name: check helm release status | ||
run: | | ||
helm status sock | ||
- name: check instrumentations installed | ||
run: | | ||
kubectl describe instrumentations.opentelemetry.io -A | ||
- name: Update dependencies | ||
run: | | ||
make dep-update | ||
- name: upgrade helm chart | ||
run: | | ||
helm upgrade sock helm-charts/splunk-otel-collector --debug \ | ||
--set splunkObservability.realm=us0 --set splunkObservability.accessToken=xxxxx \ | ||
--set operator.enabled=true --set environment=dev --set clusterName=dev | ||
continue-on-error: true | ||
- name: check crds are installed | ||
run: | | ||
kubectl get crds | grep 'opentelemetry.io' |