Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ ollama:
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| tolerations | list | `[]` | Tolerations for pod assignment |
| tests.enabled | bool | `true` | Enable or disable test pods |
| tests.labels | object | `{}` | Labels to add to the test pods |
| topologySpreadConstraints | object | `{}` | Topology Spread Constraints for pod assignment |
| updateStrategy.type | string | `"Recreate"` | Deployment strategy can be "Recreate" or "RollingUpdate". Default is Recreate |
| volumeMounts | list | `[]` | Additional volumeMounts on the output Deployment definition. |
Expand Down
5 changes: 5 additions & 0 deletions templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
---
{{- if .Values.tests.enabled -}}
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "ollama.fullname" . }}-test-connection"
namespace: {{ include "ollama.namespace" . }}
labels:
{{- include "ollama.labels" . | nindent 4 }}
{{- with .Values.tests.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
annotations:
"helm.sh/hook": test
spec:
Expand All @@ -15,3 +19,4 @@ spec:
command: ['wget']
args: ['{{ include "ollama.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never
{{ end }}
6 changes: 6 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -411,3 +411,9 @@
# value: 1000000
# globalDefault: false
# description: "This priority class should be used for XYZ service pods only."

# -- Test connection pods
tests:
enabled: true
# -- Labels to add to the tests
labels: {}

Check failure on line 419 in values.yaml

View workflow job for this annotation

GitHub Actions / helm-lint

419:13 [new-line-at-end-of-file] no new line character at the end of file
Loading