kamctl: tls - converted chained if block to case statement