Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions e2e/kafka/setup/kafka-ephemeral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ---------------------------------------------------------------------------
apiVersion: kafka.strimzi.io/v1beta2
apiVersion: kafka.strimzi.io/v1
kind: KafkaNodePool
metadata:
name: controller
Expand All @@ -32,8 +32,7 @@ spec:
type: ephemeral
kraftMetadata: shared
---

apiVersion: kafka.strimzi.io/v1beta2
apiVersion: kafka.strimzi.io/v1
kind: KafkaNodePool
metadata:
name: broker
Expand All @@ -51,8 +50,7 @@ spec:
type: ephemeral
kraftMetadata: shared
---

apiVersion: kafka.strimzi.io/v1beta2
apiVersion: kafka.strimzi.io/v1
kind: Kafka
metadata:
name: my-cluster
Expand Down
4 changes: 2 additions & 2 deletions e2e/kafka/setup/kafka-topic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ---------------------------------------------------------------------------
apiVersion: kafka.strimzi.io/v1beta2
apiVersion: kafka.strimzi.io/v1
kind: KafkaTopic
metadata:
name: my-topic
Expand All @@ -26,4 +26,4 @@ spec:
replicas: 1
config:
retention.ms: 7200000
segment.bytes: 1073741824
segment.bytes: 1073741824
11 changes: 8 additions & 3 deletions e2e/kafka/setup/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,18 @@
#
####

kubectl create namespace kafka
kubectl create -f 'https://strimzi.io/install/latest?namespace=kafka' -n kafka
kubectl create namespace kafka --dry-run=client -o yaml | kubectl apply -f -
kubectl apply --server-side -f 'https://strimzi.io/install/latest?namespace=kafka' -n kafka
kubectl rollout status deployment strimzi-cluster-operator -n kafka --timeout=180s

# Wait for CRDs to be established
kubectl wait --for=condition=established crd/kafkas.kafka.strimzi.io --timeout=60s
kubectl wait --for=condition=established crd/kafkanodepools.kafka.strimzi.io --timeout=60s
kubectl wait --for=condition=established crd/kafkatopics.kafka.strimzi.io --timeout=60s

#### Setup Keda operator
# it creates by default a keda namespace
kubectl apply -f https://github.com/kedacore/keda/releases/download/v2.17.2/keda-2.17.2.yaml
kubectl apply --server-side -f https://github.com/kedacore/keda/releases/download/v2.17.2/keda-2.17.2.yaml
kubectl rollout status deployment keda-operator -n keda --timeout=180s

#### Setup a Kafka cluster which we'll use for testing
Expand Down
Loading