Skip to content

Commit

Permalink
fix: remove conditional for docker_certificate_secret
Browse files Browse the repository at this point in the history
  • Loading branch information
blerko committed Jun 5, 2018
1 parent 576e9ee commit 861445a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions mirroroperator/registrymirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 861445a

Please sign in to comment.