c7b54b41 by Adam Heath

Add version and count overrides to elasticsearch+kibana.

1 parent 05f52b3c
......@@ -2,6 +2,10 @@ name: test
namespace: default
elasticsearch:
enabled: true
version: 8.2.3
count: 2
kibana:
count: 1
postgresql:
enabled: true
clone: {}
......
......@@ -16,14 +16,34 @@ releases:
values:
- namePrefix: {{ .Values.name }}-
strategicMergePatches:
- apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: {{ .Values.name }}-moqui
namespace: {{ .Values.namespace }}
spec:
version: {{ .Values.elasticsearch.version }}
- apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: {{ .Values.name }}-moqui
namespace: {{ .Values.namespace }}
spec:
count: {{ .Values.elasticsearch.kibana.count }}
version: {{ .Values.elasticsearch.version }}
elasticsearchRef:
name: {{ .Values.name }}-moqui
jsonPatches:
- target:
group: elasticsearch.k8s.elastic.co
version: v1
kind: Elasticsearch
name: {{ .Values.name }}-moqui
namespace: {{ .Values.namespace }}
patch:
- op: replace
path: /spec/nodeSets/0/count
value: {{ .Values.elasticsearch.count }}
- name: {{ .Values.name }}-moqui-postgresql
condition: postgresql.enabled
......