This project contains Ansible code that creates a baseline in an existing Kubernetes environment for use with the SAS Viya Platform, generates the manifest for an order, and then can also deploy that order into the Kubernetes environment specified.
Apache License 2.0
71
stars
66
forks
source link
fix: (IAC-1362) Fix the V4M_ROUTING Validation Task #525
Fix the V4M - ensure supported value for V4M_ROUTING task to that the intersect function has the correct input format.
Cause:
It looks like when we updated the ansible version from 9.1.0->8.6.0 this problem started appearing. That version bump causes the ansible-core version to go from 2.15->2.16.
Looking at the release notes for 2.16 it looks like there was a bug fix around set filters that changed its behavior. We are updating this function so we don't rely on its previous "bugged" behavior.
https://github.com/ansible/ansible/blob/stable-2.16/changelogs/CHANGELOG-v2.16.rst#v2-16-0
From CHANGELOG:
Set filters intersect, difference, symmetric_difference and union now always return a list, never a set. Previously, a set would be returned if the inputs were a hashable type such as str, instead of a collection, such as a list or tuple.
Set filters intersect, difference, symmetric_difference and union now use set operations when the given items are hashable. Previously, list operations were performed unless the inputs were a hashable type such as str, instead of a collection, such as a list or tuple.
Changes
Fix the
V4M - ensure supported value for V4M_ROUTING
task to that the intersect function has the correct input format.Cause:
It looks like when we updated the
ansible
version from 9.1.0->8.6.0 this problem started appearing. That version bump causes theansible-core
version to go from 2.15->2.16. Looking at the release notes for 2.16 it looks like there was a bug fix around set filters that changed its behavior. We are updating this function so we don't rely on its previous "bugged" behavior. https://github.com/ansible/ansible/blob/stable-2.16/changelogs/CHANGELOG-v2.16.rst#v2-16-0From CHANGELOG:
Example of behavior: ansible-core 2.15
ansible-core 2.16
Tests