Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix helm nil pointer? #123

Merged
merged 1 commit into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/celo-fullnode/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ keywords:
- Validator
- Ethereum
- Proof-of-Stake
version: 0.5.6
version: 0.5.7
dependencies:
- name: common
repository: oci://us-west1-docker.pkg.dev/devopsre/clabs-public-oci
Expand Down
4 changes: 2 additions & 2 deletions charts/celo-fullnode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Helm chart for deploying a Celo fullnode. More info at https://docs.celo.org

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

- [celo-fullnode](#celo-fullnode)
- [Chart requirements](#chart-requirements)
Expand Down Expand Up @@ -34,7 +34,7 @@ To install/manage a release named `celo-mainnet-fullnode` connected to `mainnet`

```bash
# Select the chart release to use
CHART_RELEASE="oci://us-west1-docker.pkg.dev/celo-testnet/clabs-public-oci/celo-fullnode --version=0.5.6" # Use remote chart and specific version
CHART_RELEASE="oci://us-west1-docker.pkg.dev/celo-testnet/clabs-public-oci/celo-fullnode --version=0.5.7" # Use remote chart and specific version
CHART_RELEASE="./" # Use this local folder

# (Only for local chart) Sync helm dependencies
Expand Down
23 changes: 21 additions & 2 deletions charts/celo-fullnode/templates/sts.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- $pprof := .Values.geth.pprof | default dict }}
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand Down Expand Up @@ -48,7 +49,7 @@ spec:
component: celo-fullnode
annotations:
clabs.co/images: "{{ .Values.geth.image.repository }}:{{ .Values.geth.image.tag }}"
{{- include "common.prometheus-annotations" (dict "pprof" .Values.geth.pprof ) | nindent 8 }}
{{- include "common.prometheus-annotations" (dict "pprof" $pprof ) | nindent 8 }}
spec:
{{- if .Values.geth.use_gstorage_data | default false }}
serviceAccountName: gcloud-storage-access
Expand Down Expand Up @@ -93,7 +94,25 @@ spec:
fieldPath: metadata.name
{{- end }}
containers:
{{- include "common.full-node-container" (dict "Values" $.Values "Release" $.Release "Chart" $.Chart "expose" true "ip_addresses" .Values.geth.public_ip_per_node "syncmode" .Values.geth.syncmode "gcmode" .Values.geth.gcmode "rpc_apis" .Values.geth.rpc_apis "pprof" (or (.Values.metrics) (.Values.geth.pprof.enabled)) "pprof_port" (.Values.geth.pprof.port) "metrics" (or (.Values.metrics) (.Values.metrics)) "ports" .Values.geth.service_node_port_per_full_node "light_serve" .Values.geth.light.serve "light_maxpeers" .Values.geth.light.maxpeers "maxpeers" .Values.geth.maxpeers "geth_flags" (.Values.geth.flags | default "") "extra_setup" (include "celo-fullnode.extra_setup" .)) | nindent 8 }}
{{- include "common.full-node-container" (dict
"Values" $.Values
"Release" $.Release
"Chart" $.Chart
"expose" true
"ip_addresses" .Values.geth.public_ip_per_node
"syncmode" .Values.geth.syncmode
"gcmode" .Values.geth.gcmode
"rpc_apis" .Values.geth.rpc_apis
"pprof" (or (.Values.metrics) ($pprof.enabled))
"pprof_port" $pprof.port
"metrics" .Values.metrics
"ports" .Values.geth.service_node_port_per_full_node
"light_serve" .Values.geth.light.serve
"light_maxpeers" .Values.geth.light.maxpeers
"maxpeers" .Values.geth.maxpeers
"geth_flags" (.Values.geth.flags | default "")
"extra_setup" (include "celo-fullnode.extra_setup" .)
) | nindent 8 }}
{{- if .Values.geth.create_network_endpoint_group }}
{{- include "celo-fullnode.health-checker-server" (dict "protocol_name" "http" "tcp_check_port" 8545 "server_port" 6000) | nindent 8 }}
{{- include "celo-fullnode.health-checker-server" (dict "protocol_name" "ws" "tcp_check_port" .Values.geth.ws_port "server_port" 6001) | nindent 8 }}
Expand Down
Loading