From d0624a4e203a4dc6b84b3b268d599b42e9783d80 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Mon, 28 Aug 2023 16:29:12 +0900 Subject: [PATCH] Add InternalTLSEnabled --- pkg/config/config.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 71dbe6444..f27c7865e 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -445,16 +445,12 @@ func NewConfigFromMap(data map[string]string) (*Config, error) { return nc, nil } -// DataplaneTLSEnabled returns whether or not dataplane-trust is enabled. -func (c *Config) DataplaneTLSEnabled() bool { +// InternalTLSEnabled returns whether or not InternalEncyrption is enabled. +// Currently only DataplaneTrust is considered. +func (c *Config) InternalTLSEnabled() bool { return tlsEnabled(c.DataplaneTrust) } -// ControlplaneTLSEnabled returns whether or not controlane-trust is enabled. -func (c *Config) ControlplaneTLSEnabled() bool { - return tlsEnabled(c.ControlplaneTrust) -} - func tlsEnabled(trust Trust) bool { return trust == TrustMinimal || trust == TrustEnabled ||