Skip to content

Commit

Permalink
Expose non-variable parameters in AnarchySubject (#2157)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkupferer authored Sep 23, 2024
1 parent cd14e77 commit 3573ccb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion agnosticv-operator/operator/agnosticvcomponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,8 +956,15 @@ def __resource_provider_definition(self):
if not apply_parameter_to_current:
continue

# Skip annotation only parameters in template generation and validation
# Expose non-variable parameter values in vars
if 'annotation' in parameter and 'variable' not in parameter:
definition['spec']['template']['definition'].setdefault(
'spec', {}
).setdefault(
'vars', {}
).setdefault(
'parameter_values', {}
)[parameter_name] = '{{' + parameter_name + '|default(omit)|object}}'
continue

open_api_schema_job_vars.setdefault('properties', {})
Expand Down

0 comments on commit 3573ccb

Please sign in to comment.