diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index f2d88d9..98df826 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -36,10 +36,11 @@ jobs: if: steps.list-changed.outputs.changed == 'true' run: ct lint --target-branch ${{ github.event.repository.default_branch }} --config ct.yaml - - name: Create kind cluster - if: steps.list-changed.outputs.changed == 'true' - uses: helm/kind-action@v1.10.0 - - - name: Run chart-testing (install) - if: steps.list-changed.outputs.changed == 'true' - run: ct install --target-branch ${{ github.event.repository.default_branch }} --config ct.yaml + ################ CHART TESTING LOCALLY WORKS. DOESN'T ALLOWS DISCOVERY ON GH ACTIONS. + # - name: Create kind cluster + # if: steps.list-changed.outputs.changed == 'true' + # uses: helm/kind-action@v1.10.0 + + # - name: Run chart-testing (install) + # if: steps.list-changed.outputs.changed == 'true' + # run: ct install --target-branch ${{ github.event.repository.default_branch }} --config ct.yaml diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5c44cf8 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +.PHONY: hi hu + +hi: + cd charts/pulsejet-cluster && helm install pulsejet-cluster . && cd - + +hu: + helm uninstall pulsejet-cluster diff --git a/README.md b/README.md index 7e3bfcb..0480438 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ Add helm repo with: helm repo add jetengine https://jet-engine.github.io/charts ``` +Install PulsejetDB Cluster with: ``` helm install pulsejet-cluster jetengine/pulsejet-cluster ``` diff --git a/charts/pulsejet-cluster/Chart.yaml b/charts/pulsejet-cluster/Chart.yaml index 7dcc2f3..ffd9a63 100644 --- a/charts/pulsejet-cluster/Chart.yaml +++ b/charts/pulsejet-cluster/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.2 +version: 0.1.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/pulsejet-cluster/templates/deployment.yaml b/charts/pulsejet-cluster/templates/deployment.yaml index 801956c..ea48dc3 100644 --- a/charts/pulsejet-cluster/templates/deployment.yaml +++ b/charts/pulsejet-cluster/templates/deployment.yaml @@ -56,6 +56,8 @@ spec: fieldRef: apiVersion: v1 fieldPath: status.podIP + - name: RUST_BACKTRACE + value: "0" livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/charts/pulsejet-cluster/templates/tests/test-connection.yaml b/charts/pulsejet-cluster/templates/tests/test-connection.yaml index d8083cc..34f0c13 100644 --- a/charts/pulsejet-cluster/templates/tests/test-connection.yaml +++ b/charts/pulsejet-cluster/templates/tests/test-connection.yaml @@ -11,5 +11,5 @@ spec: - name: wget image: busybox command: ['wget'] - args: ['{{ include "pulsejet-cluster.fullname" . }}:{{ .Values.service.port }}'] + args: ['{{ include "pulsejet-cluster.fullname" . }}:{{ .Values.service.port }}/healthz'] restartPolicy: Never diff --git a/charts/pulsejet-cluster/values.yaml b/charts/pulsejet-cluster/values.yaml index 784882c..2700e53 100644 --- a/charts/pulsejet-cluster/values.yaml +++ b/charts/pulsejet-cluster/values.yaml @@ -5,10 +5,10 @@ replicaCount: 3 image: - repository: pulsejet + repository: docker.io/jetngine/pulsejet pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "latest" + tag: "master" imagePullSecrets: [] nameOverride: "" @@ -82,10 +82,14 @@ livenessProbe: httpGet: path: /healthz port: 47044 + initialDelaySeconds: 10 + periodSeconds: 5 readinessProbe: httpGet: path: /healthz port: 47044 + initialDelaySeconds: 10 + periodSeconds: 5 autoscaling: enabled: false diff --git a/ct.yaml b/ct.yaml index 4d12c23..76dfbf0 100644 --- a/ct.yaml +++ b/ct.yaml @@ -3,3 +3,4 @@ remote: origin chart-dirs: - charts validate-maintainers: false +helm-extra-args: --timeout 800s