Skip to content

Commit 6f286e4

Browse files
add max_count and allowed_counts package configs
1 parent dfd22ba commit 6f286e4

File tree

3 files changed

+55
-1
lines changed

3 files changed

+55
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: eurofurence-registration-system
3-
version: 0.0.31
3+
version: 0.0.32
44
description: A helm chart that can deploy the Eurofurence Registration System.
55
type: application
66
home: https://github.com/eurofurence/reg-helm-chart

charts/eurofurence-registration-system/values-example.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,31 @@ choices:
270270
visible_for:
271271
- regdesk
272272
- sponsordesk
273+
benefactor:
274+
allowed_counts:
275+
- 1
276+
- 2
277+
- 3
278+
- 4
279+
- 5
280+
- 6
281+
- 8
282+
- 10
283+
- 15
284+
- 20
285+
- 30
286+
- 40
287+
- 50
288+
- 100
289+
constraint: 'sponsor2'
290+
constraint_msg: Only available for supersponsors.
291+
description: Benefactor
292+
max_count: 100
293+
price: 5000
294+
vat_percent: 19
295+
visible_for:
296+
- regdesk
297+
- sponsordesk
273298
tshirt:
274299
description: 'Paid T-Shirt (non-sponsor)'
275300
price: 2000
@@ -278,6 +303,23 @@ choices:
278303
constraint_msg: 'Sponsors and supersponsors get their T-Shirt for free.'
279304
visible_for:
280305
- sponsordesk
306+
fursuit:
307+
description: First Fursuit Badge
308+
price: 0
309+
vat_percent: 19
310+
visible_for:
311+
- regdesk
312+
- sponsordesk
313+
fursuitadd:
314+
constraint: 'fursuit'
315+
constraint_msg: Please select the free fursuit badge first, otherwise you'll pay too much.
316+
description: Additional Fursuit Badge
317+
price: 200
318+
vat_percent: 19
319+
max_count: 10
320+
visible_for:
321+
- regdesk
322+
- sponsordesk
281323
day-wed:
282324
description: 'Day Guest (Wednesday)'
283325
price: 7000

charts/eurofurence-registration-system/values.schema.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,6 +1317,18 @@
13171317
"type": "string",
13181318
"pattern": "^[a-z][a-z0-9_-]*$"
13191319
}
1320+
},
1321+
"max_count": {
1322+
"type": "integer",
1323+
"description": "Maximal number of times this package can be selected. 0 or omitted means 1 so can be left out.",
1324+
"default": 1
1325+
},
1326+
"allowed_counts": {
1327+
"type": "array",
1328+
"description": "optional specific list of selections for the number of times a package can be selected. Ignored unless you also set max_count. If unset, all values from 1 to max_count are accepted.",
1329+
"items": {
1330+
"type": "integer"
1331+
}
13201332
}
13211333
}
13221334
}

0 commit comments

Comments
 (0)