Skip to content

Commit

Permalink
add domain-mapping-test-certificate-uid-label.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
maschmid authored and openshift-cherrypick-robot committed Feb 20, 2024
1 parent d691859 commit ec605c2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/test/e2e/domainmapping/domain_mapping_test.go b/test/e2e/domainmapping/domain_mapping_test.go
index 4556b6f77..399c846ce 100644
--- a/test/e2e/domainmapping/domain_mapping_test.go
+++ b/test/e2e/domainmapping/domain_mapping_test.go
@@ -35,6 +35,8 @@ import (
"testing"
"time"

+ "knative.dev/networking/pkg/apis/networking"
+
"knative.dev/pkg/test/spoof"

corev1 "k8s.io/api/core/v1"
@@ -83,6 +85,9 @@ func TestBYOCertificate(t *testing.T) {
secret, err := clients.KubeClient.CoreV1().Secrets(test.ServingFlags.TestNamespace).Create(ctx, &corev1.Secret{
ObjectMeta: metav1.ObjectMeta{
Name: test.AppendRandomString("byocert-secret"),
+ Labels: map[string]string{
+ networking.CertificateUIDLabelKey: "byocert-secret",
+ },
},
Type: corev1.SecretTypeTLS,
Data: map[string][]byte{
5 changes: 5 additions & 0 deletions test/e2e/domainmapping/domain_mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ import (
"testing"
"time"

"knative.dev/networking/pkg/apis/networking"

"knative.dev/pkg/test/spoof"

corev1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -83,6 +85,9 @@ func TestBYOCertificate(t *testing.T) {
secret, err := clients.KubeClient.CoreV1().Secrets(test.ServingFlags.TestNamespace).Create(ctx, &corev1.Secret{
ObjectMeta: metav1.ObjectMeta{
Name: test.AppendRandomString("byocert-secret"),
Labels: map[string]string{
networking.CertificateUIDLabelKey: "byocert-secret",
},
},
Type: corev1.SecretTypeTLS,
Data: map[string][]byte{
Expand Down

0 comments on commit ec605c2

Please sign in to comment.