diff --git a/mirroroperator/registrymirror.py b/mirroroperator/registrymirror.py index 6dab344..0c4902a 100644 --- a/mirroroperator/registrymirror.py +++ b/mirroroperator/registrymirror.py @@ -364,15 +364,14 @@ def generate_stateful_set(self, stateful_set): ) ) ] - if self.docker_certificate_secret: - volumes.append( - client.V1Volume( - name="tls", - secret=client.V1SecretVolumeSource( - secret_name=self.docker_certificate_secret - ), - ) + volumes.append( + client.V1Volume( + name="tls", + secret=client.V1SecretVolumeSource( + secret_name=self.docker_certificate_secret + ), ) + ) volumes_to_mount = [ client.V1VolumeMount(