ci: also validate binderhub-chart-config.yaml against schema
@@ -13,6 +13,9 @@ values_yaml = os.path.join(
lint_and_validate_values_yaml = os.path.join(
here_dir, "templates", "lint-and-validate-values.yaml"
)
+binderhub_chart_config_yaml = os.path.join(
+ here_dir, os.pardir, "testing/k8s-binder-k8s-hub", "binderhub-chart-config.yaml"
+)
with open(schema_yaml) as f:
schema = yaml.safe_load(f)
@@ -20,6 +23,8 @@ with open(values_yaml) as f:
values = yaml.safe_load(f)
with open(lint_and_validate_values_yaml) as f:
lint_and_validate_values = yaml.safe_load(f)
+with open(binderhub_chart_config_yaml) as f:
+ binderhub_chart_config_yaml = yaml.safe_load(f)
# Validate values.yaml against schema
print("Validating values.yaml against schema.yaml...")
@@ -31,3 +36,9 @@ print()
print("Validating lint-and-validate-values.yaml against schema.yaml...")
jsonschema.validate(lint_and_validate_values, schema)
print("OK!")
+print()
+
+# Validate lint-and-validate-values.yaml against schema
+print("Validating binderhub-chart-config.yaml against schema.yaml...")
+jsonschema.validate(lint_and_validate_values, schema)
+print("OK!")
