Skip to content

Commit

Permalink
Merge pull request #2200 from consideRatio/pr/strict-schema
Browse files Browse the repository at this point in the history
schema: catch typos in template values using JSONSchema's `additionalProperties`
  • Loading branch information
yuvipanda authored May 18, 2021
2 parents 363f612 + 1f31321 commit bfbd50a
Show file tree
Hide file tree
Showing 9 changed files with 184 additions and 35 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ on:
- "doc/**"
- "**/test-docs.yaml"
- "**.md"
- "**/schema.yaml"
- ".github/workflows/*"
- "!.github/workflows/test-chart.yaml"
push:
paths-ignore:
- "doc/**"
- "**/test-docs.yaml"
- "**.md"
- "**/schema.yaml"
- ".github/workflows/*"
- "!.github/workflows/test-chart.yaml"
branches-ignore:
Expand Down
4 changes: 2 additions & 2 deletions jupyterhub/files/hub/jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ def camelCaseify(s):
# Combine imagePullSecret.create (single), imagePullSecrets (list), and
# singleuser.image.pullSecrets (list).
image_pull_secrets = []
if get_config("imagePullSecret.automaticReferenceInjection") and (
get_config("imagePullSecret.create") or get_config("imagePullSecret.enabled")
if get_config("imagePullSecret.automaticReferenceInjection") and get_config(
"imagePullSecret.create"
):
image_pull_secrets.append(get_name("image-pull-secret"))
if get_config("imagePullSecrets"):
Expand Down
Loading

0 comments on commit bfbd50a

Please sign in to comment.