Skip to content

Commit 897a72d

Browse files
authored
PRD-1068 add back the elasticache config (#33)
* fix: add back the elasticache config Forgot to pull this from v3 * bump version * fix: supported kube version * fix: eks is versioned as pre-release helm/helm#10375 * fix: missing dot
1 parent 1c5e2b4 commit 897a72d

6 files changed

Lines changed: 42 additions & 8 deletions

File tree

README-ENTERPRISE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ production-ready set of values except for the `secrets` portion.
7272
| `services.icc.secrets.control_plane_keys` | TODO | "" | Yes |
7373
| `services.icc.secrets.user_manager_session` | TODO | "" | Yes |
7474

75+
#### Elasticache
76+
77+
| Name | Description | Default Value | Required |
78+
| --- | --- | --- | --- |
79+
| `services.icc.elasticache.role_arn` | The role ARN | "" | No |
80+
| `services.icc.elasticache.region` | Region the cluster is in | "" | No |
81+
| `services.icc.elasticache.cluster_name` | Name of the Elasticache cluster | "" | No |
82+
7583
#### Features
7684

7785
| Name | Description | Default Value | Required |

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,17 @@ production-ready set of values except for the `secrets` portion.
6969
| `services.icc.valkey.apps_url` | Valkey connection string | "" | Yes |
7070
| `services.icc.valkey.icc_url` | Valkey connection string | "" | Yes |
7171
| `services.icc.prometheus.url` | Prometheus API URL | "" | Yes |
72-
| `services.icc.secrets.icc_session` | TODO | "" | Yes |
73-
| `services.icc.secrets.control_plane_keys` | TODO | "" | Yes |
74-
| `services.icc.secrets.user_manager_session` | TODO | "" | Yes |
72+
| `services.icc.secrets.icc_session` | Random value to secure sessions | "" | Yes |
73+
| `services.icc.secrets.control_plane_keys` | Random value to secure sessions | "" | Yes |
74+
| `services.icc.secrets.user_manager_session` | Random value to secure sessions | "" | Yes |
75+
76+
#### Elasticache
77+
78+
| Name | Description | Default Value | Required |
79+
| --- | --- | --- | --- |
80+
| `services.icc.elasticache.role_arn` | The role ARN | "" | No |
81+
| `services.icc.elasticache.region` | Region the cluster is in | "" | No |
82+
| `services.icc.elasticache.cluster_name` | Name of the Elasticache cluster | "" | No |
7583

7684
#### Features
7785

chart/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: helm
3-
version: 4.0.0-alpha.7
4-
kubeVersion: ">= v1.31"
3+
version: 4.0.0-alpha.8
4+
kubeVersion: ">= 1.31.0-0"
55
description: Platformatic microservices
66
type: application
77
keywords:

chart/templates/deployment/_icc.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ spec:
8686
- name: PLT_MACHINIST_URL
8787
value: http://machinist.platformatic
8888
- name: PLT_FEATURE_CACHE
89-
value: "{{ features.cache.enable | default false }}"
89+
value: "{{ .features.cache.enable | default false }}"
9090
- name: PLT_FEATURE_CACHE_RECOMMENDATIONS
9191
value: "{{ .features.cache_recommendations.enable | default false }}"
9292
- name: PLT_FEATURE_RISK_SERVICE_DUMP
@@ -211,6 +211,17 @@ spec:
211211
key: "{{ . }}"
212212
{{- end }}
213213

214+
{{- with .elasticache }}
215+
- name: PLT_APPLICATIONS_CACHE_PROVIDER
216+
value: elasticache
217+
- name: PLT_CACHE_MANAGER_CONFIGURE_KEYSPACE_EVENT_NOTIFY
218+
value: "false"
219+
- name: PLT_APPLICATIONS_ELASTICACHE_REGION
220+
value: {{ .region }}
221+
- name: PLT_APPLICATIONS_ELASTICACHE_CLUSTERID_PREFIX
222+
value: {{ .cluster_name }}
223+
{{- end}}
224+
214225
{{- if .command }}
215226
command:
216227
{{- toYaml .command | nindent 12 }}

chart/templates/serviceaccount.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ metadata:
77
namespace: {{ include "install.namespace" $ }}
88
{{- if eq .Values.cloud "aws"}}
99
annotations:
10-
{{- with .Values.services.icc.elasticacheRoleArn}}
11-
eks.amazonaws.com/role-arn: {{ . }}
10+
{{- with .Values.services.icc.elasticache}}
11+
eks.amazonaws.com/role-arn: {{ .role_arn }}
1212
{{- end}}
1313
{{- end}}
1414

chart/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ services:
4444
monitor:
4545
enable: true
4646

47+
# Configure elasticache
48+
# See <doc link here>
49+
#elasticache:
50+
# role_arn: ""
51+
# region: ""
52+
# cluster_name: ""
53+
4754
# We have a changelog available at:
4855
image:
4956
repository: platformatic/intelligent-command-center

0 commit comments

Comments
 (0)