Skip to content

Commit

Permalink
add labels to blockmeta, bump to 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
kw1knode committed Jul 15, 2024
1 parent 2f21c69 commit adb9f60
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/blockmeta/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: 3.8.0
version: 3.9.0

# 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
4 changes: 4 additions & 0 deletions charts/blockmeta/templates/inject/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ spec:
matchLabels:
app.kubernetes.io/name: {{ include "inject.uniqueName" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app: blockmeta
network: "{{ $.Values.blockChain.network }}"
block_version: "{{ $.Values.blockChain.blocksVersion }}"
sf_type: "{{ $.Values.blockChain.type }}"
template:
metadata:
{{- with $values.podAnnotations }}
Expand Down
13 changes: 13 additions & 0 deletions charts/blockmeta/templates/inject/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ spec:
scrapeTimeout: {{ .Values.inject.serviceMonitor.scrapeTimeout | default "10s" }}
port: metrics
path: /metrics
relabelings:
- action: replace
sourceLabels: [__meta_kubernetes_pod_label_app]
targetLabel: app
- action: replace
sourceLabels: [__meta_kubernetes_pod_label_block_version]
targetLabel: block_version
- action: replace
sourceLabels: [__meta_kubernetes_pod_label_network]
targetLabel: network
- action: replace
sourceLabels: [__meta_kubernetes_pod_label_sf_type]
targetLabel: sf_type
selector:
matchLabels:
app.kubernetes.io/name: {{ include "inject.uniqueName" . }}-svc
Expand Down
10 changes: 6 additions & 4 deletions charts/blockmeta/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,21 @@ image:

blockChain:
# -- The name of the blockchain network. Possible values could be "mainnet", "testnet", "devnet", etc.
network: ""
network: {}

# -- The version of the blocks. Specify the version you are using, e.g., "1.0.0", "2.1.3", "v1", etc.
blocksVersion: ""
blocksVersion: {}

# -- The type of blockchain component. Possible values could be "cl, "consensus-layer, "el, "execution-layer", etc.
type: {}

# -- Overrides the name of the chart.
# If not set, the name will be derived from the chart name.
nameOverride: ""
nameOverride: {}

# -- Overrides the full name of the chart.
# If not set, the full name will be derived from the release name and the chart name.
fullnameOverride: ""
fullnameOverride: {}

alertManager:
# -- Set to true if AlertManager integration is enabled
Expand Down

0 comments on commit adb9f60

Please sign in to comment.