mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-27 05:04:52 +00:00
Move diff
command to root rather than alpha
New command is now `kubectl diff` rather than `kubectl alpha diff` since it's moving out of alpha soon, and will be using dry-run apply to produce the diff rather than the custom merge logic.
This commit is contained in:
@@ -18,21 +18,21 @@ set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
# Runs tests for kubectl alpha diff
|
||||
# Runs tests for kubectl diff
|
||||
run_kubectl_diff_tests() {
|
||||
set -o nounset
|
||||
set -o errexit
|
||||
|
||||
create_and_use_new_namespace
|
||||
kube::log::status "Testing kubectl alpha diff"
|
||||
kube::log::status "Testing kubectl diff"
|
||||
|
||||
# Test that it works when the live object doesn't exist
|
||||
output_message=$(kubectl alpha diff -f hack/testdata/pod.yaml)
|
||||
output_message=$(kubectl diff -f hack/testdata/pod.yaml)
|
||||
kube::test::if_has_string "${output_message}" 'test-pod'
|
||||
|
||||
kubectl apply -f hack/testdata/pod.yaml
|
||||
|
||||
output_message=$(kubectl alpha diff -f hack/testdata/pod-changed.yaml)
|
||||
output_message=$(kubectl diff -f hack/testdata/pod-changed.yaml)
|
||||
kube::test::if_has_string "${output_message}" 'k8s.gcr.io/pause:3.0'
|
||||
|
||||
kubectl delete -f hack/testdata/pod.yaml
|
||||
|
Reference in New Issue
Block a user