Skip to content

Commit 99e06c9

Browse files
committed
Change beyla test to use a minikube cluster
Signed-off-by: Pete Wall <pete.wall@grafana.com>
1 parent 0e60283 commit 99e06c9

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
version: 2
77
updates:
88
- package-ecosystem: docker
9-
directory: "/operator"
9+
directory: /operator
1010
schedule:
1111
interval: daily
12+
13+
- package-ecosystem: github-actions
14+
directory: /
15+
schedule:
16+
interval: daily
17+
labels:
18+
- dependencies
19+
- github-actions

.github/workflows/integration-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
run: |
5050
if [ -f "kind-cluster-config.yaml" ]; then
5151
echo "cluster-type=kind-with-config" >> "${GITHUB_OUTPUT}"
52+
if [ -f "minikube-cluster-config.yaml" ]; then
53+
echo "cluster-type=minikube" >> "${GITHUB_OUTPUT}"
5254
else
5355
echo "cluster-type=kind" >> "${GITHUB_OUTPUT}"
5456
fi
@@ -66,6 +68,10 @@ jobs:
6668
config: "tests/integration/${{ matrix.test }}/kind-cluster-config.yaml"
6769
kubeconfig: "tests/integration/${{ matrix.test }}/kubeconfig.yaml"
6870

71+
- name: Create Minikube cluster
72+
if: ${{ steps.check-cluster-config.outputs.cluster-type == 'minikube' }}
73+
uses: medyagh/setup-minikube@cea33675329b799adccc9526aa5daccc26cd5052
74+
6975
- name: Run test
7076
working-directory: "tests/integration/${{ matrix.test }}"
7177
run: make run-test

tests/integration/beyla-and-unix/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ KUBECONFIG ?= $(shell pwd)/kubeconfig.yaml
44
create-cluster: $(KUBECONFIG)
55
$(KUBECONFIG):
66
@echo "Creating cluster $(CLUSTER_NAME)..."
7-
@kind create cluster --name $(CLUSTER_NAME) --kubeconfig $(KUBECONFIG)
7+
@minikube start
88

99
deploy-dependencies: $(KUBECONFIG)
1010
@echo "Deploying flux..."
@@ -30,7 +30,7 @@ test:
3030

3131
delete-cluster:
3232
@echo "Deleting cluster $(CLUSTER_NAME)..."
33-
@kind delete cluster --name $(CLUSTER_NAME)
33+
@minikube delete
3434
@rm -f $(KUBECONFIG)
3535

3636
run-test: $(KUBECONFIG) deploy-dependencies deploy test

tests/integration/beyla-and-unix/minikube-cluster-config.yaml

Whitespace-only changes.

0 commit comments

Comments
 (0)