Skip to content

Commit

Permalink
scs addon stack
Browse files Browse the repository at this point in the history
[Features]

* Adds the stack option to the addon-scs, allowing users to specify the
desired stack when deploying the broker. @itsouvalas
* Defaults the stack to cflinuxfs4.
* Resolves an issue where the broker, previously deployed on cflinuxfs3,
would continue to deploy on the same stack even though cflinuxfs4 is
now the default stack in cf-deployment.
  • Loading branch information
itsouvalas authored and wayneeseguin committed Aug 13, 2023
1 parent b456b88 commit 95c39c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hooks/addon-scs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ scs_space_guid=$(cf space ${space} --guid)

memory="256M"
disk="1048M"
stack="cflinuxfs4"
buildpack="go_buildpack"
release_tag="Greenwich.SR3"
broker_uri="https://github.com/cloudfoundry-community/scs-broker/archive/refs/tags/v1.1.0.tar.gz"
Expand Down Expand Up @@ -78,6 +79,10 @@ do # Process opertor arguments
disk="${2}"
shift 2 || fail "Usage: ... disk <#M>"
;;
(stack)
stack="${2}"
shift 2 || fail "Usage: ... stack <stack-name>"
;;
(buildpack)
buildpack="${2}"
shift 2 || fail "Usage: ... buildpack <buildpack-name>"
Expand Down Expand Up @@ -136,6 +141,7 @@ then
---
applications:
- name: scs-broker
stack: ${stack}
buildpack: ${buildpack}
memory: ${memory}
disk_quota: ${disk}
Expand Down

0 comments on commit 95c39c4

Please sign in to comment.