forked from knative/serving
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add domain-mapping-test-certificate-uid-label.patch
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
openshift/patches/011-domain-mapping-test-certificate-uid-label.patch
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,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{ |
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