-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Disable chaos duck Signed-off-by: Pierangelo Di Pilato <[email protected]> * Use deployment for kafka-broker-receiver Signed-off-by: Pierangelo Di Pilato <[email protected]> * Remove mappings only after closing the Producer Signed-off-by: Pierangelo Di Pilato <[email protected]> * Improve LoomKafkaProducer (logging, resource usage) Signed-off-by: Pierangelo Di Pilato <[email protected]> * Format java Signed-off-by: Pierangelo Di Pilato <[email protected]> * Use onSuccess Signed-off-by: Pierangelo Di Pilato <[email protected]> * Use atomics for ReferenceCounting Signed-off-by: Pierangelo Di Pilato <[email protected]> * Log consumer context when sending events Signed-off-by: Pierangelo Di Pilato <[email protected]> * Async appender Signed-off-by: Pierangelo Di Pilato <[email protected]> * Fix namespaced broker unit tests Signed-off-by: Pierangelo Di Pilato <[email protected]> * Use STS for broker receiver Signed-off-by: Pierangelo Di Pilato <[email protected]> * Refactor getting features config in triggerv2 using ctx Signed-off-by: Pierangelo Di Pilato <[email protected]> * Detect audience and identity SA changes and refactor sender and token provider Signed-off-by: Pierangelo Di Pilato <[email protected]> * Return early if Producer.send returns an exception Signed-off-by: Pierangelo Di Pilato <[email protected]> * format Go code Signed-off-by: Pierangelo Di Pilato <[email protected]> * Increase timeout Signed-off-by: Pierangelo Di Pilato <[email protected]> * Migrate to async appender even in official configuration Signed-off-by: Pierangelo Di Pilato <[email protected]> --------- Signed-off-by: Pierangelo Di Pilato <[email protected]>
- Loading branch information
Showing
27 changed files
with
327 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* Copyright 2024 The Knative Authors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package testing | ||
|
||
import ( | ||
appsv1 "k8s.io/api/apps/v1" | ||
corev1 "k8s.io/api/core/v1" | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
reconcilertesting "knative.dev/eventing/pkg/reconciler/testing/v1" | ||
) | ||
|
||
func NewDeployment(name, namespace string, sso ...reconcilertesting.DeploymentOption) *appsv1.Deployment { | ||
ss := &appsv1.Deployment{ | ||
ObjectMeta: metav1.ObjectMeta{ | ||
Namespace: namespace, | ||
Name: name, | ||
}, | ||
Spec: appsv1.DeploymentSpec{ | ||
Template: corev1.PodTemplateSpec{ | ||
Spec: corev1.PodSpec{ | ||
Containers: []corev1.Container{{}}, | ||
Volumes: []corev1.Volume{{ | ||
Name: "contract-resources", | ||
VolumeSource: corev1.VolumeSource{ | ||
ConfigMap: &corev1.ConfigMapVolumeSource{ | ||
LocalObjectReference: corev1.LocalObjectReference{ | ||
Name: "kafka-broker-brokers-triggers", | ||
}, | ||
}, | ||
}, | ||
}}, | ||
}, | ||
}, | ||
}, | ||
} | ||
for _, opt := range sso { | ||
opt(ss) | ||
} | ||
return ss | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.