Skip to content

Commit

Permalink
Review changes batch canonical#2
Browse files Browse the repository at this point in the history
  • Loading branch information
VariableDeclared committed Mar 27, 2024
1 parent 74a1cfb commit fa990fc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/storage_manifests.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def __call__(self) -> Optional[AnyResource]:
volumeBindingMode="WaitForFirstConsumer",
)
)

if az := self.manifests.config.get("availability-zone"):
sc.parameters = dict(availability=az)
return sc
Expand All @@ -77,12 +76,7 @@ class UpdateSecrets(Patch):

def __call__(self, obj):
"""Update the secret volume spec in daemonsets and deployments."""
if not any(
[
(obj.kind == "DaemonSet" and obj.metadata.name == "csi-cinder-nodeplugin"),
(obj.kind == "Deployment" and obj.metadata.name == "csi-cinder-controllerplugin"),
]
):
if not (obj.kind == "Deployment" and obj.metadata.name == "csi-cinder-controllerplugin"):
return

for volume in obj.spec.template.spec.volumes:
Expand Down

0 comments on commit fa990fc

Please sign in to comment.