Skip to content

Commit

Permalink
feat: add hasKey check for ArangoDeployment spec
Browse files Browse the repository at this point in the history
so that you can define the whole spec of e.g. the `single` mode.

Otherwise the fallback to only `volumeClaimTemplate.spec` will be counted in.

resolved #103
  • Loading branch information
sebbrandt87 committed Nov 30, 2023
1 parent 47c7dde commit 40d78d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion someengineering/resoto/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: resoto
description: A Helm chart for Kubernetes
type: application
version: 0.10.4
version: 0.10.5
appVersion: "3.8.0"
maintainers:
- name: aquamatthias
Expand Down
2 changes: 1 addition & 1 deletion someengineering/resoto/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# resoto

![Version: 0.10.4](https://img.shields.io/badge/Version-0.10.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.8.0](https://img.shields.io/badge/AppVersion-3.8.0-informational?style=flat-square)
![Version: 0.10.5](https://img.shields.io/badge/Version-0.10.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.8.0](https://img.shields.io/badge/AppVersion-3.8.0-informational?style=flat-square)

A Helm chart for Kubernetes

Expand Down
2 changes: 2 additions & 0 deletions someengineering/resoto/templates/arango-db-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ spec:
{{- with .Values.arangodb.operator.deployment.spec }}
{{. | toYaml | nindent 2}}
{{- end}}
{{- if not (hasKey .Values.arangodb.operator.deployment.spec (.Values.arangodb.operator.deployment.mode | lower)) }}
{{ .Values.arangodb.operator.deployment.mode | lower}}:
volumeClaimTemplate:
spec: # https://docs.arangodb.com/3.11/deploy/kubernetes/deployment-resource-reference/#specgroupvolumeclaimtemplatespec-persistentvolumeclaimspec
{{ toYaml .Values.arangodb.persistentVolumeClaimSpec | nindent 8 }}
{{- end }}
externalAccess:
type: {{ .Values.arangodb.operator.deployment.externalAccessType }}
tls:
Expand Down

0 comments on commit 40d78d0

Please sign in to comment.