Skip to content

Commit 3df4443

Browse files
authored
feat: add cache_capacity (#189)
* feat: add cache_capacity * chore: format values
1 parent bac4832 commit 3df4443

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

charts/greptimedb-standalone/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: greptimedb-standalone
33
description: A Helm chart for deploying standalone greptimedb
44
type: application
5-
version: 0.1.29
5+
version: 0.1.30
66
appVersion: 0.9.5
77
home: https://github.com/GreptimeTeam/greptimedb
88
sources:

charts/greptimedb-standalone/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A Helm chart for deploying standalone greptimedb
44

5-
![Version: 0.1.29](https://img.shields.io/badge/Version-0.1.29-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.9.5](https://img.shields.io/badge/AppVersion-0.9.5-informational?style=flat-square)
5+
![Version: 0.1.30](https://img.shields.io/badge/Version-0.1.30-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.9.5](https://img.shields.io/badge/AppVersion-0.9.5-informational?style=flat-square)
66

77
## Source Code
88
- https://github.com/GreptimeTeam/greptimedb

charts/greptimedb-standalone/templates/_helpers.tpl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,26 @@ Create the name of the service account to use
6767
{{- $bucket := "" }}
6868
{{- $root := "" }}
6969
{{- $cache_path := "" }}
70+
{{- $cache_capacity := "" }}
7071

7172
{{- if .Values.objectStorage.s3 }}
7273
{{- $provider = "S3" }}
7374
{{- $bucket = .Values.objectStorage.s3.bucket }}
7475
{{- $root = .Values.objectStorage.s3.root }}
7576
{{- $cache_path = .Values.objectStorage.s3.cache_path }}
77+
{{- $cache_capacity = .Values.objectStorage.s3.cache_capacity }}
7678
{{- else if .Values.objectStorage.oss }}
7779
{{- $provider = "Oss" }}
7880
{{- $bucket = .Values.objectStorage.oss.bucket }}
7981
{{- $root = .Values.objectStorage.oss.root }}
8082
{{- $cache_path = .Values.objectStorage.oss.cache_path }}
83+
{{- $cache_capacity = .Values.objectStorage.oss.cache_capacity }}
8184
{{- else if .Values.objectStorage.gcs }}
8285
{{- $provider = "Gcs" }}
8386
{{- $bucket = .Values.objectStorage.gcs.bucket }}
8487
{{- $root = .Values.objectStorage.gcs.root }}
8588
{{- $cache_path = .Values.objectStorage.gcs.cache_path }}
89+
{{- $cache_capacity = .Values.objectStorage.gcs.cache_capacity }}
8690
{{- end }}
8791

8892
{{- if and $provider $bucket }}
@@ -101,6 +105,11 @@ Create the name of the service account to use
101105
cache_path = "{{ $cache_path }}"
102106
{{- end }}
103107

108+
# The cache capacity
109+
{{- if $cache_capacity }}
110+
cache_capacity = "{{ $cache_capacity }}"
111+
{{- end }}
112+
104113
{{- if .Values.objectStorage.s3 }}
105114
endpoint = "{{ .Values.objectStorage.s3.endpoint }}"
106115
region = "{{ .Values.objectStorage.s3.region }}"

charts/greptimedb-standalone/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ objectStorage:
6969
# # Cache path configuration
7070
# cache_path: ""
7171

72+
# The cache capacity
73+
# cache_capacity = ""
74+
7275
# configure to use oss storage
7376
oss: {}
7477
# bucket: "bucket-name"
@@ -81,6 +84,9 @@ objectStorage:
8184
# # Cache path configuration
8285
# cache_path: ""
8386

87+
# The cache capacity
88+
# cache_capacity = ""
89+
8490
# configure to use gcs storage
8591
gcs: {}
8692
# bucket: "bucket-name"
@@ -93,6 +99,9 @@ objectStorage:
9399
# # Cache path configuration
94100
# cache_path: ""
95101

102+
# The cache capacity
103+
# cache_capacity = ""
104+
96105
# -- Environment variables
97106
env:
98107
GREPTIMEDB_STANDALONE__HTTP__ADDR: "0.0.0.0:4000"

0 commit comments

Comments
 (0)