Skip to content

Commit a6c1ea4

Browse files
committed
Allow the deployer to create CRDs and webhook configs
Signed-off-by: Richard Wall <[email protected]>
1 parent ce3059c commit a6c1ea4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

schema.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,23 @@ x-google-marketplace:
4343
cert-manager.cainjector.image.tag:
4444
type: TAG
4545

46+
# Allow the deployer to create CRDs and webhook configurations
47+
# See https://github.com/GoogleCloudPlatform/marketplace-k8s-app-tools/blob/master/docs/schema.md#deployerserviceaccount
48+
# TODO: Consider whether these permissions can be tightened.
49+
deployerServiceAccount:
50+
description: >
51+
Creates app resources, including the MyAppCustomResource CRD.
52+
roles:
53+
- type: ClusterRole
54+
rulesType: CUSTOM
55+
rules:
56+
- apiGroups: ['apiextensions.k8s.io']
57+
resources: ['customresourcedefinitions']
58+
verbs: ['*']
59+
- apiGroups: ["admissionregistration.k8s.io"]
60+
resources: ["*"]
61+
verbs: ["*"]
62+
4663
# Other fields, like clusterConstraints, can be included here.
4764

4865
# The Properties and Required sections of v2 are structured the same as those of v1.

0 commit comments

Comments
 (0)