Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update babylon_anarchy_governor to v0.26.0 #2160

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions agnosticv-operator/operator/agnosticvcomponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,20 +956,26 @@ def __resource_provider_definition(self):
if not apply_parameter_to_current:
continue

# Expose non-variable parameter values in vars
if 'annotation' in parameter and 'variable' not in parameter:
# Define variable for Anarchy if configured.
if parameter.get('anarchyVar'):
definition['spec']['template']['definition'].setdefault(
'spec', {}
).setdefault(
'vars', {}
).setdefault(
'parameter_values', {}
)[parameter_name] = '{{' + parameter_name + '|default(omit)|object}}'
)[parameter['anarchyVar']] = '{{' + parameter_name + '|default(omit)|object}}'

if 'variable' in parameter:
# Custom variable name
variable = parameter['variable']
elif 'annotation' not in parameter and 'anarchyVar' not in parameter:
# Default variable to parameter name if not setting annotation or var for anarchy
variable = parameter_name
else:
# No variable, nothing else to do
continue

open_api_schema_job_vars.setdefault('properties', {})
open_api_schema_job_vars.setdefault('required', [])
variable = parameter.get('variable', parameter_name)
default = None
parameter_open_api_schema = parameter.get('openAPIV3Schema', {})
if 'default' in parameter_open_api_schema:
Expand Down
2 changes: 1 addition & 1 deletion helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ anarchy:
sources:
babylon_anarchy_governor:
src: https://github.com/rhpds/babylon_anarchy_governor.git
version: v0.25.3
version: v0.26.0
api:
group: anarchy.gpte.redhat.com
version: v1
Expand Down