Skip to content

Commit

Permalink
Merge pull request kubernetes#14623 from linzichang/fixup-cassandra
Browse files Browse the repository at this point in the history
Auto commit by PR queue bot
  • Loading branch information
k8s-merge-robot committed Nov 25, 2015
2 parents da8daaa + 51dd067 commit 3136aca
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 20 deletions.
18 changes: 7 additions & 11 deletions examples/cassandra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,14 @@ apiVersion: v1
kind: ReplicationController
metadata:
labels:
name: cassandra
app: cassandra
name: cassandra
spec:
replicas: 1
selector:
name: cassandra
template:
metadata:
labels:
name: cassandra
app: cassandra
spec:
containers:
- command:
Expand Down Expand Up @@ -122,13 +120,13 @@ apiVersion: v1
kind: Service
metadata:
labels:
name: cassandra
app: cassandra
name: cassandra
spec:
ports:
- port: 9042
selector:
name: cassandra
app: cassandra
```

[Download example](cassandra-service.yaml?raw=true)
Expand Down Expand Up @@ -165,7 +163,7 @@ kind: Endpoints
metadata:
creationTimestamp: 2015-06-21T22:34:12Z
labels:
name: cassandra
app: cassandra
name: cassandra
namespace: default
resourceVersion: "944373"
Expand Down Expand Up @@ -200,16 +198,14 @@ apiVersion: v1
kind: ReplicationController
metadata:
labels:
name: cassandra
app: cassandra
name: cassandra
spec:
replicas: 1
selector:
name: cassandra
template:
metadata:
labels:
name: cassandra
app: cassandra
spec:
containers:
- command:
Expand Down
6 changes: 2 additions & 4 deletions examples/cassandra/cassandra-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ apiVersion: v1
kind: ReplicationController
metadata:
labels:
name: cassandra
app: cassandra
name: cassandra
spec:
replicas: 1
selector:
name: cassandra
template:
metadata:
labels:
name: cassandra
app: cassandra
spec:
containers:
- command:
Expand Down
4 changes: 2 additions & 2 deletions examples/cassandra/cassandra-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ apiVersion: v1
kind: Service
metadata:
labels:
name: cassandra
app: cassandra
name: cassandra
spec:
ports:
- port: 9042
selector:
name: cassandra
app: cassandra
2 changes: 1 addition & 1 deletion examples/cassandra/cassandra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Pod
metadata:
labels:
name: cassandra
app: cassandra
name: cassandra
spec:
containers:
Expand Down
4 changes: 2 additions & 2 deletions hack/test-cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1217,8 +1217,8 @@ __EOF__
kubectl create -f examples/cassandra/cassandra-controller.yaml "${kube_flags[@]}"
kubectl scale rc cassandra --replicas=1 "${kube_flags[@]}"
kubectl create -f examples/cassandra/cassandra-service.yaml "${kube_flags[@]}"
kube::test::get_object_assert "all -l'name=cassandra'" "{{range.items}}{{range .metadata.labels}}{{.}}:{{end}}{{end}}" 'cassandra:cassandra:cassandra:'
kubectl delete all -l name=cassandra "${kube_flags[@]}"
kube::test::get_object_assert "all -l'app=cassandra'" "{{range.items}}{{range .metadata.labels}}{{.}}:{{end}}{{end}}" 'cassandra:cassandra:cassandra:'
kubectl delete all -l app=cassandra "${kube_flags[@]}"


###########
Expand Down

0 comments on commit 3136aca

Please sign in to comment.