Skip to content

Commit

Permalink
fix: add value enabled to toggle chart rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
logicflakes committed Apr 30, 2024
1 parent 2c8fc13 commit eb05319
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 8 deletions.
4 changes: 3 additions & 1 deletion helm/rebom/templates/backend-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.enabled}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -65,4 +66,5 @@ spec:
name: migrations-sql
volumes:
- name: migrations-sql
emptyDir: {}
emptyDir: {}
{{- end}}
4 changes: 3 additions & 1 deletion helm/rebom/templates/backend-service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.enabled}}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -12,4 +13,5 @@ spec:
ports:
- protocol: TCP
port: 4000
targetPort: 4000
targetPort: 4000
{{- end}}
4 changes: 3 additions & 1 deletion helm/rebom/templates/frontend-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.enabled}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -34,4 +35,5 @@ spec:
- name: BACKEND_PORT
value: "4000"
ports:
- containerPort: 80
- containerPort: 80
{{- end}}
4 changes: 3 additions & 1 deletion helm/rebom/templates/frontend-service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.enabled}}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -12,4 +13,5 @@ spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
targetPort: 80
{{- end}}
2 changes: 2 additions & 0 deletions helm/rebom/templates/ingress-resource-traefik.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.enabled}}
{{- if .Values.ingress.traefikEnabled}}
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
Expand Down Expand Up @@ -41,4 +42,5 @@ metadata:
spec:
redirectScheme:
scheme: https
{{- end}}
{{- end}}
4 changes: 3 additions & 1 deletion helm/rebom/templates/minimal-ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.enabled}}
{{- if .Values.ingress.minimalIngressEnabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
Expand All @@ -17,4 +18,5 @@ spec:
name: {{ .Release.Name }}-rebom-frontend-service
port:
number: 80
{{- end }}
{{- end }}
{{- end}}
4 changes: 3 additions & 1 deletion helm/rebom/templates/postgres_secret.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.enabled}}
{{- if .Values.postgresql.defaultSecret }}
apiVersion: v1
kind: Secret
Expand All @@ -9,4 +10,5 @@ metadata:
type: Opaque
data:
password: cGFzc3dvcmQ=
{{- end }}
{{- end }}
{{- end}}
4 changes: 3 additions & 1 deletion helm/rebom/templates/postgres_service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.enabled}}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -13,4 +14,5 @@ spec:
ports:
- protocol: TCP
port: 5432
targetPort: 5432
targetPort: 5432
{{- end}}
4 changes: 3 additions & 1 deletion helm/rebom/templates/postgres_stateful_set.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.enabled}}
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand Down Expand Up @@ -42,4 +43,5 @@ spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: {{ .Values.postgresql.storage }}
storage: {{ .Values.postgresql.storage }}
{{- end}}
1 change: 1 addition & 0 deletions helm/rebom/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
enabled: true
backend:
image: registry.relizahub.com/library/rebom-backend
replicaCount: 1
Expand Down

0 comments on commit eb05319

Please sign in to comment.