kafka-operator
kafka-operator copied to clipboard
Exclude TLS combinations that we don't want to support
Investigate if we want to allow users to enable mutual tls, without enabling tls. The current implementation allows this.
Background
Some Kafka integration tests (e.g. upgrade_zookeeper-3.9.2_upgrade_old-3.7.1_upgrade_new-3.8.0_use-client-tls-false_use-client-auth-tls-true_openshift-false) allow a combination that we may want to exclude. It sets internalSecretClass but not serverSecretClass:
{% if test_scenario['values']['use-client-auth-tls'] == 'true' %}
authentication:
- authenticationClass: test-kafka-client-auth-tls
{% endif %}
tls:
{% if test_scenario['values']['use-client-tls'] == 'true' %}
serverSecretClass: tls
{% else %}
serverSecretClass: null
{% endif %}