Skip to content

Commit

Permalink
Add kafka connector version (#1474)
Browse files Browse the repository at this point in the history
Signed-off-by: obaydullahmhs <[email protected]>
  • Loading branch information
obaydullahmhs authored Dec 19, 2024
1 parent a6a9317 commit 4c8df0a
Show file tree
Hide file tree
Showing 23 changed files with 282 additions and 12 deletions.
11 changes: 8 additions & 3 deletions catalog/kubedb/active_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,16 @@
"3.5.2"
],
"KafkaConnector": [
"postgres-3.0.5.final",
"mysql-3.0.5.final",
"jdbc-3.0.5.final",
"s3-2.15.0",
"postgres-2.7.4.final",
"mysql-2.7.4.final",
"jdbc-2.7.4.final",
"jdbc-2.6.1.final",
"postgres-2.4.2.final",
"mysql-2.4.2.final",
"mongodb-1.11.0",
"mongodb-1.14.1",
"mongodb-1.13.1",
"gcs-0.13.0"
],
"MSSQLServer": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
spec:
connectorPlugin:
image: ghcr.io/appscode-images/kafka-connector-mongodb:1.11.0
deprecated: true
securityContext:
runAsUser: 1001
type: MongoDB
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
spec:
connectorPlugin:
image: ghcr.io/appscode-images/kafka-connector-mysql:2.4.2.final
deprecated: true
securityContext:
runAsUser: 1001
type: MySQL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
spec:
connectorPlugin:
image: ghcr.io/appscode-images/kafka-connector-postgres:2.4.2.final
deprecated: true
securityContext:
runAsUser: 1001
type: Postgres
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: mongodb-1.13.1
spec:
connectorPlugin:
image: ghcr.io/appscode-images/kafka-connector-mongodb:1.13.1
securityContext:
runAsUser: 1001
type: MongoDB
version: 1.13.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: mongodb-1.14.1
spec:
connectorPlugin:
image: ghcr.io/appscode-images/kafka-connector-mongodb:1.14.1
securityContext:
runAsUser: 1001
type: MongoDB
version: 1.14.1
11 changes: 11 additions & 0 deletions catalog/kubedb/raw/kafkaconnector/kafkaconnector-2.7.4-jdbc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: jdbc-2.7.4.final
spec:
connectorPlugin:
image: ghcr.io/appscode-images/kafka-connector-jdbc:2.7.4.final
securityContext:
runAsUser: 1001
type: JDBC
version: 2.7.4
11 changes: 11 additions & 0 deletions catalog/kubedb/raw/kafkaconnector/kafkaconnector-2.7.4-mysql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: mysql-2.7.4.final
spec:
connectorPlugin:
image: ghcr.io/appscode-images/kafka-connector-mysql:2.7.4.final
securityContext:
runAsUser: 1001
type: MySQL
version: 2.7.4
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: postgres-2.7.4.final
spec:
connectorPlugin:
image: ghcr.io/appscode-images/kafka-connector-postgres:2.7.4.final
securityContext:
runAsUser: 1001
type: Postgres
version: 2.7.4
11 changes: 11 additions & 0 deletions catalog/kubedb/raw/kafkaconnector/kafkaconnector-3.0.5-jdbc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: jdbc-3.0.5.final
spec:
connectorPlugin:
image: ghcr.io/appscode-images/kafka-connector-jdbc:3.0.5.final
securityContext:
runAsUser: 1001
type: JDBC
version: 3.0.5
11 changes: 11 additions & 0 deletions catalog/kubedb/raw/kafkaconnector/kafkaconnector-3.0.5-mysql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: mysql-3.0.5.final
spec:
connectorPlugin:
image: ghcr.io/appscode-images/kafka-connector-mysql:3.0.5.final
securityContext:
runAsUser: 1001
type: MySQL
version: 3.0.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: postgres-3.0.5.final
spec:
connectorPlugin:
image: ghcr.io/appscode-images/kafka-connector-postgres:3.0.5.final
securityContext:
runAsUser: 1001
type: Postgres
version: 3.0.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{ $featureGates := .Values.featureGates }}
{{- if .Values.global }}
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }}
{{- end }}

{{ if $featureGates.Kafka }}
{{ if or (not .Values.skipDeprecated) (has "mongodb-1.11.0" .Values.enableVersions.Kafka) }}
apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: 'mongodb-1.11.0'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
connectorPlugin:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/kafka-connector-mongodb") $) }}:1.11.0'
securityContext:
runAsUser: 1001
type: MongoDB
version: 1.11.0
deprecated: {{ not (has "mongodb-1.11.0" .Values.enableVersions.Kafka) }}
{{ end }}
{{ end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{ $featureGates := .Values.featureGates }}
{{- if .Values.global }}
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }}
{{- end }}

