diff --git a/charts/chatwoot/templates/ingress.yaml b/charts/chatwoot/templates/ingress.yaml deleted file mode 100644 index a2b5ce6..0000000 --- a/charts/chatwoot/templates/ingress.yaml +++ /dev/null @@ -1,47 +0,0 @@ -{{- if .Values.ingress.enabled -}} -{{- $fullName := include "chatwoot.fullname" . -}} -{{- $svcPort := .Values.service.port -}} -{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} -apiVersion: networking.k8s.io/v1 -{{- else -}} -apiVersion: extensions/v1beta1 -{{- end }} -kind: Ingress -metadata: - name: {{ $fullName }} - labels: - app: {{ template "chatwoot.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" - {{- with .Values.ingress.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - {{- if .Values.ingress.tls }} - tls: - {{- range .Values.ingress.tls }} - - hosts: - {{- range .hosts }} - - {{ . | quote }} - {{- end }} - secretName: {{ .secretName }} - {{- end }} - {{- end }} - rules: - {{- range .Values.ingress.hosts }} - - host: {{ .host | quote }} - http: - paths: - {{- range .paths }} - - path: {{ .path }} - pathType: {{ .pathType }} - backend: - service: - name: {{ .backend.service.name }} - port: - number: {{ int .backend.service.port.number }} - {{- end }} - {{- end }} - {{- end }} diff --git a/charts/chatwoot/templates/serviceaccount.yaml b/charts/chatwoot/templates/serviceaccount.yaml deleted file mode 100644 index 75ed872..0000000 --- a/charts/chatwoot/templates/serviceaccount.yaml +++ /dev/null @@ -1,15 +0,0 @@ -{{- if .Values.serviceAccount.create -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ include "chatwoot.serviceAccountName" . }} - labels: - app: {{ template "chatwoot.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" - {{- with .Values.serviceAccount.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -{{- end }} diff --git a/charts/chatwoot/templates/web-deployment.yaml b/charts/chatwoot/templates/web-deployment.yaml deleted file mode 100644 index e3c9bb8..0000000 --- a/charts/chatwoot/templates/web-deployment.yaml +++ /dev/null @@ -1,51 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ template "chatwoot.fullname" . }}-web - creationTimestamp: null - labels: - app: {{ template "chatwoot.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" -spec: - replicas: {{ int .Values.web.replica }} - selector: - matchLabels: - app: {{ template "chatwoot.fullname" . }} - release: "{{ .Release.Name }}" - role: web - strategy: {} - template: - metadata: - creationTimestamp: null - labels: - app: {{ template "chatwoot.fullname" . }} - release: "{{ .Release.Name }}" - role: web - spec: - containers: - - args: - - bundle - - exec - - rails - - s - - -p - - {{ .Values.services.internlPort | quote}} - - -b - - 0.0.0.0 - command: - - docker/entrypoints/rails.sh - envFrom: - - configMapRef: - name: {{ template "chatwoot.fullname" . }}-env - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" - name: {{ .Chart.Name }}-web - ports: - - containerPort: {{ int .Values.services.internlPort }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- with .Values.resources }} - resources: - {{- toYaml . | nindent 12 }} - {{- end }} -status: {} diff --git a/charts/chatwoot/templates/web-service.yaml b/charts/chatwoot/templates/web-service.yaml deleted file mode 100644 index a488451..0000000 --- a/charts/chatwoot/templates/web-service.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ template "chatwoot.fullname" . }} - creationTimestamp: null - labels: - app: {{ template "chatwoot.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" - {{- with .Values.services.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - ports: - - name: {{ .Values.services.name | quote}} - port: {{ int .Values.services.internlPort }} - targetPort: {{ int .Values.services.targetPort }} - type: {{ .Values.services.type }} - selector: - app: {{ template "chatwoot.fullname" . }} - role: web -status: - loadBalancer: {} diff --git a/charts/chatwoot/templates/worker-deployment.yaml b/charts/chatwoot/templates/worker-deployment.yaml deleted file mode 100644 index 109427b..0000000 --- a/charts/chatwoot/templates/worker-deployment.yaml +++ /dev/null @@ -1,45 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ template "chatwoot.fullname" . }}-worker - creationTimestamp: null - labels: - app: {{ template "chatwoot.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" -spec: - replicas: {{ int .Values.worker.replica }} - selector: - matchLabels: - app: {{ template "chatwoot.fullname" . }} - release: "{{ .Release.Name }}" - role: worker - strategy: {} - template: - metadata: - creationTimestamp: null - labels: - app: {{ template "chatwoot.fullname" . }} - release: "{{ .Release.Name }}" - role: worker - spec: - containers: - - args: - - bundle - - exec - - sidekiq - - -C - - config/sidekiq.yml - envFrom: - - configMapRef: - name: {{ template "chatwoot.fullname" . }}-env - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" - name: {{ .Chart.Name }}-workers - {{- with .Values.resources }} - resources: - {{- toYaml . | nindent 12 }} - {{- end }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - -status: {}