Commit 97c24148 authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

Add enabled to mongo db deployments

parent 20930934
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
{{- if .Values.enabled | default false }}
apiVersion: apps/v1
apiVersion: apps/v1
kind: Deployment
kind: Deployment
metadata:
metadata:
@@ -71,3 +72,4 @@ spec:
      tolerations:
      tolerations:
        {{- toYaml . | nindent 8 }}
        {{- toYaml . | nindent 8 }}
      {{- end }}
      {{- end }}
{{- end }}
+2 −0
Original line number Original line Diff line number Diff line
{{- if .Values.enabled | default false }}
{{- if .Values.autoscaling.enabled }}
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
kind: HorizontalPodAutoscaler
@@ -30,3 +31,4 @@ spec:
          averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
          averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
    {{- end }}
    {{- end }}
{{- end }}
{{- end }}
{{- end }}
 No newline at end of file
+2 −0
Original line number Original line Diff line number Diff line
{{- if .Values.enabled | default false }}
{{- if .Values.ingress.enabled -}}
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "mongo-register.fullname" . -}}
{{- $fullName := include "mongo-register.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- $svcPort := .Values.service.port -}}
@@ -59,3 +60,4 @@ spec:
          {{- end }}
          {{- end }}
    {{- end }}
    {{- end }}
{{- end }}
{{- end }}
{{- end }}
 No newline at end of file
+3 −1
Original line number Original line Diff line number Diff line
{{- if .Values.enabled | default false }}
apiVersion: v1
apiVersion: v1
kind: PersistentVolumeClaim
kind: PersistentVolumeClaim
metadata:
metadata:
@@ -10,3 +11,4 @@ spec:
  resources:
  resources:
    requests:
    requests:
      storage: {{ .Values.persistence.storage }}
      storage: {{ .Values.persistence.storage }}
{{- end }}
 No newline at end of file
+2 −0
Original line number Original line Diff line number Diff line
{{- if .Values.enabled | default false }}
apiVersion: v1
apiVersion: v1
kind: Service
kind: Service
metadata:
metadata:
@@ -13,3 +14,4 @@ spec:
      name: http
      name: http
  selector:
  selector:
    {{- include "mongo-register.selectorLabels" . | nindent 4 }}
    {{- include "mongo-register.selectorLabels" . | nindent 4 }}
{{- end }}
Loading