Skip to content

Commit f870baf

Browse files
Ville Aikaspmorie
authored andcommitted
Follow up file / renames from #1142 (#1152)
* Follow up file / renames from #1142 * fix whitespace
1 parent 826b4f9 commit f870baf

File tree

4 files changed

+35
-35
lines changed

4 files changed

+35
-35
lines changed

contrib/examples/walkthrough/ups-binding.yaml renamed to contrib/examples/walkthrough/ups-instance-credential.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: servicecatalog.k8s.io/v1alpha1
22
kind: ServiceInstanceCredential
33
metadata:
4-
name: ups-binding
4+
name: ups-instance-credential
55
namespace: test-ns
66
spec:
77
instanceRef:

contrib/jenkins/test_walkthrough.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -175,37 +175,37 @@ wait_for_expected_output -e 'ProvisionedSuccessfully' \
175175

176176
echo 'Binding to instance...'
177177

178-
kubectl --context=service-catalog create -f "${ROOT}/contrib/examples/walkthrough/ups-binding.yaml" \
179-
|| error_exit 'Error when creating ups-binding.'
178+
kubectl --context=service-catalog create -f "${ROOT}/contrib/examples/walkthrough/ups-instance-credential.yaml" \
179+
|| error_exit 'Error when creating ups-instance-credential.'
180180

181181
wait_for_expected_output -e 'InjectedBindResult' \
182-
kubectl --context=service-catalog get serviceinstancecredentials -n test-ns ups-binding -o yaml \
182+
kubectl --context=service-catalog get serviceinstancecredentials -n test-ns ups-instance-credential -o yaml \
183183
|| {
184-
kubectl --context=service-catalog get serviceinstancecredentials -n test-ns ups-binding -o yaml
185-
error_exit 'Did not receive expected condition when injecting ups-binding.'
184+
kubectl --context=service-catalog get serviceinstancecredentials -n test-ns ups-instance-credential -o yaml
185+
error_exit 'Did not receive expected condition when injecting ups-instance-credential.'
186186
}
187187

188-
[[ "$(kubectl --context=service-catalog get serviceinstancecredentials -n test-ns ups-binding -o yaml)" == *"status: \"True\""* ]] \
188+
[[ "$(kubectl --context=service-catalog get serviceinstancecredentials -n test-ns ups-instance-credential -o yaml)" == *"status: \"True\""* ]] \
189189
|| {
190-
kubectl --context=service-catalog get serviceinstancecredentials -n test-ns ups-binding -o yaml
191-
error_exit 'Failure status reported when attempting to inject ups-binding.'
190+
kubectl --context=service-catalog get serviceinstancecredentials -n test-ns ups-instance-credential -o yaml
191+
error_exit 'Failure status reported when attempting to inject ups-instance-credential.'
192192
}
193193

194-
[[ "$(kubectl get secrets -n test-ns)" == *ups-binding* ]] \
195-
|| error_exit '"ups-binding" not present when listing secrets.'
194+
[[ "$(kubectl get secrets -n test-ns)" == *ups-instance-credential* ]] \
195+
|| error_exit '"ups-instance-credential" not present when listing secrets.'
196196

197197
# TODO: TPR deletion currently is buggy; only delete if using an etcd-backed API server
198198
if [[ "${WITH_TPR}" != true ]]; then
199199
#Unbind from the instance
200200

201201
echo 'Unbinding from instance...'
202202

203-
kubectl --context=service-catalog delete -n test-ns serviceinstancecredentials ups-binding \
204-
|| error_exit 'Error when deleting ups-binding.'
203+
kubectl --context=service-catalog delete -n test-ns serviceinstancecredentials ups-instance-credential \
204+
|| error_exit 'Error when deleting ups-instance-credential.'
205205

206-
wait_for_expected_output -x -e "ups-binding" \
206+
wait_for_expected_output -x -e "ups-instance-credential" \
207207
kubectl get secrets -n test-ns \
208-
|| error_exit '"ups-binding" secret not removed upon deleting ups-binding.'
208+
|| error_exit '"ups-instance-credential" secret not removed upon deleting ups-instance-credential.'
209209

210210
# Deprovision the instance
211211

docs/walkthrough.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ managed service to make that available for use by one or more in-cluster
134134
applications. When a new `ServiceInstance` resource is created, the service catalog
135135
controller will connect to the appropriate broker server and instruct it to
136136
provision the service instance.
137-
- `ServiceInstanceCredential`: A "binding" to an `ServiceInstance`. These are created by cluster users
138-
who wish for their applications to make use of a service `ServiceInstance`. Upon
139-
creation, the service catalog controller will create a Kubernetes `Secret`
140-
containing connection details and credentials for the service instance. Such
141-
`Secret`s can be mounted into pods as usual.
137+
- `ServiceInstanceCredential`: Access credential to a `ServiceInstance`. These
138+
are created by cluster users who wish for their applications to make use of a
139+
service `ServiceInstance`. Upon creation, the service catalog controller will
140+
create a Kubernetes `Secret` containing connection details and credentials for
141+
the service instance. Such `Secret`s can be mounted into pods as usual.
142142

