Skip to content

Commit

Permalink
Update variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
nak3 committed Apr 12, 2022
1 parent 352ce5a commit 549301f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/activator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down
2 changes: 1 addition & 1 deletion test/config/tls/config-network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ metadata:
data:
activator-ca: "serving-ca"
activator-san: "knative"
activator-server-certs: "server-certs"
activator-cert-secret: "server-certs"

0 comments on commit 549301f

Please sign in to comment.