You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e19f49a
Browse filesBrowse the repository at this point in the historyBrowse files
Fix: Trigger nodeSet reconciler with ansibleVarsFrom changes
The NodeSet reconciler was not being triggered when ConfigMaps and Secrets referenced in ansibleVarsFrom were modified. This caused the NodeSet status to not update when configuration data changed, preventing deployments from recognizing that nodes redeployment.
Changes:
- Add ProcessAnsibleVarsFrom function in internal/dataplane/hashes.go to compute hashes for ConfigMaps and Secrets referenced in AnsibleVarsFrom at both NodeTemplate and individual Node
- Add checkAnsibleVarsFromChanged function in the NodeSet controller to compare current hashes with deployed hashes and detect configuration drift.
- Update deployment controller with setNodeSetAnsibleVarsFromHashes to store ConfigMap and Secret hashes in deployment status for comparison
- Add kuttl test cases to verify ansibleVarsFrom change detection triggers proper reconciliation (08-ansiblevars-deploy and 09-ansiblevars-update)
The fix ensures that when a ConfigMap or Secret referenced by ansibleVarsFrom
is modified, the NodeSet controller detects the change and updates its status
to indicate it is no longer ready for deployment, allowing operators to
trigger a new deployment with the updated configuration.
Jira: OSPRH-17961
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments