Skip to content

Commit 5777b0f

Browse files
committed
feat: use helm-schema plugin to generate the values.schema.json
1 parent a681ecc commit 5777b0f

File tree

2 files changed

+8171
-594
lines changed

2 files changed

+8171
-594
lines changed
Lines changed: 125 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,131 @@
11
{
2-
"$schema": "https://json-schema.org/draft/2020-12/schema#",
3-
"type": "object",
4-
"properties": {
5-
"image": {
6-
"type": "object",
7-
"properties": {
8-
"pullPolicy": {
9-
"type": "string"
10-
},
11-
"repository": {
12-
"type": "string"
13-
},
14-
"tag": {
15-
"type": "string"
16-
}
17-
}
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
4+
"properties": {
5+
"global": {
6+
"description": "Global values are values that can be accessed from any chart or subchart by exactly the same name.",
7+
"required": [],
8+
"title": "global",
9+
"type": "object"
10+
},
11+
"image": {
12+
"additionalProperties": false,
13+
"description": "Sentry DSN config using an existing secret:\nexistingSecret:",
14+
"properties": {
15+
"pullPolicy": {
16+
"default": "Always",
17+
"required": [],
18+
"title": "pullPolicy",
19+
"type": "string"
1820
},
19-
"podAnnotations": {
20-
"type": "object"
21+
"repository": {
22+
"default": "ghcr.io/getsentry/sentry-kubernetes",
23+
"required": [],
24+
"title": "repository",
25+
"type": "string"
2126
},
22-
"podLabels": {
23-
"type": "object"
24-
},
25-
"rbac": {
26-
"type": "object",
27-
"properties": {
28-
"create": {
29-
"type": "boolean"
30-
}
31-
}
32-
},
33-
"resources": {
34-
"type": "object"
35-
},
36-
"sentry": {
37-
"type": "object",
38-
"properties": {
39-
"dsn": {
40-
"type": "string"
41-
}
42-
}
27+
"tag": {
28+
"default": "latest",
29+
"description": "Tag should be set in hard in the charts when getsentry will do the job of releasing version.",
30+
"required": [],
31+
"title": "tag",
32+
"type": "string"
33+
}
34+
},
35+
"required": [
36+
"repository",
37+
"tag",
38+
"pullPolicy"
39+
],
40+
"title": "image",
41+
"type": "object"
42+
},
43+
"podAnnotations": {
44+
"additionalProperties": false,
45+
"required": [],
46+
"title": "podAnnotations",
47+
"type": "object"
48+
},
49+
"podLabels": {
50+
"additionalProperties": false,
51+
"description": "Set priorityCLassName in deployment\npriorityClassName: \"\"",
52+
"required": [],
53+
"title": "podLabels",
54+
"type": "object"
55+
},
56+
"rbac": {
57+
"additionalProperties": false,
58+
"properties": {
59+
"create": {
60+
"default": true,
61+
"description": "Specifies whether RBAC resources should be created",
62+
"required": [],
63+
"title": "create",
64+
"type": "boolean"
65+
}
66+
},
67+
"required": [
68+
"create"
69+
],
70+
"title": "rbac",
71+
"type": "object"
72+
},
73+
"resources": {
74+
"additionalProperties": false,
75+
"required": [],
76+
"title": "resources",
77+
"type": "object"
78+
},
79+
"sentry": {
80+
"additionalProperties": false,
81+
"properties": {
82+
"dsn": {
83+
"default": "\u003cchange-me\u003e",
84+
"required": [],
85+
"title": "dsn",
86+
"type": "string"
87+
}
88+
},
89+
"required": [
90+
"dsn"
91+
],
92+
"title": "sentry",
93+
"type": "object"
94+
},
95+
"serviceAccount": {
96+
"additionalProperties": false,
97+
"properties": {
98+
"create": {
99+
"default": true,
100+
"description": "Specifies whether a ServiceAccount should be created",
101+
"required": [],
102+
"title": "create",
103+
"type": "boolean"
43104
},
44-
"serviceAccount": {
45-
"type": "object",
46-
"properties": {
47-
"create": {
48-
"type": "boolean"
49-
},
50-
"name": {
51-
"type": "null"
52-
}
53-
}
105+
"name": {
106+
"default": "",
107+
"description": "The name of the ServiceAccount to use.\nIf not set and create is true, a name is generated using the fullname template",
108+
"required": [],
109+
"title": "name",
110+
"type": "null"
54111
}
112+
},
113+
"required": [
114+
"create",
115+
"name"
116+
],
117+
"title": "serviceAccount",
118+
"type": "object"
55119
}
56-
}
120+
},
121+
"required": [
122+
"sentry",
123+
"image",
124+
"resources",
125+
"serviceAccount",
126+
"rbac",
127+
"podLabels",
128+
"podAnnotations"
129+
],
130+
"type": "object"
131+
}

0 commit comments

Comments
 (0)