• Kubernetes Submit Queue's avatar
    Merge pull request #68069 from apelisse/kubectl-apply-dryrun · 058b26f3
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.
    
    Add --server-dry-run flag to `kubectl apply`
    
    - Adds the flag
    - changes the helper so that we can pass options for patch,
    - Adds a test to make sure it doesn't change the object
    
    **What this PR does / why we need it**:
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Fixes #
    
    **Special notes for your reviewer**:
    
    **Release note**:
    ```release-note
    Add new `--server-dry-run` flag to `kubectl apply` so that the request will be sent to the server with the dry-run flag (alpha), which means that changes won't be persisted.
    ```
    058b26f3
Name
Last commit
Last update
..
BUILD Loading commit data...
OWNERS Loading commit data...
apply.sh Loading commit data...
apps.sh Loading commit data...
authorization.sh Loading commit data...
batch.sh Loading commit data...
certificate.sh Loading commit data...
core.sh Loading commit data...
crd.sh Loading commit data...
create.sh Loading commit data...
diff.sh Loading commit data...
discovery.sh Loading commit data...
generic-resources.sh Loading commit data...
get.sh Loading commit data...
initializers.sh Loading commit data...
kubeconfig.sh Loading commit data...
legacy-script.sh Loading commit data...
node-management.sh Loading commit data...
old-print.sh Loading commit data...
plugins.sh Loading commit data...
proxy.sh Loading commit data...
rbac.sh Loading commit data...
request-timeout.sh Loading commit data...
run.sh Loading commit data...
save-config.sh Loading commit data...
storage.sh Loading commit data...
template-output.sh Loading commit data...
version.sh Loading commit data...