minio-importer: helm chart
diff --git a/apps/minio/importer/chart/Chart.yaml b/apps/minio/importer/chart/Chart.yaml
new file mode 100644
index 0000000..a298497
--- /dev/null
+++ b/apps/minio/importer/chart/Chart.yaml
@@ -0,0 +1,11 @@
+apiVersion: v2
+name: minio-importer
+version: 1.0.0
+description: Imports objects from Minio storage into knowledge graph
+type: application
+sources:
+ - https://github.com/giolekva/pcloud/tree/master/apps/minio/importer
+mainteners:
+ - name: Giorgi Lekveishvili
+ url: https://github.com/giolekva
+appVersion: 1.0.0
diff --git a/apps/minio/importer/chart/README.md b/apps/minio/importer/chart/README.md
new file mode 100644
index 0000000..cb8a266
--- /dev/null
+++ b/apps/minio/importer/chart/README.md
@@ -0,0 +1,3 @@
+# Minio object to knowledge graph importer
+
+Listens to Minio bucket notifications and imports new objects into knowledge graph.
\ No newline at end of file
diff --git a/apps/minio/importer/chart/Schema.yaml b/apps/minio/importer/chart/Schema.yaml
new file mode 100644
index 0000000..5bf0a23
--- /dev/null
+++ b/apps/minio/importer/chart/Schema.yaml
@@ -0,0 +1,5 @@
+schema: |
+ type Image {
+ id: ID!
+ objectPath: String! @search(by: [exact])
+ }
diff --git a/apps/minio/importer/chart/templates/deployment.yaml b/apps/minio/importer/chart/templates/deployment.yaml
new file mode 100644
index 0000000..2f1784c
--- /dev/null
+++ b/apps/minio/importer/chart/templates/deployment.yaml
@@ -0,0 +1,23 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ .Chart.Name }}
+ namespace: {{ .Release.Namespace }}
+spec:
+ selector:
+ matchLabels:
+ app: {{ .Chart.Name }}
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ app: {{ .Chart.Name }}
+ spec:
+ containers:
+ - name: {{ .Chart.Name }}
+ image: {{ .Values.image.name }}:{{ .Values.image.tag }}
+ imagePullPolicy: {{ .Values.image.pullPolicy }}
+ ports:
+ - containerPort: {{ .Values.containerPort }}
+ command: ["minio-importer"]
+ args: ["--logtostderr", "--port={{ .Values.containerPort }}", "--api_addr={{ .Values.pcloudApiAddress }}"]
diff --git a/apps/minio/importer/chart/templates/service.yaml b/apps/minio/importer/chart/templates/service.yaml
new file mode 100644
index 0000000..c5aadb3
--- /dev/null
+++ b/apps/minio/importer/chart/templates/service.yaml
@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ .Chart.Name }}
+ namespace: {{ .Release.Namespace }}
+spec:
+ type: ClusterIP
+ selector:
+ app: {{ .Chart.Name }}
+ ports:
+ - nodePort:
+ port: {{ .Values.servicePort }}
+ targetPort: {{ .Values.containerPort }}
diff --git a/apps/minio/importer/chart/values.yaml b/apps/minio/importer/chart/values.yaml
new file mode 100644
index 0000000..987d303
--- /dev/null
+++ b/apps/minio/importer/chart/values.yaml
@@ -0,0 +1,8 @@
+replicas: 1
+image:
+ name: giolekva/minio-importer
+ tag: latest
+ pullPolicy: Always
+servicePort: 80
+containerPort: 1234
+pcloudApiAddress: http://api.pcloud.svc:1111/graphql
\ No newline at end of file