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

Add release v0.15.0 #23

Merged
merged 14 commits into from
Aug 13, 2024
2 changes: 1 addition & 1 deletion charts/celestia-app/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# celestia-app

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![AppVersion: v1.11.0](https://img.shields.io/badge/AppVersion-v1.11.0-informational?style=flat-square)
![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![AppVersion: v1.11.0](https://img.shields.io/badge/AppVersion-v1.11.0-informational?style=flat-square)

Celestia App

Expand Down
6 changes: 3 additions & 3 deletions charts/celestia-node/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
version: 2.20.2
digest: sha256:35d895f873f86ebff35e439bcf9da34c42a78c4db2e0e179bfb4014a2a0e2e10
generated: "2024-06-13T11:08:30.71548+02:00"
version: 2.21.0
digest: sha256:aad727fb6bd333a7ebb22f06f1edcb53349acdbffaa1baffa0266d9a33162dbd
generated: "2024-08-08T12:00:46.778208+02:00"
4 changes: 2 additions & 2 deletions charts/celestia-node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ annotations:
category: celestia
licenses: Apache-2.0
apiVersion: v2
appVersion: v0.14.1
appVersion: v0.15.0
dependencies:
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
Expand All @@ -21,4 +21,4 @@ maintainers:
name: celestia-node
sources:
- https://github.com/celestiaorg/celestia-node
version: 0.1.4
version: 0.2.0
336 changes: 248 additions & 88 deletions charts/celestia-node/README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion charts/celestia-node/templates/configmap-address.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ metadata:
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
data:
address: {{ .Values.node.settings.address }}
{{ .Values.node.settings.node_id }}.address: {{ .Values.node.settings.address }}
5 changes: 2 additions & 3 deletions charts/celestia-node/templates/configmap-bridge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ data:
RPCPort = "{{ .Values.node.config.bridge.configtoml.Core.RPCPort }}"
GRPCPort = "{{ .Values.node.config.bridge.configtoml.Core.GRPCPort }}"
[State]
KeyringAccName = "{{ .Values.node.config.bridge.configtoml.State.KeyringAccName }}"
KeyringBackend = "{{ .Values.node.config.bridge.configtoml.State.KeyringBackend }}"
GranterAddress = {{ .Values.node.config.bridge.configtoml.State.GranterAddress }}
DefaultKeyName = "{{ .Values.node.config.bridge.configtoml.State.DefaultKeyName }}"
DefaultBackendName = "{{ .Values.node.config.bridge.configtoml.State.DefaultBackendName }}"
[P2P]
ListenAddresses = [{{ range $index, $element := .Values.node.config.bridge.configtoml.P2P.ListenAddresses }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}]
AnnounceAddresses = {{ .Values.node.config.bridge.configtoml.P2P.AnnounceAddresses }}
Expand Down
5 changes: 2 additions & 3 deletions charts/celestia-node/templates/configmap-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ data:
RPCPort = "{{ .Values.node.config.full.configtoml.Core.RPCPort }}"
GRPCPort = "{{ .Values.node.config.full.configtoml.Core.GRPCPort }}"
[State]
KeyringAccName = "{{ .Values.node.config.full.configtoml.State.KeyringAccName }}"
KeyringBackend = "{{ .Values.node.config.full.configtoml.State.KeyringBackend }}"
GranterAddress = {{ .Values.node.config.full.configtoml.State.GranterAddress }}
DefaultKeyName = "{{ .Values.node.config.full.configtoml.State.DefaultKeyName }}"
DefaultBackendName = "{{ .Values.node.config.full.configtoml.State.DefaultBackendName }}"
[P2P]
ListenAddresses = [{{ range $index, $element := .Values.node.config.full.configtoml.P2P.ListenAddresses }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}]
AnnounceAddresses = {{ .Values.node.config.full.configtoml.P2P.AnnounceAddresses }}
Expand Down
7 changes: 4 additions & 3 deletions charts/celestia-node/templates/configmap-light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ data:
RPCPort = "{{ .Values.node.config.light.configtoml.Core.RPCPort }}"
GRPCPort = "{{ .Values.node.config.light.configtoml.Core.GRPCPort }}"
[State]
KeyringAccName = "{{ .Values.node.config.light.configtoml.State.KeyringAccName }}"
KeyringBackend = "{{ .Values.node.config.light.configtoml.State.KeyringBackend }}"
GranterAddress = {{ .Values.node.config.light.configtoml.State.GranterAddress }}
DefaultKeyName = "{{ .Values.node.config.light.configtoml.State.DefaultKeyName }}"
DefaultBackendName = "{{ .Values.node.config.light.configtoml.State.DefaultBackendName }}"
[P2P]
ListenAddresses = [{{ range $index, $element := .Values.node.config.light.configtoml.P2P.ListenAddresses }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}]
AnnounceAddresses = {{ .Values.node.config.light.configtoml.P2P.AnnounceAddresses }}
Expand Down Expand Up @@ -63,6 +62,8 @@ data:
PeerCooldown = "{{ .Values.node.config.light.configtoml.Share.PeerManagerParams.PeerCooldown }}"
GcInterval = "{{ .Values.node.config.light.configtoml.Share.PeerManagerParams.GcInterval }}"
EnableBlackListing = {{ .Values.node.config.light.configtoml.Share.PeerManagerParams.EnableBlackListing }}
[Share.LightAvailability]
SampleAmount = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.LightAvailability.SampleAmount }}
[Share.Discovery]
PeersLimit = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.Discovery.PeersLimit }}
AdvertiseInterval = "{{ .Values.node.config.light.configtoml.Share.Discovery.AdvertiseInterval }}"
Expand Down
19 changes: 19 additions & 0 deletions charts/celestia-node/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ spec:
nodePort: null
{{- end }}
{{- end }}
{{- if .Values.service.external.ports.ws }}
- name: ws
port: {{ .Values.service.external.ports.ws }}
{{- if not (eq .Values.service.external.ports.ws .Values.node.containerPorts.ws) }}
targetPort: {{ .Values.node.containerPorts.ws }}
{{- end }}
protocol: TCP
{{- if and (or (eq .Values.service.external.type "NodePort") (eq .Values.service.external.type "LoadBalancer")) (not (empty .Values.service.external.nodePorts.ws)) }}
nodePort: {{ .Values.service.external.nodePorts.ws }}
{{- else if eq .Values.service.external.type "ClusterIP" }}
nodePort: null
{{- end }}
{{- end }}
{{- if .Values.service.external.ports.rest }}
- name: rest
port: {{ .Values.service.external.ports.rest }}
Expand Down Expand Up @@ -151,6 +164,12 @@ spec:
port: {{ .Values.service.internal.ports.p2p }}
targetPort: {{ .Values.node.containerPorts.p2p }}
protocol: UDP
- name: ws
port: {{ .Values.service.internal.ports.ws }}
{{- if not (eq .Values.service.internal.ports.ws .Values.node.containerPorts.ws) }}
targetPort: {{ .Values.node.containerPorts.ws }}
{{- end }}
protocol: TCP
- name: rest
port: {{ .Values.service.internal.ports.rest }}
{{- if not (eq .Values.service.internal.ports.rest .Values.node.containerPorts.rest) }}
Expand Down
55 changes: 45 additions & 10 deletions charts/celestia-node/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ spec:
command:
- "sh"
- "-c"
- "chown -R {{ .Values.node.containerSecurityContext.runAsUser }}:{{ .Values.node.containerSecurityContext.runAsGroup }} /home"
- |
set -ex
chown -R {{ .Values.node.containerSecurityContext.runAsUser }}:{{ .Values.node.containerSecurityContext.runAsGroup }} /home
ls -ltra /home
volumeMounts:
- name: home-dir # This is needed so that the process has permissions to create files in the home directory
mountPath: /home
Expand All @@ -127,18 +130,22 @@ spec:
- "sh"
- "-c"
- |
mkdir -p /keys-volume/keyring-test && \
cp /keys/* /keys-volume/ && \
cp /address/* /keys-volume/keyring-test/ && \
cp /celes-key/* /keys-volume/keyring-test/ && \
chown -R {{ .Values.node.containerSecurityContext.runAsUser }}:{{ .Values.node.containerSecurityContext.runAsGroup }} /keys-volume/* /keys-volume/keyring-test/ && \
find /keys-volume/ -type f -exec chmod 0600 {} \;
set -ex
mkdir -p /keys-volume/keyring-test
cp /keys/* /keys-volume/
cp /address/* /keys-volume/keyring-test/
cp /celes-key/* /keys-volume/keyring-test/
printf "%s" "$(cat /celes-key/my_celes_key.info)" > /keys-volume/keyring-test/my_celes_key.info
rm /keys-volume/my_celes_key.info
chown -R {{ .Values.node.containerSecurityContext.runAsUser }}:{{ .Values.node.containerSecurityContext.runAsGroup }} /keys-volume/* /keys-volume/keyring-test/
find /keys-volume/ -type f -exec chmod 0400 {} \;
volumeMounts:
- name: keys
mountPath: /keys
readOnly: true
- name: address
mountPath: /address
mountPath: /address/{{ .Values.node.settings.node_id }}.address
subPath: {{ .Values.node.settings.node_id }}.address
readOnly: true
- name: celes-key
mountPath: /celes-key
Expand Down Expand Up @@ -168,6 +175,10 @@ spec:
env:
- name: CELESTIA_HOME
value: {{ .Values.node.settings.home }}
{{- if .Values.node.settings.ws.tls.enabled }}
- name: CELESTIA_TLS_PATH
value: /etc/celestia/tls
smuu marked this conversation as resolved.
Show resolved Hide resolved
{{- end }}
{{- if .Values.node.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.node.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
Expand All @@ -194,6 +205,10 @@ spec:
containerPort: {{ .Values.node.containerPorts.p2p }}
hostPort: {{ .Values.node.containerPorts.p2p }}
protocol: UDP
- name: ws
containerPort: {{ .Values.node.containerPorts.ws }}
hostPort: {{ .Values.node.containerPorts.ws }}
protocol: TCP
- name: rest
containerPort: {{ .Values.node.containerPorts.rest }}
hostPort: {{ .Values.node.containerPorts.rest }}
Expand Down Expand Up @@ -272,6 +287,16 @@ spec:
- name: home-dir # This is needed so that the process has permissions to create files in the home directory
mountPath: {{ .Values.node.settings.home }}
readOnly: false
{{- if .Values.node.settings.ws.tls.enabled }}
- name: tls-certs
mountPath: {{ .Values.node.settings.home }}/tls/cert.pem
subPath: tls.cert
readOnly: true
- name: tls-certs
mountPath: {{ .Values.node.settings.home }}/tls/key.pem
subPath: tls.key
readOnly: true
{{- end }}
{{- if .Values.node.extraVolumeMounts }}
{{- include "common.tplvalues.render" (dict "value" .Values.node.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
Expand Down Expand Up @@ -330,8 +355,8 @@ spec:
configMap:
name: {{ template "common.names.fullname" . }}-address
items:
- key: address
path: address
- key: {{ .Values.node.settings.node_id }}.address
path: {{ .Values.node.settings.node_id }}.address
- name: celes-key
secret:
secretName: {{ .Values.node.settings.secret.name }}
Expand All @@ -345,6 +370,16 @@ spec:
- name: configtoml
configMap:
name: {{ template "common.names.fullname" . }}-configtoml
{{- if .Values.node.settings.ws.tls.enabled }}
- name: tls-certs
secret:
secretName: {{ .Values.node.settings.secret.name }}
items:
- key: tls.cert
path: tls.cert
- key: tls.key
path: tls.key
{{- end }}
- name: otel-agent-config
configMap:
name: {{ template "common.names.fullname" . }}-otel-agent
Expand Down
48 changes: 38 additions & 10 deletions charts/celestia-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
# -- repository for the image, celestiaorg/celestia-node by default
repository: celestiaorg/celestia-node
# -- tag for the image, v0.13.6 by default
tag: v0.14.1
tag: v0.15.0
digest: ""
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
Expand Down Expand Up @@ -137,6 +137,16 @@
secret:
# -- name of the secret, it must be set
name: SET_IT
ws:
tls:
enabled: false
## A secret must be available in the cluster with the following format:
## - name: <secret-name>
## - items:
## - key: tls.cert
## - key: tls.key
secret:
name: SET_IT
## @param node.config Configuration for the celestia-node
##
## @param node.config.bridge Configuration for the celestia-node bridge
Expand All @@ -155,15 +165,16 @@
RPCPort: "26657"
GRPCPort: "9090"
State:
KeyringAccName: ""
KeyringBackend: test
GranterAddress: []
DefaultKeyName: my_celes_key
DefaultBackendName: test
P2P:
ListenAddresses:
- /ip4/0.0.0.0/udp/2121/quic-v1/webtransport
- /ip6/::/udp/2121/quic-v1/webtransport
- /ip4/0.0.0.0/udp/2121/quic-v1
- /ip6/::/udp/2121/quic-v1
- /ip4/0.0.0.0/udp/2121/webrtc-direct
- /ip6/::/udp/2121/webrtc-direct
- /ip4/0.0.0.0/tcp/2121
- /ip6/::/tcp/2121
AnnounceAddresses: []
Expand All @@ -174,6 +185,9 @@
- /ip4/0.0.0.0/udp/2121/quic-v1
- /ip4/127.0.0.1/udp/2121/quic-v1
- /ip6/::/udp/2121/quic-v1
- /ip4/0.0.0.0/udp/2121/webrtc-direct
- /ip4/127.0.0.1/udp/2121/webrtc-direct
- /ip6/::/udp/2121/webrtc-direct
- /ip4/0.0.0.0/tcp/2121
- /ip4/127.0.0.1/tcp/2121
- /ip6/::/tcp/2121
Expand Down Expand Up @@ -247,15 +261,16 @@
RPCPort: "26657"
GRPCPort: "9090"
State:
KeyringAccName: ""
KeyringBackend: test
GranterAddress: []
DefaultKeyName: my_celes_key
DefaultBackendName: test
P2P:
ListenAddresses:
- /ip4/0.0.0.0/udp/2121/quic-v1/webtransport
- /ip6/::/udp/2121/quic-v1/webtransport
- /ip4/0.0.0.0/udp/2121/quic-v1
- /ip6/::/udp/2121/quic-v1
- /ip4/0.0.0.0/udp/2121/webrtc-direct
- /ip6/::/udp/2121/webrtc-direct
- /ip4/0.0.0.0/tcp/2121
- /ip6/::/tcp/2121
AnnounceAddresses: []
Expand All @@ -266,6 +281,9 @@
- /ip4/0.0.0.0/udp/2121/quic-v1
- /ip4/127.0.0.1/udp/2121/quic-v1
- /ip6/::/udp/2121/quic-v1
- /ip4/0.0.0.0/udp/2121/webrtc-direct
- /ip4/127.0.0.1/udp/2121/webrtc-direct
- /ip6/::/udp/2121/webrtc-direct
- /ip4/0.0.0.0/tcp/2121
- /ip4/127.0.0.1/tcp/2121
- /ip6/::/tcp/2121
Expand Down Expand Up @@ -345,15 +363,16 @@
RPCPort: "26657"
GRPCPort: "9090"
State:
KeyringAccName: ""
KeyringBackend: test
GranterAddress: []
DefaultKeyName: my_celes_key
DefaultBackendName: test
P2P:
ListenAddresses:
- /ip4/0.0.0.0/udp/2121/quic-v1/webtransport
- /ip6/::/udp/2121/quic-v1/webtransport
- /ip4/0.0.0.0/udp/2121/quic-v1
- /ip6/::/udp/2121/quic-v1
- /ip4/0.0.0.0/udp/2121/webrtc-direct
- /ip6/::/udp/2121/webrtc-direct
- /ip4/0.0.0.0/tcp/2121
- /ip6/::/tcp/2121
AnnounceAddresses: []
Expand All @@ -364,6 +383,9 @@
- /ip4/0.0.0.0/udp/2121/quic-v1
- /ip4/127.0.0.1/udp/2121/quic-v1
- /ip6/::/udp/2121/quic-v1
- /ip4/0.0.0.0/udp/2121/webrtc-direct
- /ip4/127.0.0.1/udp/2121/webrtc-direct
- /ip6/::/udp/2121/webrtc-direct
- /ip4/0.0.0.0/tcp/2121
- /ip4/127.0.0.1/tcp/2121
- /ip6/::/tcp/2121
Expand Down Expand Up @@ -450,16 +472,16 @@
## @param volumePermissions.resourcesPreset Set init container resources according to one common preset (allowed values: none, nano, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
##
#resourcesPreset: "micro"

Check failure on line 475 in charts/celestia-node/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

475:6 [comments] missing starting space in comment
## @param volumePermissions.resources Set init container resources for the otel agent (essential for production workloads)
## Example:
resources:
requests:
cpu: 100m
memory: 100Mi
#limits:

Check failure on line 482 in charts/celestia-node/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

482:8 [comments] missing starting space in comment
#cpu: 200m

Check failure on line 483 in charts/celestia-node/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

483:10 [comments] missing starting space in comment
#memory: 200Mi

Check failure on line 484 in charts/celestia-node/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

484:10 [comments] missing starting space in comment
## A secret must be available in the cluster with the following format:
## - name: <secret-name>
## - items:
Expand Down Expand Up @@ -525,6 +547,8 @@
containerPorts:
# -- P2P container port, 2121 by default
p2p: 2121
# -- WebSocket container port, 2122 by default
ws: 2122
# -- REST container port, 26659 by default
rest: 26659
# -- RPC container port, 26658 by default
Expand Down Expand Up @@ -633,7 +657,7 @@
# -- limits for the node
limits:
# -- cpu limits for the node, 2 by default
#cpu: 6

Check failure on line 660 in charts/celestia-node/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

660:8 [comments] missing starting space in comment
# -- memory limits for the node, 8Gi by default
memory: 16Gi
## Configure Pods Security Context
Expand Down Expand Up @@ -911,6 +935,8 @@
ports:
# -- P2P container port, 2121 by default
p2p: 2121
# -- WebSocket container port, 2122 by default
ws: 2122
# -- REST container port, 26659 by default
rest: 26659
# -- RPC container port, 26658 by default
Expand Down Expand Up @@ -957,6 +983,8 @@
ports:
# -- P2P container port, 2121 by default
p2p: 2121
# -- WebSocket container port, 2122 by default
ws: 2122
# -- REST container port, 26659 by default
rest: 26659
# -- RPC container port, 26658 by default
Expand Down
5 changes: 0 additions & 5 deletions examples/README.md

This file was deleted.

Loading
Loading