Skip to content

Commit a70d33a

Browse files
committed
mysql operator minikube test
1 parent 8310347 commit a70d33a

File tree

2 files changed

+33
-7
lines changed

2 files changed

+33
-7
lines changed

.github/workflows/pull-request.yml

+26-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
name: Silta chart tests
33

44
on:
5-
# Run for pull requests, but there's an additional draft filter later on
6-
pull_request:
7-
types: [opened, synchronize, reopened, ready_for_review]
5+
# # Run for pull requests, but there's an additional draft filter later on
6+
# pull_request:
7+
# types: [opened, synchronize, reopened, ready_for_review]
88

99
# Allows you to run this workflow manually from the Actions tab
1010
workflow_dispatch:
@@ -168,9 +168,32 @@ jobs:
168168
curl --resolve ${CLUSTER_DOMAIN}:443:${MINIKUBE_IP} https://${CLUSTER_DOMAIN} -ILk --fail
169169
curl --resolve ${CLUSTER_DOMAIN}:80:${MINIKUBE_IP} --resolve ${CLUSTER_DOMAIN}:443:${MINIKUBE_IP} http://${CLUSTER_DOMAIN} -IL --fail
170170
171+
- name: Install mysql operator
172+
run: |
173+
# Install CRD for mysql-operator (forked version)
174+
kubectl apply -f https://raw.githubusercontent.com/wunderio/mysql-operator/fork/deploy/deploy-crds.yaml
175+
176+
# Install mysql-operator (forked version)
177+
helm upgrade --install mysql-operator mysql-operator/mysql-operator \
178+
--namespace mysql-operator --create-namespace \
179+
--set image.registry="wunderio" \
180+
--set image.repository="" \
181+
--set image.name="mysql-community-operator" \
182+
--set image.tag="8.3.0-2.1.2-mod" \
183+
--wait
184+
171185
- name: Build Drupal chart images, deploy and test
172186
run: |
173187
188+
function info {
189+
echo "Error occurred, printing debug info"
190+
kubectl get pods -A
191+
kubectl get events -A
192+
kubectl get innodbcluster -A
193+
}
194+
195+
trap "info" ERR
196+
174197
MINIKUBE_IP=$(minikube ip)
175198
CLUSTER_DOCKER_REGISTRY=registry.${CLUSTER_DOMAIN}:80
176199

silta/silta.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
# for all possible options.
66

77
varnish:
8-
enabled: true
8+
enabled: false
99

1010
elasticsearch:
11-
enabled: true
11+
enabled: false
1212

1313
memcached:
1414
enabled: false
@@ -68,8 +68,11 @@ mysql:
6868
# silta-role: drupal
6969
# resources:
7070
# requests:
71-
# cpu: 500m
72-
# memory: 1Gi
71+
# cpu: 200m
72+
# memory: 256Mi
73+
# limits:
74+
# cpu: 400m
75+
# memory: 2Gi
7376
# TODO: test mycnf & logs
7477

7578
mariadb:

0 commit comments

Comments
 (0)