@@ -8,7 +8,7 @@ x-google-marketplace:
88 schemaVersion : v2
99
1010 # MUST match the version of the Application custom resource object.
11- # This is the same as the top level applicationApiVersion field in v1.
11+ # This is the same as the top level applicationApiVersion field in v1.beta1
1212 applicationApiVersion : v1beta1
1313
1414 # We are not "truely" following semver.org since we use a "-" for a final
@@ -346,45 +346,37 @@ properties:
346346 x-google-marketplace :
347347 type : SERVICE_ACCOUNT
348348 serviceAccount :
349- description : Service account used by preflight
349+ description : Service account used by the Jetstack Secure Platform agent
350350 roles :
351351 - type : ClusterRole
352352 rulesType : CUSTOM
353353 rules :
354- - apiGroups : [""]
355- resources : ["nodes"]
354+ # The jetstack secure agent gathers services for pod readiness
355+ # probe rules.
356+ - resources : ["services", "pods"]
356357 verbs : ["get", "list"]
357- - type : ClusterRole
358- rulesType : CUSTOM
359- rules :
360- - apiGroups : [""]
361- resources : ["secrets"]
358+ # The jetstack secure agent gathers higher level resources to
359+ # ensure data to determine ownership is present.
360+ - resources : ["deployments", "daemonsets", "replicasets", "statefulsets"]
361+ apiGroups : ["apps"]
362+ verbs : ["get", "list"]
363+ - resources : ["jobs", "cronjobs"]
364+ apiGroups : ["batch"]
365+ verbs : ["get", "list"]
366+ # The jetstack secure agent gathers resources for cert-manager package.
367+ - resources : ["secrets"]
368+ verbs : ["get", "list"]
369+ - apiGroups : ["networking.k8s.iobeta1"]
370+ resources : ["ingresses"]
362371 verbs : ["get", "list"]
363- - type : ClusterRole
364- rulesType : CUSTOM
365- rules :
366372 - apiGroups : ["cert-manager.io"]
367- resources :
368- - certificates
369- - certificaterequests
370- - issuers
371- - clusterissuers
373+ resources : ["certificates", "certificaterequests", "issuers", "clusterissuers"]
372374 verbs : ["get", "list"]
373- - type : ClusterRole
374- rulesType : CUSTOM
375- rules :
376- - apiGroups : ["cas-issuer.jetstack.io"]
377- resources :
378- - googlecasissuers
379- - googlecasclusterissuers
375+ - apiGroups : ["cas-issuer.jetstack.ioalpha1"]
376+ resources : ["googlecasissuers", "googlecasclusterissuers"]
380377 verbs : ["get", "list"]
381- - type : ClusterRole
382- rulesType : CUSTOM
383- rules :
384378 - apiGroups : ["admissionregistration.k8s.io"]
385- resources :
386- - validatingwebhookconfigurations
387- - mutatingwebhookconfigurations
379+ resources : ["mutatingwebhookconfigurations", "validatingwebhookconfigurations"]
388380 verbs : ["get", "list"]
389381
390382 # https://github.com/GoogleCloudPlatform/marketplace-k8s-app-tools/blob/64181be/docs/billing-integration.md
0 commit comments