Skip to content

Commit c10ea5a

Browse files
committed
improve schema validation
1 parent ee1b9af commit c10ea5a

File tree

1 file changed

+81
-50
lines changed

1 file changed

+81
-50
lines changed

helm/values.schema.yaml

Lines changed: 81 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,87 @@ properties:
2222
description: "Docker image tag"
2323
default: "latest"
2424

25+
env:
26+
type: object
27+
properties:
28+
# Core
29+
UPSTREAM_URL:
30+
type: string
31+
pattern: "^https?://.+"
32+
description: "URL of the STAC API to proxy"
33+
WAIT_FOR_UPSTREAM:
34+
type: ["boolean", "string"]
35+
description: "Wait for upstream API to become available before starting proxy"
36+
default: "true"
37+
CHECK_CONFORMANCE:
38+
type: ["boolean", "string"]
39+
description: "Ensure upstream API conforms to required conformance classes before starting proxy"
40+
default: "true"
41+
ENABLE_COMPRESSION:
42+
type: ["boolean", "string"]
43+
description: "Enable response compression"
44+
default: "true"
45+
HEALTHZ_PREFIX:
46+
type: string
47+
description: "Path prefix for health check endpoints"
48+
default: "/healthz"
49+
OVERRIDE_HOST:
50+
type: ["boolean", "string"]
51+
description: "Override the host header for the upstream API"
52+
default: "true"
53+
ROOT_PATH:
54+
type: string
55+
description: "Path prefix for the proxy API"
56+
default: ""
57+
# Authentication
58+
OIDC_DISCOVERY_URL:
59+
type: string
60+
pattern: "^https?://.+"
61+
description: "OpenID Connect discovery document URL"
62+
OIDC_DISCOVERY_INTERNAL_URL:
63+
type: string
64+
pattern: "^https?://.+"
65+
description: "Internal network OpenID Connect discovery document URL"
66+
DEFAULT_PUBLIC:
67+
type: ["boolean", "string"]
68+
description: "Default access policy for endpoints"
69+
default: "false"
70+
PRIVATE_ENDPOINTS:
71+
type: ["object", "string"]
72+
description: "Endpoints explicitly marked as requiring authentication and possibly scopes"
73+
PUBLIC_ENDPOINTS:
74+
type: ["object", "string"]
75+
description: "Endpoints explicitly marked as not requiring authentication"
76+
ENABLE_AUTHENTICATION_EXTENSION:
77+
type: ["boolean", "string"]
78+
description: "Enable authentication extension in STAC API responses"
79+
default: "true"
80+
# OpenAPI
81+
OPENAPI_SPEC_ENDPOINT:
82+
type: ["string", "null"]
83+
description: "Path of OpenAPI specification"
84+
default: "/api"
85+
OPENAPI_AUTH_SCHEME_NAME:
86+
type: string
87+
description: "Name of the auth scheme to use in the OpenAPI spec"
88+
default: "oidcAuth"
89+
OPENAPI_AUTH_SCHEME_OVERRIDE:
90+
type: ["object", "string", "null"]
91+
description: "Override for the auth scheme in the OpenAPI spec"
92+
# Filtering
93+
ITEMS_FILTER_CLS:
94+
type: ["string", "null"]
95+
description: "CQL2 expression generator for item-level filtering"
96+
ITEMS_FILTER_ARGS:
97+
type: ["array", "string"]
98+
description: "Positional arguments for CQL2 expression generator"
99+
ITEMS_FILTER_KWARGS:
100+
type: ["object", "string"]
101+
description: "Keyword arguments for CQL2 expression generator"
102+
required:
103+
- UPSTREAM_URL
104+
- OIDC_DISCOVERY_URL
105+
25106
service:
26107
type: object
27108
required: ["type", "port"]
@@ -148,56 +229,6 @@ properties:
148229
additionalProperties: true
149230
description: "Pod affinity rules"
150231

151-
env:
152-
type: object
153-
required: ["UPSTREAM_URL", "OIDC_DISCOVERY_URL"]
154-
properties:
155-
UPSTREAM_URL:
156-
type: string
157-
format: uri
158-
description: "STAC API URL"
159-
OIDC_DISCOVERY_URL:
160-
type: string
161-
format: uri
162-
description: "OpenID Connect discovery document URL"
163-
OIDC_DISCOVERY_INTERNAL_URL:
164-
type: string
165-
format: uri
166-
description: "Internal network OpenID Connect discovery document URL"
167-
WAIT_FOR_UPSTREAM:
168-
type: boolean
169-
description: "Wait for upstream API to become available"
170-
default: true
171-
HEALTHZ_PREFIX:
172-
type: string
173-
description: "Path prefix for health check endpoints"
174-
default: "/healthz"
175-
DEFAULT_PUBLIC:
176-
type: boolean
177-
description: "Default access policy for endpoints"
178-
default: false
179-
PRIVATE_ENDPOINTS:
180-
type: string
181-
description: "JSON string of endpoints requiring authentication"
182-
PUBLIC_ENDPOINTS:
183-
type: string
184-
description: "JSON string of public endpoints when DEFAULT_PUBLIC is false"
185-
OPENAPI_SPEC_ENDPOINT:
186-
type: ["string", "null"]
187-
description: "Path of OpenAPI specification"
188-
ITEMS_FILTER_CLS:
189-
type: ["string", "null"]
190-
description: "CQL2 expression generator class"
191-
ITEMS_FILTER_ARGS:
192-
type: string
193-
description: "JSON string of positional arguments for filter class"
194-
default: "[]"
195-
ITEMS_FILTER_KWARGS:
196-
type: string
197-
description: "JSON string of keyword arguments for filter class"
198-
default: "{}"
199-
200-
201232
serviceAccount:
202233
type: object
203234
properties:

0 commit comments

Comments
 (0)