From 352f0e49f49f7a02ce4acc18be1969e1c2701bf6 Mon Sep 17 00:00:00 2001 From: Simon Gerber Date: Mon, 18 Mar 2024 17:59:22 +0100 Subject: [PATCH] Add missing initialization for `applications` and `exports` in reclass-rs backend We forgot to update #1059 to also initialize the `applications` and `exports` fields in the target dataclass in the reclass-rs backend. This commit updates the reclass-rs backend to correctly initialize these fields to match the fix in #1142. --- kapitan/inventory/inv_reclass_rs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kapitan/inventory/inv_reclass_rs.py b/kapitan/inventory/inv_reclass_rs.py index f7d714439..9f91339ba 100644 --- a/kapitan/inventory/inv_reclass_rs.py +++ b/kapitan/inventory/inv_reclass_rs.py @@ -38,6 +38,8 @@ def render_targets(self, targets: list = None, ignore_class_notfound: bool = Fal for target_name, nodeinfo in inv.nodes.items(): self.targets[target_name].parameters = nodeinfo.parameters self.targets[target_name].classes = nodeinfo.classes + self.targets[target_name].applications = nodeinfo.applications + self.targets[target_name].exports = nodeinfo.exports except ValueError as e: logger.error(f"Reclass-rs error: {e}")