We have common TLS parameters for all ships in a deployment, which we define in ship defaults section of our orchestration YAML file. The StaticShipProvider does not currently use the ship defaults, which need to be duplicated across the ship definitions (violating DRY).
I'm proposing that the tls_* parameters in container ship init use ship or defaults, eg:
We have common TLS parameters for all ships in a deployment, which we define in ship defaults section of our orchestration YAML file. The StaticShipProvider does not currently use the ship defaults, which need to be duplicated across the ship definitions (violating DRY). I'm proposing that the tls_* parameters in container ship init use ship or defaults, eg:
tls=self._from_ship_or_defaults(v, 'tls'),
tls_cert=self._from_ship_or_defaults(v, 'tls_cert'),
tls_key=self._from_ship_or_defaults(v, 'tls_key'),
tls_verify=self._from_ship_or_defaults(v, 'tls_verify'),
tls_ca_cert=self._from_ship_or_defaults(v, 'tls_ca_cert'),
ssl_version=self._from_ship_or_defaults(v, 'ssl_version')