Update opentelemetry-operator chart version (#1049) #241
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
name: functional-tests | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
env: | |
# Make sure to exit early if cache segment download times out after 2 minutes. | |
# We limit cache download as a whole to 5 minutes. | |
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2 | |
jobs: | |
kubernetes-test: | |
env: | |
KUBECONFIG: /tmp/kube-config-splunk-otel-collector-chart-functional-testing | |
strategy: | |
fail-fast: false | |
matrix: | |
k8s-version: | |
- v1.28.0 # Support: 28 Aug 2024 - 28 Oct 2024 | |
- v1.27.3 # Support: 28 Apr 2024 - 28 Jun 2024 | |
- v1.26.6 # Support: 28 Dec 2023 - 28 Feb 2024 | |
- v1.25.11 # Support: 27 Aug 2023 - 27 Oct 2023 | |
- v1.24.15 # Support: 28 May 2023 - 28 Jul 2023 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ~1.20.8 | |
cache: false | |
- name: Cache Go | |
id: go-cache | |
timeout-minutes: 5 | |
uses: actions/cache@v3 | |
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:${{ matrix.k8s-version }} | |
kubectl_version: ${{ matrix.k8s-version }} | |
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: run functional tests | |
run: | | |
cd functional_tests | |
go test -v | |
eks-test: | |
concurrency: | |
group: eks-access | |
env: | |
KUBECONFIG: /tmp/kube-config-splunk-otel-collector-chart-functional-testing-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 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ~1.20.8 | |
cache: false | |
- name: Cache Go | |
id: go-cache | |
timeout-minutes: 5 | |
uses: actions/cache@v3 | |
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@v1 | |
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: | | |
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 |