From 8a45b51fb39ad08becbbbe42fe769307929bd1ce Mon Sep 17 00:00:00 2001 From: savitaashture Date: Mon, 22 Mar 2021 21:03:45 +0530 Subject: [PATCH] Add changes to enable TLS encryption based on label --- pkg/reconciler/openshift/annotation/annotation.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/reconciler/openshift/annotation/annotation.go b/pkg/reconciler/openshift/annotation/annotation.go index afdf252df2..add4af217b 100644 --- a/pkg/reconciler/openshift/annotation/annotation.go +++ b/pkg/reconciler/openshift/annotation/annotation.go @@ -166,9 +166,9 @@ func (ac *reconciler) reconcileMutatingWebhook(ctx context.Context, caCert []byt webhook.Webhooks[i].Rules = rules webhook.Webhooks[i].NamespaceSelector = &metav1.LabelSelector{ MatchExpressions: []metav1.LabelSelectorRequirement{{ - Key: "operator.tekton.dev/disable-annotation", - Operator: metav1.LabelSelectorOpNotIn, - Values: []string{"disabled"}, + Key: "operator.tekton.dev/enable-annotation", + Operator: metav1.LabelSelectorOpIn, + Values: []string{"enabled"}, }, { // "control-plane" is added to support Azure's AKS, otherwise the controllers fight. // See knative/pkg#1590 for details.