From 83d818705efac35d7f30aa8012839a9e579f643a Mon Sep 17 00:00:00 2001 From: Ole Markus With Date: Sun, 15 Aug 2021 10:13:03 +0200 Subject: [PATCH] Don't set encryption type if encryption is disabled --- pkg/model/components/cilium.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/model/components/cilium.go b/pkg/model/components/cilium.go index c72dec4e06..2a24100cae 100644 --- a/pkg/model/components/cilium.go +++ b/pkg/model/components/cilium.go @@ -149,7 +149,7 @@ func (b *CiliumOptionsBuilder) BuildOptions(o interface{}) error { c.MemoryRequest = &defaultMemoryRequest } - if c.EncryptionType == "" { + if c.EnableEncryption && c.EncryptionType == "" { c.EncryptionType = kops.CiliumEncryptionTypeIPSec }