Skip to content

Commit

Permalink
refactor: take out tzkt from tezos chart
Browse files Browse the repository at this point in the history
  • Loading branch information
puppetninja committed Jul 29, 2024
1 parent 5d36473 commit b3835fb
Show file tree
Hide file tree
Showing 14 changed files with 408 additions and 401 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dist
*.eggs
.venv*
.DS_Store
.idea
.vscode
node_modules

Expand Down
15 changes: 0 additions & 15 deletions charts/tezos/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -127,21 +127,6 @@ metadata:
{{- dict "data" (uniq $allAccounts) | toJson }}
{{- end }}

{{/*
Should deploy TZKT indexer?
*/}}
{{- define "tezos.shouldDeployTzktIndexer" -}}
{{- $indexers := .Values.indexers | default dict }}
{{- if $indexers.tzkt }}
{{- $tzkt_config := $indexers.tzkt.config | default dict }}
{{- if $tzkt_config.rpc_url }}
{{- "true" }}
{{- else }}
{{- "" }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Checks if `bcdIndexer` has `rpcUrl` and `dbPassword` set.
Returns the true type or empty string which is falsey.
Expand Down
13 changes: 0 additions & 13 deletions charts/tezos/templates/static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,3 @@ spec:
node_class: {{ $key }}
---
{{- end }}
{{- if (include "tezos.shouldDeployTzktIndexer" .) }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.tzkt_indexer_statefulset.name }}
namespace: {{ .Release.Namespace }}
spec:
ports:
- port: 5000
selector:
app: {{ .Values.tzkt_indexer_statefulset.name }}
type: NodePort
{{- end }}
322 changes: 0 additions & 322 deletions charts/tezos/templates/tzkt_indexer.yaml

This file was deleted.

Loading

0 comments on commit b3835fb

Please sign in to comment.