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

Clean up default values in values file #100

Merged
merged 2 commits into from
Oct 23, 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
21 changes: 10 additions & 11 deletions charts/horizon/templates/ingest-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,31 @@ spec:
release: {{ .Release.Name }}
horizon_network: {{ .Values.global.network }}
{{- if .Values.ingest.labels }}
{{- range $key, $value := .Values.ingest.labels }}
{{- range $key, $value := .Values.ingest.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.ingest.annotations }}
annotations:
{{- range $key, $value := .Values.ingest.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- range $key, $value := .Values.ingest.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
{{- if .Values.ingest.serviceAccountName }}
serviceAccountName: {{ .Values.ingest.serviceAccountName | default "default" }}
serviceAccountName: {{ .Values.ingest.serviceAccountName }}
{{- end }}
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.global.imagePullSecrets | indent 8 }}
imagePullSecrets: {{ toYaml .Values.global.imagePullSecrets | nindent 8 }}
{{- end }}
containers:
- name: horizon
image: {{ include "common.horizonImage" . | quote }}
{{- if .Values.ingest.cliArgs }}
args:
{{- range $flag := .Values.ingest.cliArgs }}
- {{ $flag | quote }}
{{- end }}
{{- range $flag := .Values.ingest.cliArgs }}
- {{ $flag | quote }}
{{- end }}
{{- end }}
imagePullPolicy: {{ .Values.global.image.horizon.pullPolicy }}
ports:
Expand Down
8 changes: 4 additions & 4 deletions charts/horizon/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ metadata:
namespace: {{ .Release.Namespace }}
{{- if .Values.ingest.ingress.annotations }}
annotations:
{{- range $key, $value := .Values.ingest.ingress.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.ingest.ingress.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
tls:
- secretName: {{ template "common.fullname" . }}-ingest-cert
Expand Down
14 changes: 6 additions & 8 deletions charts/horizon/templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,18 @@ spec:
{{- end }}
spec:
{{- if .Values.web.serviceAccountName }}
serviceAccountName: {{ .Values.web.serviceAccountName | default "default" }}
serviceAccountName: {{ .Values.web.serviceAccountName }}
{{- end }}
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.global.imagePullSecrets | indent 8 }}
{{- end }}
containers:
imagePullSecrets: {{ toYaml .Values.global.imagePullSecrets | nindent 8 }}
{{- end }} containers:
- name: horizon
image: {{ include "common.horizonImage" . | quote }}
{{- if .Values.web.cliArgs }}
args:
{{- range $flag := .Values.web.cliArgs }}
- {{ $flag | quote }}
{{- end }}
{{- range $flag := .Values.web.cliArgs }}
- {{ $flag | quote }}
{{- end }}
{{- end }}
imagePullPolicy: {{ .Values.global.image.horizon.pullPolicy }}
ports:
Expand Down
62 changes: 28 additions & 34 deletions charts/horizon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ global:
## - ingest.coreConfig
network: testnet

## Required when global.network is set to non-standard network
# historyArchiveUrls: "url1,url2,url3"
# networkPassphrase: "My Stellar Network; June 2020"
## Only used when global.network is something other than "testnet" or "pubnet"
historyArchiveUrls: "url1,url2,url3"

## Only used when global.network is something other than "testnet" or "pubnet"
networkPassphrase: "My Stellar Network; June 2020"

## String to partially override common.fullname template (will maintain the release name)
##
# nameOverride:
nameOverride: ""

## String to fully override common.fullname template
##
# fullnameOverride:
fullnameOverride: ""

## List of pre-existing image Pull Secrets to use
# imagePullSecrets:
imagePullSecrets: []
# - imagepullsecret1
# - imagepullsecret2

Expand Down Expand Up @@ -78,31 +78,28 @@ ingest:
## pre existing secret that contains the DATABASE_URL key with postgres URL
existingSecret: ""

## Required when global.network is set to non-standard value
## Also useful if you want to provide non-standard testnet or pubnet config
# coreConfig:
## Only used when global.network is something other than "testnet" or "pubnet"
coreConfig: {}

## For production use cases we recommend at least 2 replicas
replicaCount: 1

## Uncomment to use custom service account
# serviceAccountName: default
serviceAccountName: default

## Additional annotations or labels to add the Deployment template
# annotations:
# prometheus.io/scrape: "true"
# prometheus.io/port: "6000"
# labels:
# environment: "dev"
# mylabel1: "myvalue1"
annotations: {}
# prometheus.io/scrape: "true"
# prometheus.io/port: "6000"
labels: {}
# environment: "dev"
# mylabel1: "myvalue1"

persistence:
enabled: false
storageClass: default
size: 100G

## Uncomment to set resource limits
#resources:
resources: {}
# limits:
# cpu: 2
# memory: 4Gi
Expand All @@ -115,11 +112,11 @@ ingest:
enabled: false
host: horizon-ingest.example.com
## Extra annotations to add to the Ingress object
#annotations:
annotations: {}
# kubernetes.io/ingress.class: "public"
# cert-manager.io/cluster-issuer: "default"
## Extra labels to add to the Ingress object
#labels:
labels: {}
# mylabel: myvalue

coreExporter:
Expand All @@ -133,8 +130,7 @@ ingest:

## See global.image.coreExporter for image settings

## Uncomment to set resource limits
#resources:
resources: {}
# limits:
# cpu: 250m
# memory: 512Mi
Expand All @@ -150,7 +146,7 @@ web:
enabled: false

## List of CLI arguments to provide to the stellar-horizon binary
# cliArgs: []
cliArgs: []

## Horizon config
horizonConfig:
Expand All @@ -172,19 +168,17 @@ web:
## For production use cases we recommend at least 2 replicas
replicaCount: 1

## Uncomment to use custom service account
# serviceAccountName: default
serviceAccountName: default

## Additional annotations or labels to add the Deployment template
# annotations:
annotations: {}
# prometheus.io/scrape: "true"
# prometheus.io/port: "6000"
# labels:
labels: {}
# environment: "dev"
# mylabel1: "myvalue1"

## Uncomment to set resource limits
#resources:
resources: {}
# limits:
# cpu: 2
# memory: 4Gi
Expand All @@ -197,9 +191,9 @@ web:
enabled: false
host: horizon-web.example.com
## Extra annotations to add to the Ingress object
#annotations:
annotations: {}
# kubernetes.io/ingress.class: "public"
# cert-manager.io/cluster-issuer: "default"
## Extra labels to add to the Ingress object
#labels:
labels: {}
# mylabel: myvalue
Loading