Skip to content

Commit

Permalink
rollup-node
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaizet-ledger committed Sep 20, 2024
1 parent 3bbe54d commit d06846e
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/balance-checker/templates/config-file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ metadata:
{{- include "scroll-sdk.labels" $ | nindent 4 }}
data:
balance-checker-config.json : |
{{ .Values.scrollConfig | indent 4 }}
{{ .Values.scrollConfig | nindent 4 }}
2 changes: 1 addition & 1 deletion charts/rollup-node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
description: rollup-node helm charts
name: rollup-node
version: 0.0.9
version: 0.0.11
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
Expand Down
3 changes: 2 additions & 1 deletion charts/rollup-node/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# rollup-node

![Version: 0.0.9](https://img.shields.io/badge/Version-0.0.9-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
![Version: 0.0.11](https://img.shields.io/badge/Version-0.0.11-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)

rollup-node helm charts

Expand Down Expand Up @@ -97,6 +97,7 @@ Kubernetes: `>=1.22.0-0`
| resources.limits.memory | string | `"200Mi"` | |
| resources.requests.cpu | string | `"50m"` | |
| resources.requests.memory | string | `"50Mi"` | |
| scrollConfig | string | `"{}\n"` | |
| service.main.enabled | bool | `true` | |
| service.main.ports.http.enabled | bool | `true` | |
| service.main.ports.http.port | int | `8090` | |
Expand Down
8 changes: 4 additions & 4 deletions charts/rollup-node/templates/config-file.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{- if .Values.global.isStandalone }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: rollup-config
labels:
{{- include "scroll-sdk.labels" $ | nindent 4 }}
data:
{{ (.Files.Glob "configs/rollup-config.json").AsConfig | indent 2 }}
---
{{- end }}
rollup-config.json: |
{{ .Values.scrollConfig | indent 4 }}
47 changes: 47 additions & 0 deletions charts/rollup-node/templates/helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "scroll-sdk.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "scroll-sdk.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and build as used by the chart label.
*/}}
{{- define "scroll-sdk.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "scroll-sdk.labels" -}}
helm.sh/chart: {{ include "scroll-sdk.chart" . }}
{{ include "scroll-sdk.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/build: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "scroll-sdk.selectorLabels" -}}
app.kubernetes.io/name: {{ include "scroll-sdk.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
4 changes: 3 additions & 1 deletion charts/rollup-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ probes:
startup:
enabled: false


persistence:
*app_name:
enabled: true
Expand Down Expand Up @@ -152,3 +151,6 @@ serviceMonitor:
- port: http
interval: 1m
scrapeTimeout: 10s

scrollConfig: |
{}

0 comments on commit d06846e

Please sign in to comment.