{{ if $featureGates.Kafka }}
{{ if or (not .Values.skipDeprecated) (has "mysql-2.4.2.final" .Values.enableVersions.Kafka) }}
apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: 'mysql-2.4.2.final'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
connectorPlugin:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/kafka-connector-mysql") $) }}:2.4.2.final'
securityContext:
runAsUser: 1001
type: MySQL
version: 2.4.2
deprecated: {{ not (has "mysql-2.4.2.final" .Values.enableVersions.Kafka) }}
{{ end }}
{{ end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{ $featureGates := .Values.featureGates }}
{{- if .Values.global }}
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }}
{{- end }}

{{ if $featureGates.Kafka }}
{{ if or (not .Values.skipDeprecated) (has "postgres-2.4.2.final" .Values.enableVersions.Kafka) }}
apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: 'postgres-2.4.2.final'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
connectorPlugin:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/kafka-connector-postgres") $) }}:2.4.2.final'
securityContext:
runAsUser: 1001
type: Postgres
version: 2.4.2
deprecated: {{ not (has "postgres-2.4.2.final" .Values.enableVersions.Kafka) }}
{{ end }}
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: 'mongodb-1.11.0'
name: 'mongodb-1.13.1'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
connectorPlugin:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/kafka-connector-mongodb") $) }}:1.11.0'
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/kafka-connector-mongodb") $) }}:1.13.1'
securityContext:
runAsUser: 1001
type: MongoDB
version: 1.11.0
version: 1.13.1
{{ end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{ $featureGates := .Values.featureGates }}
{{- if .Values.global }}
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }}
{{- end }}

{{ if $featureGates.Kafka }}

apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: 'mongodb-1.14.1'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
connectorPlugin:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/kafka-connector-mongodb") $) }}:1.14.1'
securityContext:
runAsUser: 1001
type: MongoDB
version: 1.14.1
{{ end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{ $featureGates := .Values.featureGates }}
{{- if .Values.global }}
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }}
{{- end }}

{{ if $featureGates.Kafka }}

apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: 'jdbc-2.7.4.final'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
connectorPlugin:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/kafka-connector-jdbc") $) }}:2.7.4.final'
securityContext:
runAsUser: 1001
type: JDBC
version: 2.7.4
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: 'mysql-2.4.2.final'
name: 'mysql-2.7.4.final'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
connectorPlugin:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/kafka-connector-mysql") $) }}:2.4.2.final'
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/kafka-connector-mysql") $) }}:2.7.4.final'
securityContext:
runAsUser: 1001
type: MySQL
version: 2.4.2
version: 2.7.4
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: 'postgres-2.4.2.final'
name: 'postgres-2.7.4.final'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
connectorPlugin:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/kafka-connector-postgres") $) }}:2.4.2.final'
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/kafka-connector-postgres") $) }}:2.7.4.final'
securityContext:
runAsUser: 1001
type: Postgres
version: 2.4.2
version: 2.7.4
{{ end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{ $featureGates := .Values.featureGates }}
{{- if .Values.global }}
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }}
{{- end }}

{{ if $featureGates.Kafka }}

apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: 'jdbc-3.0.5.final'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
connectorPlugin:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/kafka-connector-jdbc") $) }}:3.0.5.final'
securityContext:
runAsUser: 1001
type: JDBC
version: 3.0.5
{{ end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{ $featureGates := .Values.featureGates }}
{{- if .Values.global }}
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }}
{{- end }}

{{ if $featureGates.Kafka }}

apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: 'mysql-3.0.5.final'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
connectorPlugin:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/kafka-connector-mysql") $) }}:3.0.5.final'
securityContext:
runAsUser: 1001
type: MySQL
version: 3.0.5
{{ end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{ $featureGates := .Values.featureGates }}
{{- if .Values.global }}
{{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }}
{{- end }}

{{ if $featureGates.Kafka }}

apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaConnectorVersion
metadata:
name: 'postgres-3.0.5.final'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
connectorPlugin:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/kafka-connector-postgres") $) }}:3.0.5.final'
securityContext:
runAsUser: 1001
type: Postgres
version: 3.0.5
{{ end }}

0 comments on commit 4c8df0a

Please sign in to comment.