Skip to content

Commit

Permalink
Enable secret informer filtering (knative#1281) (#11)
Browse files Browse the repository at this point in the history
* add label to release secrets

* clean up

Co-authored-by: Stavros Kontopoulos <[email protected]>
  • Loading branch information
2 people authored and nak3 committed Mar 3, 2023
1 parent b87bd91 commit 9304534
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
14 changes: 14 additions & 0 deletions openshift/patches/007-secret-informer.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/test/e2e/domainmapping/domain_mapping_test.go b/test/e2e/domainmapping/domain_mapping_test.go
index 9b5c7b2d1..7f71686ce 100644
--- a/test/e2e/domainmapping/domain_mapping_test.go
+++ b/test/e2e/domainmapping/domain_mapping_test.go
@@ -82,7 +82,8 @@ func TestBYOCertificate(t *testing.T) {
cert, key := makeCertificateForDomain(t, host)
secret, err := clients.KubeClient.CoreV1().Secrets(test.ServingFlags.TestNamespace).Create(ctx, &corev1.Secret{
ObjectMeta: metav1.ObjectMeta{
- Name: test.AppendRandomString("byocert-secret"),
+ Name: test.AppendRandomString("byocert-secret"),
+ Labels: map[string]string{"networking.internal.knative.dev/certificate-uid": "byocert-secret"},
},
Type: corev1.SecretTypeTLS,
Data: map[string][]byte{
3 changes: 2 additions & 1 deletion test/e2e/domainmapping/domain_mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ func TestBYOCertificate(t *testing.T) {
cert, key := makeCertificateForDomain(t, host)
secret, err := clients.KubeClient.CoreV1().Secrets(test.ServingFlags.TestNamespace).Create(ctx, &corev1.Secret{
ObjectMeta: metav1.ObjectMeta{
Name: test.AppendRandomString("byocert-secret"),
Name: test.AppendRandomString("byocert-secret"),
Labels: map[string]string{"networking.internal.knative.dev/certificate-uid": "byocert-secret"},
},
Type: corev1.SecretTypeTLS,
Data: map[string][]byte{
Expand Down
2 changes: 1 addition & 1 deletion third_party/kourier-latest/kourier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ spec:
- name: KOURIER_GATEWAY_NAMESPACE
value: "kourier-system"
- name: ENABLE_SECRET_INFORMER_FILTERING_BY_CERT_UID
value: "false"
value: "true"
ports:
- name: http2-xds
containerPort: 18000
Expand Down

0 comments on commit 9304534

Please sign in to comment.