refator: rename ssl to tls

This commit is contained in:
Jonas Kaninda
2024-11-29 14:05:16 +01:00
parent 3bd4b68925
commit 9db20f4577
5 changed files with 85 additions and 96 deletions

View File

@@ -27,8 +27,8 @@ func gatewayConfig(r GatewayReconciler, ctx context.Context, req ctrl.Request, g
}
// attach cert files
if len(gateway.Spec.Server.TlsSecretName) != 0 {
gomaConfig.Gateway.SSLKeyFile = TLSKeyFile
gomaConfig.Gateway.SSLCertFile = TLSCertFile
gomaConfig.Gateway.TlsCertFile = TLSCertFile
gomaConfig.Gateway.TlsKeyFile = TLSKeyFile
}
labelSelector := client.MatchingLabels{}
@@ -79,8 +79,8 @@ func updateGatewayConfig(r RouteReconciler, ctx context.Context, req ctrl.Reques
}
// attach cert files
if len(gateway.Spec.Server.TlsSecretName) != 0 {
gomaConfig.Gateway.SSLKeyFile = TLSKeyFile
gomaConfig.Gateway.SSLCertFile = TLSCertFile
gomaConfig.Gateway.TlsCertFile = TLSCertFile
gomaConfig.Gateway.TlsKeyFile = TLSKeyFile
}
labelSelector := client.MatchingLabels{}
var middlewareNames []string