diff --git a/cmd/activator/main.go b/cmd/activator/main.go index e842f2689e08..3d2633023d38 100644 --- a/cmd/activator/main.go +++ b/cmd/activator/main.go @@ -245,8 +245,8 @@ func main() { // Enable TLS server when activator-server-cert is specified. // At this moment activator with TLS does not disable HTTP. // See also https://github.com/knative/serving/issues/12808. - if networkConfig.ActivatorServerCert != "" { - secret, err := kubeClient.CoreV1().Secrets(system.Namespace()).Get(ctx, networkConfig.ActivatorServerCert, metav1.GetOptions{}) + if networkConfig.ActivatorCertSecret != "" { + secret, err := kubeClient.CoreV1().Secrets(system.Namespace()).Get(ctx, networkConfig.ActivatorCertSecret, metav1.GetOptions{}) if err != nil { logger.Fatalw("failed to get secret", zap.Error(err)) } diff --git a/test/config/tls/config-network.yaml b/test/config/tls/config-network.yaml index eee9fe00c50e..6a3b909b8a48 100644 --- a/test/config/tls/config-network.yaml +++ b/test/config/tls/config-network.yaml @@ -23,4 +23,4 @@ metadata: data: activator-ca: "serving-ca" activator-san: "knative" - activator-server-certs: "server-certs" + activator-cert-secret: "server-certs"