Skip to content

Commit

Permalink
Add parameter defaults on linked resource providers
Browse files Browse the repository at this point in the history
  • Loading branch information
jkupferer committed Aug 30, 2024
1 parent 3963dca commit 0a437b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions operator/resourceprovider.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,12 @@ async def get_resources(self,
parameter_values.update(resource_claim.parameter_values)
elif resource_handle:
parameter_values.update(resource_handle.parameter_values)
else:
# Add defaults to parameter values
parameter_values = {
**self.parameter_defaults,
**parameter_values,
}

resource_handle_vars = resource_handle.vars if resource_handle else {}
vars_ = {
Expand Down

0 comments on commit 0a437b3

Please sign in to comment.