Skip to content

Commit

Permalink
add max_count and allowed_counts package configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumpy-Squirrel committed Dec 13, 2024
1 parent dfd22ba commit 6f286e4
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/eurofurence-registration-system/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: eurofurence-registration-system
version: 0.0.31
version: 0.0.32
description: A helm chart that can deploy the Eurofurence Registration System.
type: application
home: https://github.com/eurofurence/reg-helm-chart
42 changes: 42 additions & 0 deletions charts/eurofurence-registration-system/values-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,31 @@ choices:
visible_for:
- regdesk
- sponsordesk
benefactor:
allowed_counts:
- 1
- 2
- 3
- 4
- 5
- 6
- 8
- 10
- 15
- 20
- 30
- 40
- 50
- 100
constraint: 'sponsor2'
constraint_msg: Only available for supersponsors.
description: Benefactor
max_count: 100
price: 5000
vat_percent: 19
visible_for:
- regdesk
- sponsordesk
tshirt:
description: 'Paid T-Shirt (non-sponsor)'
price: 2000
Expand All @@ -278,6 +303,23 @@ choices:
constraint_msg: 'Sponsors and supersponsors get their T-Shirt for free.'
visible_for:
- sponsordesk
fursuit:
description: First Fursuit Badge
price: 0
vat_percent: 19
visible_for:
- regdesk
- sponsordesk
fursuitadd:
constraint: 'fursuit'
constraint_msg: Please select the free fursuit badge first, otherwise you'll pay too much.
description: Additional Fursuit Badge
price: 200
vat_percent: 19
max_count: 10
visible_for:
- regdesk
- sponsordesk
day-wed:
description: 'Day Guest (Wednesday)'
price: 7000
Expand Down
12 changes: 12 additions & 0 deletions charts/eurofurence-registration-system/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,18 @@
"type": "string",
"pattern": "^[a-z][a-z0-9_-]*$"
}
},
"max_count": {
"type": "integer",
"description": "Maximal number of times this package can be selected. 0 or omitted means 1 so can be left out.",
"default": 1
},
"allowed_counts": {
"type": "array",
"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.",
"items": {
"type": "integer"
}
}
}
}
Expand Down

0 comments on commit 6f286e4

Please sign in to comment.