Skip to content

Commit

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

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

def __call__(self, obj):
"""Update the secret volume spec in daemonsets and deployments."""
if not (obj.kind == "Deployment" and obj.metadata.name == "csi-cinder-controllerplugin"):
if not any(
[
(obj.kind == "DaemonSet" and obj.metadata.name == "csi-cinder-nodeplugin"),
(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 72ea56e

Please sign in to comment.