Skip to content

Commit 73773b8

Browse files
authored
Merge pull request #3090 from consideRatio/pr/rename-schema
refactor: rename schema.yaml to values.schema.yaml
2 parents fbe16ab + 13ac171 commit 73773b8

File tree

12 files changed

+25
-26
lines changed

12 files changed

+25
-26
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
122122
- name: build chart with chartpress
123123
run: |
124-
# Create values.schema.yaml from schema.yaml.
124+
# Create values.schema.json from values.schema.yaml.
125125
./tools/generate-json-schema.py
126126
127127
# Append annotations to Chart.yaml with current images so that

.github/workflows/test-chart.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ jobs:
252252
env:
253253
DOCKER_BUILDKIT: "1"
254254

255-
# Generate values.schema.json from schema.yaml
256-
- name: Generate values.schema.json from schema.yaml
255+
- name: Generate values.schema.json from values.schema.yaml
257256
run: |
258257
tools/generate-json-schema.py
259258

.github/workflows/test-docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ on:
99
pull_request:
1010
paths:
1111
- "docs/**"
12-
- "**/schema.yaml"
12+
- "**/values.schema.yaml"
1313
- "**/test-docs.yaml"
1414
push:
1515
paths:
1616
- "docs/**"
17-
- "**/schema.yaml"
17+
- "**/values.schema.yaml"
1818
- "**/test-docs.yaml"
1919
branches-ignore:
2020
- "dependabot/**"

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ help:
2727
# - builds and rebuilds html on changes to source
2828
# - starts a livereload enabled webserver and opens up a browser
2929
devenv:
30-
sphinx-autobuild -b html --open-browser --ignore "*/reference.md" --watch "../jupyterhub/schema.yaml" "$(SOURCEDIR)" "$(BUILDDIR)/html" $(SPHINXOPTS)
30+
sphinx-autobuild -b html --open-browser --ignore "*/reference.md" --watch "../jupyterhub/values.schema.yaml" "$(SOURCEDIR)" "$(BUILDDIR)/html" $(SPHINXOPTS)
3131

3232
# For local development and CI:
3333
# - verifies that links are valid

docs/make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if errorlevel 9009 (
3939
echo.The 'sphinx-autobuild' command was not found. Open and read README.md!
4040
exit /b 1
4141
)
42-
sphinx-autobuild -b html --open-browser --ignore "*/reference.md" --watch "../jupyterhub/schema.yaml" "%SOURCEDIR%" "%BUILDDIR%/html" %SPHINXOPTS%
42+
sphinx-autobuild -b html --open-browser --ignore "*/reference.md" --watch "../jupyterhub/values.schema.yaml" "%SOURCEDIR%" "%BUILDDIR%/html" %SPHINXOPTS%
4343
goto end
4444

4545

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ def _get_git_ref_from_chartpress_based_version(version):
8989
header_md = [ln.strip("\n") for ln in header_md]
9090

9191
# schema
92-
with open("../../jupyterhub/schema.yaml") as f:
92+
with open("../../jupyterhub/values.schema.yaml") as f:
9393
data = yaml.safe_load(f)
9494

9595

9696
def parse_schema(d, md=[], depth=0, pre=""):
9797
"""
9898
Generate markdown headers from a passed python dictionary created by
99-
parsing a schema.yaml file.
99+
parsing a values.schema.yaml file.
100100
"""
101101
if "then" in d:
102102
d = d["then"]

jupyterhub/.helmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
# Here are files that we intentionally ignore to avoid them being packaged,
88
# because we don't want to reference them from our templates anyhow.
9-
schema.yaml
9+
values.schema.yaml
1010

1111
# Patterns to ignore when building packages.
1212
# This supports shell glob matching, relative path matching, and

jupyterhub/templates/_helpers-names.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
parent charts to reference these dynamic resource names.
44
55
To avoid duplicating documentation, for more information, please see the the
6-
fullnameOverride entry in schema.yaml or the configuration reference that
7-
schema.yaml renders to.
6+
fullnameOverride entry in values.schema.yaml or the configuration reference
7+
that values.schema.yaml renders to.
88
99
https://z2jh.jupyter.org/en/latest/resources/reference.html#fullnameOverride
1010
*/}}

jupyterhub/schema.yaml renamed to jupyterhub/values.schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This schema (a jsonschema in YAML format) is used to generate
22
# values.schema.json which is packaged with the Helm chart for client side
3-
# validation by Helm of values before template rendering.
3+
# validation by helm of values before template rendering.
44
#
55
# This schema is also used by our documentation system to build the
66
# configuration reference section based on the description fields. See

tools/compare-values-schema-content.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env python3
22
"""
3-
This script is meant to help compare the entries in schema.yaml with the entries
4-
in values.yaml and lint-and-validate-values.yaml.
3+
This script is meant to help compare the entries in values.schema.yaml with the
4+
entries in values.yaml and lint-and-validate-values.yaml.
55
66
Running this script can result in output like:
77
8-
schema.yaml entries not found in values.yaml:
8+
values.schema.yaml entries not found in values.yaml:
99
- hub.deploymentStrategy.rollingUpdate
1010
- hub.fsGid
1111
- rbac.enabled
@@ -17,7 +17,7 @@
1717
import yaml
1818

1919
here_dir = os.path.abspath(os.path.dirname(__file__))
20-
schema_yaml = os.path.join(here_dir, os.pardir, "jupyterhub", "schema.yaml")
20+
schema_yaml = os.path.join(here_dir, os.pardir, "jupyterhub", "values.schema.yaml")
2121
values_yaml = os.path.join(here_dir, os.pardir, "jupyterhub", "values.yaml")
2222
lint_values_yaml = os.path.join(here_dir, "templates", "lint-and-validate-values.yaml")
2323

@@ -96,15 +96,15 @@ def run():
9696

9797
schema_values_diff = get_schema_values_diff(values_yaml, schema, schema_wildcards)
9898
if schema_values_diff:
99-
print("schema.yaml entries not found in values.yaml:")
99+
print("values.schema.yaml entries not found in values.yaml:")
100100
for l in sorted(schema_values_diff):
101101
print(f"- {l}")
102102

103103
lint_schema_values_diff = get_schema_values_diff(
104104
lint_values_yaml, schema, schema_wildcards
105105
)
106106
if lint_schema_values_diff:
107-
print("schema.yaml entries not found in lint-and-validate-values.yaml:"),
107+
print("values.schema.yaml entries not found in lint-and-validate-values.yaml:"),
108108
for l in sorted(lint_schema_values_diff):
109109
print(f"- {l}")
110110

0 commit comments

Comments
 (0)