bug: Error during a menu load when Parent
referenced a Kind instead of a
#4826
Labels
group/backend
Issue related to the backend (API Server, Git Agent)
type/bug
Something isn't working as expected
Component
No response
Infrahub version
1.0.0
Current Behavior
When attempting to add VLANs to the IPAM using the BuiltinIPAM menu item in infrahubctl, the following error appears:
['CoreMenuItemUpsert'] Unable to find the node BuiltinIPAM / CoreMenu in the database.
This occurs when setting BuiltinIPAM as the parent in the menu YAML file, as shown below:
However, using a different structure for
parent
as an array, like ["Builtin", "IPAM"], appears to work without errors:Expected Behavior
According to the documentation, the parent field should accept a string in the format of concatenated namespace + name, meaning BuiltinIPAM should work as the value without requiring an array format. The parent field should recognize BuiltinIPAM directly, aligning with the documented behavior.
Documentation Reference: https://docs.infrahub.app/reference/menu
Steps to Reproduce
['CoreMenuItemUpsert'] Unable to find the node BuiltinIPAM / CoreMenu in the database.
Additional Information
No response
The text was updated successfully, but these errors were encountered: