feat(odoo): update odoo image to 18.0.20250725 and add kuard installation functionality

This commit is contained in:
Janik von Rotz committed 2025-07-28 21:58:05 +02:00
1 parent 855701d1bd
commit b0ff7538cd
2 files changed
+41 -6

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ postgres:
enabled: false
odoo:
enabled: true
image: mintsystem/odoo:18.0.20250520
image: mintsystem/odoo:18.0.20250725
host: odoo
proxyMode: True
githubUsername: ""
+40 -5
View File
@@ -215,6 +215,7 @@ function list-chart() {
echo "cert-issuer"
echo "ingress-nginx"
echo "haproxy-ingress"
echo "kuard"
}
function install-chart() {
@@ -222,6 +223,40 @@ function install-chart() {
"install-$1"
}
function install-kuard() {
echo "Apply kuard deployment and service."
kubectl apply -f https://raw.githubusercontent.com/cert-manager/website/master/content/docs/tutorials/acme/example/deployment.yaml
kubectl apply -f https://raw.githubusercontent.com/cert-manager/website/master/content/docs/tutorials/acme/example/service.yaml
echo "Apply kuard ingress"
cat <<EOF | kubectl apply -f -
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: kuard
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-http-staging"
spec:
ingressClassName: nginx
tls:
- hosts:
- kuard.chk.mintcloud.ch
secretName: kuard-chk-mintcloud-ch
rules:
- host: kuard.chk.mintcloud.ch
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: kuard
port:
number: 80
EOF
}
function install-postgres() {
echo "Install chart postgres as release $RELEASE_NAME."
helm install "$RELEASE_NAME" postgres \
@@ -320,20 +355,20 @@ function install-cluster-issuer() {
}
function test-cluster-issuer() {
echo ""
echo "Apply certificate."
cat <<EOF | kubectl apply -f -
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: test-chk-mintcloud-ch
name: chk-mintcloud-ch
spec:
secretName: test-chk-mintcloud-ch
secretName: chk-mintcloud-ch
issuerRef:
name: letsencrypt-http-staging
name: letsencrypt-dns-staging
kind: ClusterIssuer
dnsNames:
- test.chk.mintcloud.ch
- chk.mintcloud.ch
EOF
}