Skip to content

Commit

Permalink
Support kubernetes.io/no-provisioner (#575)
Browse files Browse the repository at this point in the history
* Support kubernetes.io/no-provisioner

* Add comment saying local-shared storage class is pre-provisioned
  • Loading branch information
vcanaa authored Sep 13, 2021
1 parent 2b314e5 commit 7297194
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions marketplace/deployer_util/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,9 @@ def provision_storage_class(schema, prop, app_name, namespace, provisioner):
else:
raise Exception('Do not know how to provision for property {}'.format(
prop.name))
elif provisioner == 'kubernetes.io/no-provisioner':
# local-shared storage class is already pre-provisioned
return 'local-shared', []

sc_name = dns1123_name('{}-{}-{}'.format(namespace, app_name, prop.name))
manifests = [{
Expand Down

0 comments on commit 7297194

Please sign in to comment.