Changeset 10:451532d0a40d

Updated kustomize handling
author unexist
date Tue, 31 Aug 2021 16:13:06 +0200
parents f87f195f785f
children 1acfc6119767
files deployment/kubernetes/kafka/knative-kafka-binding.yaml deployment/kubernetes/kafka/knative-kafka-broker.yaml deployment/kubernetes/kafka/knative-kafka-source.yaml deployment/kubernetes/kafka/knative-kafka-trigger.yaml deployment/kubernetes/kafka/kustomization.yaml deployment/kubernetes/knative/knative-broker.yaml deployment/kubernetes/knative/knative-kafka-binding.yaml deployment/kubernetes/knative/knative-kafka-source.yaml deployment/kubernetes/knative/knative-trigger.yaml deployment/kubernetes/knative/kustomization.yaml deployment/kubernetes/redpanda/kustomization.yaml
diffstat 11 files changed, 64 insertions(+), 59 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deployment/kubernetes/kafka/knative-kafka-binding.yaml	Tue Aug 31 16:13:06 2021 +0200
@@ -0,0 +1,11 @@
+apiVersion: bindings.knative.dev/v1beta1
+kind: KafkaBinding
+metadata:
+  name: kafka-binding-todo
+spec:
+  subject:
+    apiVersion: serving.knative.dev/v1
+    kind: Service
+    name: todo
+  bootstrapServers:
+    - redpanda:9092
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deployment/kubernetes/kafka/knative-kafka-broker.yaml	Tue Aug 31 16:13:06 2021 +0200
@@ -0,0 +1,13 @@
+apiVersion: eventing.knative.dev/v1
+kind: Broker
+metadata:
+  annotations:
+    eventing.knative.dev/broker.class: Kafka
+  name: default
+  namespace: default
+spec:
+  config:
+    apiVersion: v1
+    kind: ConfigMap
+    name: kafka-broker-config
+    namespace: knative-eventing
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deployment/kubernetes/kafka/knative-kafka-source.yaml	Tue Aug 31 16:13:06 2021 +0200
@@ -0,0 +1,14 @@
+apiVersion: sources.knative.dev/v1beta1
+kind: KafkaSource
+metadata:
+  name: kafka-source-todo
+spec:
+  bootstrapServers:
+    - redpanda:9092
+  topics:
+    - todo-created
+  sink:
+    ref:
+      apiVersion: eventing.knative.dev/v1
+      kind: Broker
+      name: default
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deployment/kubernetes/kafka/knative-kafka-trigger.yaml	Tue Aug 31 16:13:06 2021 +0200
@@ -0,0 +1,16 @@
+apiVersion: eventing.knative.dev/v1
+kind: Trigger
+metadata:
+  name: todo-trigger
+spec:
+  broker: default
+  filter:
+    attributes:
+      type: dev.knative.kafka.event
+      source: /apis/v1/namespaces/default/kafkasources/kafka-source-todo#todo-created
+  subscriber:
+    ref:
+      apiVersion: serving.knative.dev/v1
+      kind: Service
+      name: todo
+    uri: /todo/create
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deployment/kubernetes/kafka/kustomization.yaml	Tue Aug 31 16:13:06 2021 +0200
@@ -0,0 +1,7 @@
+namespace: default
+
+resources:
+  - knative-kafka-broker.yaml
+  - knative-kafka-binding.yaml
+  - knative-kafka-source.yaml
+  - knative-kafka-trigger.yaml
\ No newline at end of file
--- a/deployment/kubernetes/knative/knative-broker.yaml	Tue Aug 31 16:09:35 2021 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-apiVersion: eventing.knative.dev/v1
-kind: Broker
-metadata:
-  annotations:
-    eventing.knative.dev/broker.class: Kafka
-  name: default
-  namespace: default
-spec:
-  config:
-    apiVersion: v1
-    kind: ConfigMap
-    name: kafka-broker-config
-    namespace: knative-eventing
\ No newline at end of file
--- a/deployment/kubernetes/knative/knative-kafka-binding.yaml	Tue Aug 31 16:09:35 2021 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-apiVersion: bindings.knative.dev/v1beta1
-kind: KafkaBinding
-metadata:
-  name: kafka-binding-todo
-spec:
-  subject:
-    apiVersion: serving.knative.dev/v1
-    kind: Service
-    name: todo
-  bootstrapServers:
-    - redpanda:9092
\ No newline at end of file
--- a/deployment/kubernetes/knative/knative-kafka-source.yaml	Tue Aug 31 16:09:35 2021 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-apiVersion: sources.knative.dev/v1beta1
-kind: KafkaSource
-metadata:
-  name: kafka-source-todo
-spec:
-  bootstrapServers:
-    - redpanda:9092
-  topics:
-    - todo-created
-  sink:
-    ref:
-      apiVersion: eventing.knative.dev/v1
-      kind: Broker
-      name: default
\ No newline at end of file
--- a/deployment/kubernetes/knative/knative-trigger.yaml	Tue Aug 31 16:09:35 2021 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-apiVersion: eventing.knative.dev/v1
-kind: Trigger
-metadata:
-  name: todo-trigger
-spec:
-  broker: default
-  filter:
-    attributes:
-      type: dev.knative.kafka.event
-      source: /apis/v1/namespaces/default/kafkasources/kafka-source-todo#todo-created
-  subscriber:
-    ref:
-      apiVersion: serving.knative.dev/v1
-      kind: Service
-      name: todo
-    uri: /todo/create
\ No newline at end of file
--- a/deployment/kubernetes/knative/kustomization.yaml	Tue Aug 31 16:09:35 2021 +0200
+++ b/deployment/kubernetes/knative/kustomization.yaml	Tue Aug 31 16:13:06 2021 +0200
@@ -1,7 +1,3 @@
 resources:
   - knative-eventing.yaml
-  - knative-serving.yaml
-  - knative-broker.yaml
-  - knative-kafka-source.yaml
-  - knative-kafka-binding.yaml
-  - knative-trigger.yaml
\ No newline at end of file
+  - knative-serving.yaml
\ No newline at end of file
--- a/deployment/kubernetes/redpanda/kustomization.yaml	Tue Aug 31 16:09:35 2021 +0200
+++ b/deployment/kubernetes/redpanda/kustomization.yaml	Tue Aug 31 16:13:06 2021 +0200
@@ -1,3 +1,5 @@
+namespace: default
+
 resources:
   - redpanda-service.yaml
   - redpanda-deployment.yaml
\ No newline at end of file