-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [chore] add e2e tests that test cluster receiver metrics and an attempt to test trace auto-instrumentation * code review and fix images * wip * traces testing * switch order * wip * wip * code review * operator_values.yaml -> test_values.yaml * rename e2e -> functional * move up fixing CSRs * log using t.Logf * fix commands to run * add code to write metrics, and disable batch processor
- Loading branch information
Showing
17 changed files
with
6,211 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
kubeadmConfigPatches: | ||
- | | ||
kind: InitConfiguration | ||
nodeRegistration: | ||
kubeletExtraArgs: | ||
node-labels: "ingress-ready=true" | ||
- | | ||
kind: KubeletConfiguration | ||
serverTLSBootstrap: true | ||
extraPortMappings: | ||
- containerPort: 80 | ||
hostPort: 80 | ||
protocol: TCP | ||
- containerPort: 443 | ||
hostPort: 443 | ||
protocol: TCP |
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
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 repo-update dep-build | ||
- name: Deploy cert-manager | ||
run: | | ||
make cert-manager | ||
- name: Build Node.js docker image | ||
run: | | ||
cd functional_tests/testdata/nodejs | ||
docker build -t nodejs_test:latest . | ||
kind load docker-image nodejs_test:latest --name kind | ||
- name: run functional tests | ||
run: | | ||
cd functional_tests | ||
go test -v |
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 |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
helm-charts/splunk-otel-collector/Chart.lock | ||
|
||
**/__pycache__/* | ||
bin/ |
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
Oops, something went wrong.