Skip to content

Commit dc7ee0d

Browse files
Merge branch 'master' of patrickcrocker.github.com:nulldriver/cf-cli-resource
2 parents e1eead1 + 9e05739 commit dc7ee0d

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Note: you must provide either `username` and `password` or `client_id` and `clie
2525
```yml
2626
resource_types:
2727
- name: cf-cli-resource
28-
type: docker-image
28+
type: registry-image
2929
source:
3030
repository: nulldriver/cf-cli-resource
3131
tag: latest
@@ -743,6 +743,7 @@ Bind a service instance to an HTTP route
743743
- `service_instance`: _Required._ The service instance to bind the route to
744744
- `hostname`: _Optional._ Hostname used in combination with `domain` to specify the route to bind
745745
- `path`: _Optional._ Path used in combination with `hostname` and `domain` to specify the route to bind
746+
- `configuration`: _Optional._ Valid JSON object containing service-specific configuration parameters, provided either in-line or in a file. For a list of supported configuration parameters, see documentation for the particular service offering.
746747

747748
```yml
748749
- put: cf-bind-route-service
@@ -753,6 +754,7 @@ Bind a service instance to an HTTP route
753754
service_instance: mylogger
754755
hostname: myhost
755756
path: foo
757+
configuration: '{"permissions":"read-only"}'
756758
```
757759

758760
#### unbind-route-service

resource/commands/bind-route-service.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ domain=$(get_option '.domain')
33
service_instance=$(get_option '.service_instance')
44
hostname=$(get_option '.hostname')
55
path=$(get_option '.path')
6+
configuration=$(get_option '.configuration')
67

78
logger::info "Executing $(logger::highlight "$command"): $service_instance"
89

@@ -11,5 +12,6 @@ cf::target "$org" "$space"
1112
args=("$domain" "$service_instance")
1213
[ -n "$hostname" ] && args+=(--hostname "$hostname")
1314
[ -n "$path" ] && args+=(--path "$path")
15+
[ -n "$configuration" ] && args+=(-c "$configuration")
1416

1517
cf::cf bind-route-service "${args[@]}"

0 commit comments

Comments
 (0)