From 6b0ec09d69f94e184d830f4a195c1ef3815dd6bf Mon Sep 17 00:00:00 2001 From: John Dee Date: Mon, 7 Mar 2022 08:54:50 -0700 Subject: [PATCH] Add SMB volume service support --- MANUAL.md | 8 ++++++++ hooks/blueprint | 12 +++++++++++- overlay/addons/smb-volume-service.yml | 4 ++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 overlay/addons/smb-volume-service.yml diff --git a/MANUAL.md b/MANUAL.md index 3b346f6e..6c5a4045 100644 --- a/MANUAL.md +++ b/MANUAL.md @@ -847,6 +847,14 @@ NFS volumes provided by the NFS Volume Services Broker. There are currently no parameters defined for this feature. +## SMB Volume Services + +The `smb-volume-services` feature adds a volume driver to the +Cloud Foundry Diego cells, to allow application instances to mount +SMB volumes provided by the SMB Volume Services Broker. + +There are currently no parameters defined for this feature. + # Zero-downtime App Deployments This kit allows for using the v3 api's [Zero Downtime (ZDT) deployments](https://docs.cloudfoundry.org/devguide/deploy-apps/rolling-deploy.html) via the diff --git a/hooks/blueprint b/hooks/blueprint index f38980f1..be76d956 100755 --- a/hooks/blueprint +++ b/hooks/blueprint @@ -223,7 +223,7 @@ for want in $GENESIS_REQUESTED_FEATURES; do local-postgres-db|local-mysql-db|mysql-db|postgres-db) db_specified=1; features+=( "$want" ) ;; bare|partitioned-network|haproxy|tls|no-nats-tls|self-signed) features+=( "$want" ) ;; minio-blobstore|aws-blobstore|aws-blobstore-iam|azure-blobstore|gcp-blobstore|gcp-use-access-key) features+=( "$want" ) ;; - nfs-volume-services|enable-service-discovery|ssh-proxy-on-routers|no-tcp-routers) features+=( "$want" ) ;; + nfs-volume-services|enable-service-discovery|ssh-proxy-on-routers|no-tcp-routers|smb-volume-services) features+=( "$want" ) ;; app-autoscaler-integration|prometheus-integration|v2-nats-credentials) features+=( "$want" ) ;; windows-diego-cells) features+=( "$want" ) ;; +migrated-v1-env|+override-db-names) features+=( "$want" ) ;; @@ -398,6 +398,16 @@ for want in $GENESIS_REQUESTED_FEATURES; do "overlay/addons/nfs-volume-service.yml" \ ) fi + ;; + smb-volume-services) + manifest+=( \ + "cf-deployment/operations/enable-smb-volume-service.yml" \ + ) + if ! want_feature "bare" ; then + manifest+=( \ + "overlay/addons/smb-volume-service.yml" \ + ) + fi ;; enable-service-discovery) manifest+=( "overlay/enable-service-discovery.yml" ) ;; diff --git a/overlay/addons/smb-volume-service.yml b/overlay/addons/smb-volume-service.yml new file mode 100644 index 00000000..d8cdccec --- /dev/null +++ b/overlay/addons/smb-volume-service.yml @@ -0,0 +1,4 @@ +instance_groups: +- name: smb-broker-push + networks: ((cf_runtime_network)) + azs: (( grab meta.azs )) \ No newline at end of file