refator: rename ssl to tls
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -4,10 +4,10 @@ import gomaprojv1beta1 "github.com/jkaninda/goma-operator/api/v1beta1"
|
||||
|
||||
// Gateway contains Goma Proxy Gateway's configs
|
||||
type Gateway struct {
|
||||
// SSLCertFile SSL Certificate file
|
||||
SSLCertFile string `yaml:"sslCertFile"`
|
||||
// SSLKeyFile SSL Private key file
|
||||
SSLKeyFile string `yaml:"sslKeyFile"`
|
||||
// TlsCertFile SSL Certificate file
|
||||
TlsCertFile string `yaml:"TlsCertFile"`
|
||||
// TlsKeyFile SSL Private key file
|
||||
TlsKeyFile string `yaml:"TlsKeyFile"`
|
||||
// Redis contains redis database details
|
||||
Redis gomaprojv1beta1.Redis `yaml:"redis"`
|
||||
// WriteTimeout defines proxy write timeout
|
||||
|
||||
Reference in New Issue
Block a user