mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 21:50:05 +00:00
Merge pull request #22810 from amygdala/cassandra2
Automatic merge from submit-queue phase 2 of cassandra example overhaul Here's the next iteration in overhauling this example, towards https://github.com/kubernetes/kubernetes/issues/20961. This removes the pod adoption part, but doesn't (yet) otherwise change any of the resources used. It also includes some README cleanup, and removes some explicit specification of labels in the rc yaml. This PR doesn't yet add any commentary on how we're using the seed provider (re: https://github.com/kubernetes/kubernetes/issues/20961#issuecomment-190405959 etc.). Maybe we should add that. Also: LMK if this PR should include any changes to the links out to the docs. cc @bgrant0607 @johndmulhausen
This commit is contained in:
@@ -1683,9 +1683,9 @@ __EOF__
|
||||
#####################
|
||||
|
||||
kube::log::status "Testing resource aliasing"
|
||||
kubectl create -f examples/cassandra/cassandra.yaml "${kube_flags[@]}"
|
||||
kubectl create -f examples/cassandra/cassandra-controller.yaml "${kube_flags[@]}"
|
||||
kubectl create -f examples/cassandra/cassandra-service.yaml "${kube_flags[@]}"
|
||||
kube::test::get_object_assert "all -l'app=cassandra'" "{{range.items}}{{range .metadata.labels}}{{.}}:{{end}}{{end}}" 'cassandra:cassandra:'
|
||||
kube::test::get_object_assert "all -l'app=cassandra'" "{{range.items}}{{range .metadata.labels}}{{.}}:{{end}}{{end}}" 'cassandra:cassandra:cassandra:cassandra:'
|
||||
kubectl delete all -l app=cassandra "${kube_flags[@]}"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user