From d553ae807d6c764359537a463b5ca0009c5157af Mon Sep 17 00:00:00 2001 From: uberspot Date: Wed, 10 Jun 2020 18:02:27 +0100 Subject: [PATCH] Allow using .yaml output file extension along with .yml and start release-v0.28.0-rc.1 --- CHANGELOG.md | 3 +++ kapitan/inputs/jsonnet.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d78305601..57f5dc2e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.28.0-rc.1: +- Allow using .yaml output file extension along with .yml (#525) + ## 0.28.0-rc.0: - Fix embedded refs encoding value (#523) - Add new Helm dependency input type (#520) diff --git a/kapitan/inputs/jsonnet.py b/kapitan/inputs/jsonnet.py index b94b832e0..3ac605233 100644 --- a/kapitan/inputs/jsonnet.py +++ b/kapitan/inputs/jsonnet.py @@ -74,8 +74,8 @@ def _search_imports(cwd, imp): indent=indent, ) as fp: fp.write_json(item_value) - elif output == "yaml": - file_path = os.path.join(compile_path, "%s.%s" % (item_key, "yml")) + elif output in ["yml", "yaml"]: + file_path = os.path.join(compile_path, "%s.%s" % (item_key, output)) with CompiledFile( file_path, self.ref_controller,