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

Enable SVC annotations on faucet and graph-node #1872

Merged
merged 9 commits into from
Dec 11, 2024
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/evm-faucet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: 0.1.2
version: 0.1.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
12 changes: 12 additions & 0 deletions charts/evm-faucet/templates/_helper.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,15 @@ Return the appropriate apiVersion for ingress.
{{- print "extensions/v1beta1" }}
{{- end }}
{{- end }}

{{/*
Service annotations
*/}}
{{- define "evmFaucet.serviceAnnotations" }}
{{- if .Values.additionalAnnotations }}
{{ toYaml .Values.additionalAnnotations }}
{{- end }}
{{- if .Values.service.annotations }}
{{ toYaml .Values.service.annotations }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/evm-faucet/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ apiVersion: v1
metadata:
name: {{tpl .Values.config.rollupName . }}-evm-faucet-service
namespace: {{ include "evmFaucet.namespace" . }}
{{- if or .Values.additionalAnnotations .Values.service.annotations }}
annotations:
{{- include "evmFaucet.serviceAnnotations" . | indent 4 }}
{{- end }}
spec:
selector:
app: {{tpl .Values.config.rollupName . }}-evm-faucet
Expand Down
3 changes: 3 additions & 0 deletions charts/evm-faucet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ secretProvider:

ports:
faucet: 8080

service:
annotations: {}
6 changes: 3 additions & 3 deletions charts/evm-stack/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies:
version: 1.0.0
- name: evm-faucet
repository: file://../evm-faucet
version: 0.1.2
version: 0.1.3
- name: evm-bridge-withdrawer
repository: file://../evm-bridge-withdrawer
version: 1.0.1
Expand All @@ -20,5 +20,5 @@ dependencies:
- name: blockscout-stack
repository: https://blockscout.github.io/helm-charts
version: 1.6.8
digest: sha256:618d0978ce1fa169bffa360010e8afeb06f21ffb7574e8a298d1d561bbcee05b
generated: "2024-11-11T13:27:42.868678+02:00"
digest: sha256:037f984f43d4eb0616c27f8a36a359680d4d745f4687a4ca54f7d77fb5119d99
generated: "2024-12-11T11:48:47.334728-08:00"
4 changes: 2 additions & 2 deletions charts/evm-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.3
version: 1.0.4

dependencies:
- name: celestia-node
Expand All @@ -30,7 +30,7 @@ dependencies:
repository: "file://../composer"
condition: composer.enabled
- name: evm-faucet
version: 0.1.2
version: 0.1.3
repository: "file://../evm-faucet"
condition: evm-faucet.enabled
- name: evm-bridge-withdrawer
Expand Down
2 changes: 1 addition & 1 deletion charts/graph-node/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: graph-node
description: A Helm chart for Graph Node deployment
version: 0.2.0
version: 0.2.1
appVersion: "0.0.1"

maintainers:
Expand Down
21 changes: 21 additions & 0 deletions charts/graph-node/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,24 @@ Namepsace to deploy elements into.
{{- define "graphnode.namespace" -}}
{{- default .Release.Namespace .Values.global.namespaceOverride | trunc 63 | trimSuffix "-" -}}
{{- end }}

{{/*
Service annotations
*/}}
{{- define "graphNode.serviceAnnotations" }}
{{- if .Values.graphNode.additionalAnnotations }}
{{ toYaml .Values.graphNode.additionalAnnotations }}
{{- end }}
{{- if .Values.graphNode.service.annotations }}
{{ toYaml .Values.graphNode.service.annotations }}
{{- end }}
{{- end }}

{{- define "ipfs.serviceAnnotations" }}
{{- if .Values.ipfs.additionalAnnotations }}
{{ toYaml .Values.ipfs.additionalAnnotations }}
{{- end }}
{{- if .Values.ipfs.service.annotations }}
{{ toYaml .Values.ipfs.service.annotations }}
{{- end }}
{{- end }}
8 changes: 8 additions & 0 deletions charts/graph-node/templates/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ kind: Service
metadata:
name: graph-node
namespace: {{ include "graphnode.namespace" . }}
{{- if or .Values.graphNode.additionalAnnotations .Values.graphNode.service.annotations }}
annotations:
{{- include "graphNode.serviceAnnotations" . | indent 4 }}
{{- end }}
spec:
selector:
app: graph-node
Expand All @@ -28,6 +32,10 @@ kind: Service
metadata:
name: ipfs
namespace: {{ include "graphnode.namespace" . }}
{{- if or .Values.ipfs.additionalAnnotations .Values.ipfs.service.annotations }}
annotations:
{{- include "ipfs.serviceAnnotations" . | indent 4 }}
{{- end }}
spec:
selector:
app: ipfs
Expand Down
4 changes: 4 additions & 0 deletions charts/graph-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ graphNode:
replicas: 1
metrics:
enabled: false
service:
annotations: {}
ports:
http: 8000
jsonRpc: 8001
Expand Down Expand Up @@ -41,6 +43,8 @@ ipfs:
enabled: false
local: true
size: 5Gi
service:
annotations: {}
ports:
api: 5001

Expand Down
4 changes: 2 additions & 2 deletions charts/sequencer-faucet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.9.0
version: 0.9.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.9.0"
appVersion: "0.9.1"

maintainers:
- name: wafflesvonmaple
Expand Down
14 changes: 13 additions & 1 deletion charts/sequencer-faucet/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,16 @@ Return the appropriate apiVersion for ingress.
{{- else }}
{{- print "extensions/v1beta1" }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Service annotations
*/}}
{{- define "sequencer.serviceAnnotations" }}
{{- if .Values.additionalAnnotations }}
{{ toYaml .Values.additionalAnnotations }}
{{- end }}
{{- if .Values.service.annotations }}
{{ toYaml .Values.service.annotations }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/sequencer-faucet/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ apiVersion: v1
metadata:
name: sequencer-faucet-service
namespace: {{ .Values.global.namespace }}
{{- if or .Values.additionalAnnotations .Values.service.annotations }}
annotations:
{{- include "sequencer.serviceAnnotations" . | indent 4 }}
{{- end }}
spec:
selector:
app: astria-dev-cluster
Expand Down
3 changes: 3 additions & 0 deletions charts/sequencer-faucet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ secretProvider:
ports:
faucet: 8080

service:
annotations: {}

ingress:
enabled: true
# For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
Expand Down
Loading