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 namespace templating in horizon chart #97

Merged
merged 2 commits into from
Oct 22, 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: 0 additions & 2 deletions charts/horizon/templates/core-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "common.fullname" . }}-core
{{- if .Release.Namespace }}
namespace: {{ .Release.Namespace }}
{{- end }}
labels:
app: {{ template "common.fullname" . }}-core
chart: {{ template "common.chart" . }}
Expand Down
2 changes: 0 additions & 2 deletions charts/horizon/templates/ingest-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "common.fullname" . }}-ingest-env
{{- if .Release.Namespace }}
namespace: {{ .Release.Namespace }}
{{- end }}
labels:
app: {{ template "common.fullname" . }}-ingest
chart: {{ template "common.chart" . }}
Expand Down
6 changes: 0 additions & 6 deletions charts/horizon/templates/ingest-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ template "common.fullname" . }}-ingest
{{- if .Release.Namespace }}
namespace: {{ .Release.Namespace }}
{{- end }}
labels:
app: {{ template "common.fullname" . }}-ingest
chart: {{ template "common.chart" . }}
Expand Down Expand Up @@ -114,9 +112,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ template "common.fullname" . }}-ingest-core
{{- if .Release.Namespace }}
namespace: {{ .Release.Namespace }}
{{- end }}
labels:
app: {{ template "common.fullname" . }}-ingest-core
chart: {{ template "common.chart" . }}
Expand All @@ -135,9 +131,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ template "common.fullname" . }}-ingest
{{- if .Release.Namespace }}
namespace: {{ .Release.Namespace }}
{{- end }}
labels:
app: {{ template "common.fullname" . }}-ingest
chart: {{ template "common.chart" . }}
Expand Down
4 changes: 0 additions & 4 deletions charts/horizon/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ template "common.fullname" . }}-ingest
{{- if .Release.Namespace }}
namespace: {{ .Release.Namespace }}
{{- end }}
{{- if (.Values.ingest.ingress).annotations }}
annotations:
{{- range $key, $value := .Values.ingest.ingress.annotations }}
Expand Down Expand Up @@ -36,9 +34,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ template "common.fullname" . }}-web
{{- if .Release.Namespace }}
namespace: {{ .Release.Namespace }}
{{- end }}
{{- if (.Values.web.ingress).annotations }}
annotations:
{{- range $key, $value := .Values.web.ingress.annotations }}
Expand Down
2 changes: 0 additions & 2 deletions charts/horizon/templates/web-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "common.fullname" . }}-web-env
{{- if .Release.Namespace }}
namespace: {{ .Release.Namespace }}
{{- end }}
labels:
app: {{ template "common.fullname" . }}-web
chart: {{ template "common.chart" . }}
Expand Down
4 changes: 0 additions & 4 deletions charts/horizon/templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "common.fullname" . }}-web
{{- if .Release.Namespace }}
namespace: {{ .Release.Namespace }}
{{- end }}
labels:
app: {{ template "common.fullname" . }}-web
chart: {{ template "common.chart" . }}
Expand Down Expand Up @@ -77,9 +75,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ template "common.fullname" . }}-web
{{- if .Release.Namespace }}
namespace: {{ .Release.Namespace }}
{{- end }}
labels:
app: {{ template "common.fullname" . }}-web
chart: {{ template "common.chart" . }}
Expand Down
4 changes: 0 additions & 4 deletions charts/horizon/values.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
global:
## String to use to explicitly set namespace name in manifests.
## Useful for those using "helm template" to render templates
# namespace: mynamespace

## Stellar network to use. When set to "testnet" or "pubnet" default
## recommended config will be used.
## When set to any other value you have to provide extra settings:
Expand Down
Loading