Skip to content

Commit f00b4ab

Browse files
authored
Merge pull request #23 from francescotimperi/main
CouchDb and Ingress updates
2 parents bb43304 + 49df531 commit f00b4ab

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- name: Kind
6363
uses: container-tools/[email protected]
6464
with:
65-
version: v0.17.0
65+
version: v0.22.0
6666
cluster_name: nuvolaris
6767
config: .github/kind.yaml
6868
- name: Setup

.github/workflows/image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Kind
7070
uses: container-tools/[email protected]
7171
with:
72-
version: v0.17.0
72+
version: v0.22.0
7373
cluster_name: nuvolaris
7474
config: .github/kind.yaml
7575
- name: Install

nuvolaris/templates/couchdb-init.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ spec:
3333
whisks.nuvolaris.org/annotate-version: "true"
3434
spec:
3535
serviceAccount: nuvolaris-operator
36-
restartPolicy: Never
36+
restartPolicy: Never
37+
initContainers:
38+
- name: check-couchdb
39+
image: busybox:1.36.0
40+
command: ["sh", "-c", 'result=1; until [ $result -eq 0 ]; do OK=$(wget -qO - http://couchdb:5984 | grep "Welcome"); if [ "$OK" ]; then result=0; echo "Couchdb returned welcome!"; else echo waiting for Couchdb to be ready; sleep 5; fi; done; echo "Success: couchdb is up"']
3741
containers:
3842
- name: init-couchdb
3943
image: "{{image}}"

nuvolaris/templates/generic-ingress-tpl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ metadata:
2323
namespace: {{namespace}}
2424
annotations:
2525
nginx.ingress.kubernetes.io/proxy-body-size: "1024m"
26-
kubernetes.io/ingress.class: "{{ingress_class}}"
2726
{% if tls %}
2827
cert-manager.io/cluster-issuer: "letsencrypt-issuer"
2928
{% endif %}
@@ -48,6 +47,7 @@ metadata:
4847
traefik.ingress.kubernetes.io/router.middlewares: nuvolaris-{{middleware_ingress_name}}@kubernetescrd
4948
{% endif %}
5049
spec:
50+
ingressClassName: "{{ingress_class}}"
5151
{% if tls %}
5252
tls:
5353
- hosts:

tests/couchdb_test.ipy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ cdb.create(None)
3131
r = !kubectl -n nuvolaris wait --for=condition=complete job/couchdb-init --timeout=600s
3232
assert(r[0].find("condition met") != -1)
3333
r = !kubectl -n nuvolaris logs -l job=couchdb-init | grep "OK: enable_db_compaction: subjects"
34-
assert(r[0].find("OK:") != -1)
34+
assert(r[1].find("OK:") != -1)

0 commit comments

Comments
 (0)