143143
These concepts and resources are the building blocks of the service catalog.
144144

@@ -384,18 +384,18 @@ status:
384384
## Step 9 - ServiceInstanceCredential to the ServiceInstance
385385

386386
Now that our `ServiceInstance` has been created, we can bind to it. To accomplish this,
387-
we will create a [`ServiceInstanceCredential`](../contrib/examples/walkthrough/ups-binding.yaml)
387+
we will create a [`ServiceInstanceCredential`](../contrib/examples/walkthrough/ups-instance-credential.yaml)
388388
resource.
389389

390390
```console
391-
kubectl --context=service-catalog create -f contrib/examples/walkthrough/ups-binding.yaml
391+
kubectl --context=service-catalog create -f contrib/examples/walkthrough/ups-instance-credential.yaml
392392
```
393393

394394

395395
That command should output:
396396

397397
```console
398-
binding "ups-binding" created
398+
binding "ups-instance-credential" created
399399
```
400400

401401
After the `ServiceInstanceCredential` resource is created, the service catalog controller will
@@ -405,13 +405,13 @@ service catalog controller will insert into a Kubernetes `Secret`. We can check
405405
the status of this process like so:
406406

407407
```console
408-
kubectl --context=service-catalog get bindings -n test-ns ups-binding -o yaml
408+
kubectl --context=service-catalog get bindings -n test-ns ups-instance-credential -o yaml
409409
```
410410

411411
_NOTE: if using the API aggregator, you will need to use the fully qualified name of the binding resource due to [issue 1008](https://github.com/kubernetes-incubator/service-catalog/issues/1008):_
412412

413413
```console
414-
kubectl get bindings.v1alpha1.servicecatalog.k8s.io -n test-ns ups-binding -o yaml
414+
kubectl get bindings.v1alpha1.servicecatalog.k8s.io -n test-ns ups-instance-credential -o yaml
415415
```
416416

417417
We should see something like:
@@ -423,16 +423,16 @@ metadata:
423423
creationTimestamp: 2017-03-07T01:44:36Z
424424
finalizers:
425425
- kubernetes
426-
name: ups-binding
426+
name: ups-instance-credential
427427
namespace: test-ns
428428
resourceVersion: "29"
429-
selfLink: /apis/servicecatalog.k8s.io/v1alpha1/namespaces/test-ns/bindings/ups-binding
429+
selfLink: /apis/servicecatalog.k8s.io/v1alpha1/namespaces/test-ns/bindings/ups-instance-credential
430430
uid: 9eb2cdce-02d7-11e7-8edb-0242ac110005
431431
spec:
432432
instanceRef:
433433
name: ups-instance
434434
externalID: b041db94-a5a0-41a2-87ae-1025ba760918
435-
secretName: ups-binding
435+
secretName: ups-instance-credential
436436
status:
437437
conditions:
438438
- message: Injected bind result
@@ -447,24 +447,24 @@ see a new one:
447447

448448
```console
449449
kubectl get secrets -n test-ns
450-
NAME TYPE DATA AGE
451-
default-token-3k61z kubernetes.io/service-account-token 3 29m
452-
ups-binding Opaque 2 1m
450+
NAME TYPE DATA AGE
451+
default-token-3k61z kubernetes.io/service-account-token 3 29m
452+
ups-instance-credential Opaque 2 1m
453453
```
454454

455-
Notice that a new `Secret` named `ups-binding` has been created.
455+
Notice that a new `Secret` named `ups-instance-credential` has been created.
456456

457457
## Step 10 - Unbinding from the ServiceInstance
458458

459459
Now, let's unbind from the instance. To do this, we simply *delete* the
460460
`ServiceInstanceCredential` resource that we previously created:
461461

462462
```console
463-
kubectl --context=service-catalog delete -n test-ns bindings ups-binding
463+
kubectl --context=service-catalog delete -n test-ns bindings ups-instance-credential
464464
```
465465

466466
Checking the `Secret`s in the `test-ns` namespace, we should see that
467-
`ups-binding` has also been deleted:
467+
`ups-instance-credential` has also been deleted:
468468

469469
```console
470470
kubectl get secrets -n test-ns

test/e2e/walkthrough.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ var _ = framework.ServiceCatalogDescribe("walkthrough", func() {
6464
serviceclassName = "user-provided-service"
6565
testns = "test-ns"
6666
instanceName = "ups-instance"
67-
bindingName = "ups-binding"
67+
bindingName = "ups-instance-credential"
6868
)
6969

7070
//Broker and ServiceClass should become ready

0 commit comments

Comments
 (0)