Don't set encryption type if encryption is disabled

This commit is contained in:
Ole Markus With 2021-08-15 10:13:03 +02:00
parent 890187d822
commit 83d818705e
1 changed files with 1 additions and 1 deletions

View File

@ -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
}