diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d3d6ea2..08a490a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,15 +20,15 @@ jobs: - name: setup cluster shell: bash run: | - curl -Lo /tmp/kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64 + curl -Lo /tmp/kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64 chmod +x /tmp/kind - /tmp/kind create cluster --config=$GITHUB_WORKSPACE/.bin/kind-conf.yml --image=kindest/node:v1.23.0@sha256:49824ab1727c04e56a21a5d8372a402fcd32ea51ac96a2706a12af38934f81ac + /tmp/kind create cluster --config=$GITHUB_WORKSPACE/.bin/kind-conf.yml --image=kindest/node:v1.28.0@sha256:9f3ff58f19dcf1a0611d11e8ac989fdb30a28f40f236f59f0bea31fb956ccf5c kubectl apply -f https://projectcontour.io/quickstart/contour.yaml kubectl patch daemonsets -n projectcontour envoy -p '{"spec":{"template":{"spec":{"nodeSelector":{"ingress-ready":"true"}}}}}' - name: setup chaos mesh shell: bash run: | - curl -sSL https://mirrors.chaos-mesh.org/v2.1.3/install.sh | bash -s -- --local kind + curl -sSL https://mirrors.chaos-mesh.org/v2.6.2/install.sh | bash -s -- --local kind - name: setup certs shell: bash run: | diff --git a/templates/statefulset.yaml b/templates/statefulset.yaml index 42ae4cd..923a9e4 100644 --- a/templates/statefulset.yaml +++ b/templates/statefulset.yaml @@ -53,10 +53,10 @@ spec: - | {{- if not .Values.customTLS.enabled}} openssl req -x509 -newkey rsa:4096 -nodes -subj '/CN={{ .Values.global.ldapDomain }}' -keyout /tmp-certs/tls.key -out /tmp-certs/tls.crt -days 365 - cp /tmp-certs/tls.crt /tmp-certs/ca.crt chmod 777 /tmp-certs/* {{- end }} cp -Lr /tmp-certs/* /certs + [ -e /certs/ca.crt ] || cp -a /certs/tls.crt /certs/ca.crt volumeMounts: - name: certs mountPath: "/certs"