diff --git a/charts/dolos/ci/default-values.yaml b/charts/dolos/ci/default-values.yaml new file mode 100644 index 0000000..bf04fcf --- /dev/null +++ b/charts/dolos/ci/default-values.yaml @@ -0,0 +1,19 @@ +# CI test values: default configuration (minikupo disabled) +# Verifies that the chart renders correctly without minikupo support, +# which is the default behavior (ports.minikupo is not set). + +image: + tag: v1.0.3 + +ports: + grpc: 50051 + ouroboros: 30013 + minibf: 3001 + # minikupo is intentionally omitted to test the disabled code path + +service: + ports: + grpc: 15051 + ouroboros: 13013 + minibf: 13001 + # service.ports.minikupo is intentionally omitted \ No newline at end of file diff --git a/charts/dolos/ci/minikupo-values.yaml b/charts/dolos/ci/minikupo-values.yaml new file mode 100644 index 0000000..25b214b --- /dev/null +++ b/charts/dolos/ci/minikupo-values.yaml @@ -0,0 +1,20 @@ +# CI test values: minikupo enabled configuration +# Verifies that the chart renders correctly when the optional minikupo port +# is enabled. This exercises the {{- if .Values.ports.minikupo }} conditional +# blocks in both headless-service.yaml and sts.yaml. + +image: + tag: v1.0.3 + +ports: + grpc: 50051 + ouroboros: 30013 + minibf: 3001 + minikupo: 1442 + +service: + ports: + grpc: 15051 + ouroboros: 13013 + minibf: 13001 + minikupo: 11442 \ No newline at end of file diff --git a/charts/dolos/templates/tests/test.yaml b/charts/dolos/templates/tests/test.yaml new file mode 100644 index 0000000..65505a5 --- /dev/null +++ b/charts/dolos/templates/tests/test.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Pod +metadata: + name: "{{ include "dolos.fullname" . }}-test" + labels: + {{- include "dolos.labels" . | nindent 4 }} + annotations: + "helm.sh/hook": test +spec: + restartPolicy: Never + containers: + - name: test + image: busybox + command: ['sh', '-c', 'echo "Dolos chart test passed"'] \ No newline at end of file