Commit 32670fa0 authored by George Papathanail's avatar George Papathanail
Browse files

chore(oeg): remove MongoDB from the OEG subchart

parent 0a6667c9
Loading
Loading
Loading
Loading
+0 −9
Changes for environments/kind/values.yaml: 0 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -38,15 +38,6 @@ srm:
      pullPolicy: IfNotPresent

oeg:
  mongodb:
    persistence:
      storageClass: manual
      hostPath:
        enabled: true
        path: /mnt/data/mongodb_oeg
      createPV: true
    image:
      pullPolicy: IfNotPresent
  oegcontroller:
    service:
      type: NodePort
+1 −2
Changes for oop-platform-chart/charts/oeg/Chart.yaml: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
apiVersion: v2
name: oeg
description: A Helm chart for OEG Controller with MongoDB
description: A Helm chart for the OEG Controller
type: application
version: 1.0.0
appVersion: "1.0.1"
keywords:
  - oeg
  - mongodb
  - controller
maintainers:
  - name: DevOps Team
 No newline at end of file
+0 −10
Changes for oop-platform-chart/charts/oeg/templates/NOTES.txt: 0 added lines, 10 removed lines.
Original line number Diff line number Diff line
@@ -33,14 +33,4 @@ OEG Controller has been deployed successfully!

{{- end }}

{{- if .Values.mongodb.enabled }}

3. MongoDB is running at:
  Service: {{ .Values.mongodb.name }}.{{ include "oeg.namespace" . }}.svc.cluster.local:{{ .Values.mongodb.service.port }}
  
  To connect to MongoDB from within the cluster:
  kubectl run -it --rm --image=mongo:latest --restart=Never mongo-client -- mongo {{ .Values.mongodb.name }}.{{ include "oeg.namespace" . }}.svc.cluster.local:{{ .Values.mongodb.service.port }}

{{- end }}

For more information, visit the documentation or check the project repository.
+0 −18
Changes for oop-platform-chart/charts/oeg/templates/_helpers.tpl: 0 added lines, 18 removed lines.
Original line number Diff line number Diff line
@@ -51,24 +51,6 @@ app.kubernetes.io/name: {{ include "oeg.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
MongoDB labels
*/}}
{{- define "oeg.mongodb.labels" -}}
helm.sh/chart: {{ include "oeg.chart" . }}
{{ include "oeg.mongodb.selectorLabels" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
MongoDB selector labels
*/}}
{{- define "oeg.mongodb.selectorLabels" -}}
app.kubernetes.io/name: {{ .Values.mongodb.name }}
app.kubernetes.io/instance: {{ .Release.Name }}
io.kompose.service: {{ .Values.mongodb.name }}
{{- end }}

{{/*
OEG Controller labels
*/}}
+0 −53
Changes for oop-platform-chart/charts/oeg/templates/mongodb-deployment.yaml: 0 added lines, 53 removed lines.
Original line number Diff line number Diff line
{{- if .Values.mongodb.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ .Values.mongodb.name }}
  namespace: {{ include "oeg.namespace" . }}
  labels:
    {{- include "oeg.mongodb.labels" . | nindent 4 }}
  {{- with .Values.commonAnnotations }}
  annotations:
    {{- toYaml . | nindent 4 }}
  {{- end }}
spec:
  replicas: 1
  selector:
    matchLabels:
      {{- include "oeg.mongodb.selectorLabels" . | nindent 6 }}
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        {{- include "oeg.mongodb.selectorLabels" . | nindent 8 }}
      {{- with .Values.commonAnnotations }}
      annotations:
        {{- toYaml . | nindent 8 }}
      {{- end }}
    spec:
      containers:
        - name: {{ .Values.mongodb.name }}
          image: "{{ .Values.mongodb.image.repository }}:{{ .Values.mongodb.image.tag }}"
          imagePullPolicy: {{ .Values.mongodb.image.pullPolicy }}
          ports:
            - name: mongodb
              containerPort: {{ .Values.mongodb.service.port }}
              protocol: TCP
          {{- with .Values.mongodb.resources }}
          resources:
            {{- toYaml . | nindent 12 }}
          {{- end }}
          {{- if .Values.mongodb.persistence.enabled }}
          volumeMounts:
            - name: mongo-db
              mountPath: /data/db
          {{- end }}
      restartPolicy: Always
      {{- if .Values.mongodb.persistence.enabled }}
      volumes:
        - name: mongo-db
          persistentVolumeClaim:
            claimName: {{ .Values.mongodb.name }}
      {{- end }}
{{- end }}
Loading