From da74949eb5a9d4243ee6b24781990e9bfabe00be Mon Sep 17 00:00:00 2001 From: German Lashevich Date: Mon, 27 Jan 2025 15:44:30 +0100 Subject: [PATCH] fix: ensure buildDependencies is nullable In YTT an annotation affects either its left node or its right node, in this exact order. To make sure the annotation is applied to the bottom node, we have to ensure there's no node to the left of it. In this case, the `releaseName` key is moved to the top of the list, to achieve that. --- internal/myks/assets/data-schema.ytt.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/myks/assets/data-schema.ytt.yaml b/internal/myks/assets/data-schema.ytt.yaml index 0825313f..137e84b5 100644 --- a/internal/myks/assets/data-schema.ytt.yaml +++ b/internal/myks/assets/data-schema.ytt.yaml @@ -106,14 +106,14 @@ helm: #! See https://github.com/carvel-dev/ytt/issues/656 for more information. #@schema/validation ("chart names must be unique", lambda x: len(set([c["name"] for c in x])) == len(x)) charts: - - #@schema/nullable + - releaseName: "" + #@schema/nullable buildDependencies: false #@schema/nullable includeCRDs: false #@schema/validation min_len=1 name: "" namespace: "" - releaseName: "" #! Configuration of the step that renders ytt-packages. yttPkg: #! A ytt-package can be rendered as a whole, or can contain multiple sub-packages that should be rendered separately.