Skip to content

Commit 7b73cb7

Browse files
committed
more
1 parent 4446052 commit 7b73cb7

File tree

8 files changed

+54
-4
lines changed

8 files changed

+54
-4
lines changed

config/samples/kraft/simplekafkacluster_kraft_with_envoy.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ spec:
4646
- "controller"
4747
rollingUpgradeConfig:
4848
failureThreshold: 1
49+
cruiseControlConfig:
50+
cruiseControlTaskSpec:
51+
RetryDurationMinutes: 5
52+
topicConfig:
53+
partitions: 12
54+
replicationFactor: 3
55+
config: |
56+
# Cruise Control configuration
4957
listenersConfig:
5058
internalListeners:
5159
- type: "plaintext"

config/samples/kraft/simplekafkacluster_kraft_with_envoygateway.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ spec:
7676
- "controller"
7777
rollingUpgradeConfig:
7878
failureThreshold: 1
79+
cruiseControlConfig:
80+
cruiseControlTaskSpec:
81+
RetryDurationMinutes: 5
82+
topicConfig:
83+
partitions: 12
84+
replicationFactor: 3
85+
config: |
86+
# Cruise Control configuration
7987
listenersConfig:
8088
internalListeners:
8189
- type: "plaintext"

config/samples/simplekafkacluster_with_envoy.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ spec:
4141
brokerConfigGroup: "default"
4242
rollingUpgradeConfig:
4343
failureThreshold: 1
44+
cruiseControlConfig:
45+
cruiseControlTaskSpec:
46+
RetryDurationMinutes: 5
47+
topicConfig:
48+
partitions: 12
49+
replicationFactor: 3
50+
config: |
51+
# Cruise Control configuration
4452
listenersConfig:
4553
internalListeners:
4654
- type: "plaintext"

config/samples/simplekafkacluster_with_envoygateway.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ spec:
7171
brokerConfigGroup: "default"
7272
rollingUpgradeConfig:
7373
failureThreshold: 1
74+
cruiseControlConfig:
75+
cruiseControlTaskSpec:
76+
RetryDurationMinutes: 5
77+
topicConfig:
78+
partitions: 12
79+
replicationFactor: 3
80+
config: |
81+
# Cruise Control configuration
7482
listenersConfig:
7583
internalListeners:
7684
- type: "plaintext"

pkg/resources/envoygateway/gateway.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (r *Reconciler) gateway(eListener v1beta1.ExternalListenerConfig,
8989

9090
anycastListener := gatewayv1.Listener{
9191
Name: anycastListenerName,
92-
Port: gatewayv1.PortNumber(anycastPort),
92+
Port: anycastPort,
9393
Protocol: gatewayv1.TCPProtocolType,
9494
}
9595

tests/e2e/global.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,16 @@ var (
5656
// envoyGatewayHelmDescriptor describes the Envoy Gateway Helm component
5757
// The Helm chart installs Gateway API CRDs and Envoy Gateway CRDs automatically
5858
envoyGatewayHelmDescriptor = helmDescriptor{
59-
Repository: "oci://docker.io/envoyproxy",
60-
ChartName: "gateway-helm",
59+
Repository: "",
60+
ChartName: "oci://docker.io/envoyproxy/gateway-helm",
6161
ChartVersion: EnvoyGatewayVersion,
6262
ReleaseName: "eg",
6363
Namespace: "envoy-gateway-system",
6464
SetValues: map[string]string{
65-
"createNamespace": "true",
65+
"deployment.envoyGateway.resources.limits.cpu": "500m",
66+
"deployment.envoyGateway.resources.limits.memory": "1024Mi",
67+
"deployment.envoyGateway.resources.requests.cpu": "100m",
68+
"deployment.envoyGateway.resources.requests.memory": "256Mi",
6669
},
6770
HelmExtraArguments: map[string][]string{
6871
"install": {"--timeout", "10m"},

tests/e2e/koperator_suite_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,22 @@ var _ = ginkgo.When("Testing e2e test altogether", ginkgo.Ordered, func() {
7474
testProduceConsumeInternal()
7575
testJmxExporter()
7676
testUninstallKafkaCluster()
77+
testInstallZookeeperCluster()
7778
testInstallEnvoyKafkaCluster("Installing Kafka cluster (Zookeeper-based, Envoy ingress)", "../../config/samples/simplekafkacluster_with_envoy.yaml")
7879
testProduceConsumeInternal()
7980
testJmxExporter()
8081
testUninstallKafkaCluster()
82+
testUninstallZookeeperCluster()
8183
testInstallEnvoyKafkaCluster("Installing Kafka cluster (KRaft mode, Envoy ingress)", "../../config/samples/kraft/simplekafkacluster_kraft_with_envoy.yaml")
8284
testProduceConsumeInternal()
8385
testJmxExporter()
8486
testUninstallKafkaCluster()
87+
testInstallZookeeperCluster()
8588
testInstallEnvoyGatewayKafkaCluster("Installing Kafka cluster (Zookeeper-based, Envoy Gateway ingress)", "../../config/samples/simplekafkacluster_with_envoygateway.yaml")
8689
testProduceConsumeInternal()
8790
testJmxExporter()
8891
testUninstallEnvoyGatewayKafkaCluster("../../config/samples/simplekafkacluster_with_envoygateway.yaml")
92+
testUninstallZookeeperCluster()
8993
testInstallEnvoyGatewayKafkaCluster("Installing Kafka cluster (KRaft mode, Envoy Gateway ingress)", "../../config/samples/kraft/simplekafkacluster_kraft_with_envoygateway.yaml")
9094
testProduceConsumeInternal()
9195
testJmxExporter()

tests/e2e/test_install.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@ func testInstall() bool {
5050
err = envoyGatewayHelmDescriptor.installHelmChart(kubectlOptions)
5151
gomega.Expect(err).NotTo(gomega.HaveOccurred())
5252
})
53+
54+
ginkgo.It("Creating Envoy Gateway GatewayClass", func() {
55+
gatewayClassManifest := `apiVersion: gateway.networking.k8s.io/v1
56+
kind: GatewayClass
57+
metadata:
58+
name: eg
59+
spec:
60+
controllerName: gateway.envoyproxy.io/gatewayclass-controller`
61+
err = applyK8sResourceManifestFromString(kubectlOptions, gatewayClassManifest)
62+
gomega.Expect(err).NotTo(gomega.HaveOccurred())
63+
})
5364
})
5465

5566
ginkgo.When("Installing zookeeper-operator", func() {

0 commit comments

Comments
 (0)