Skip to content

Commit 00dc5fc

Browse files
committed
mysql operator minikube test
1 parent 8310347 commit 00dc5fc

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

.github/workflows/pull-request.yml

+21
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,20 @@ 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
@@ -231,6 +245,13 @@ jobs:
231245
--helm-flags "--set ssl.issuer=selfsigned" \
232246
--silta-config silta/silta.yml,silta/silta.minikube.yml \
233247
--deployment-timeout 15m
248+
if [ $? -ne 0 ]; then
249+
echo "Silta release deploy failed"
250+
kubeclt get pods -A
251+
kubectl get events -A
252+
kubectl get innodbcluster -A
253+
exit 1
254+
fi
234255
235256
kubectl exec -it deploy/test-shell -n drupal-project-k8s -- drush si -y
236257

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)