Files
kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue a9ac50051c Merge pull request #41924 from ymqytw/change_saveConfig
Automatic merge from submit-queue (batch tested with PRs 41984, 41682, 41924, 41928)

make edit respect --save-config

New behavior:

edit:
1) the flag is set to true: it will create or update the last-applied-config annotation
2) the flag is set to false or is unspecified: NOP

replace:
1) If saveConfig is true, create or update the annotation.
2) If saveConfig is false and the local config file doesn't have the annotation, we save the annotation from the live object if there is one (Try to not surprise the users).
3) If saveConfig is false and the local config file has the annotation, we use the annotation in the config file.
4) Same behavior for force replacing

fixes #40626

```release-note
stop kubectl edit from updating the last-applied-configuration annotation when --save-config is unspecified or false.
```

@pwittrock @liggitt 

This is a bug fix that prevented `edit` from being respected by `apply`
2017-03-02 10:51:16 -08:00
..
2017-02-23 00:28:32 -05:00
2017-02-25 23:40:50 +08:00
2016-10-29 20:24:54 -07:00
2017-02-06 22:32:01 -08:00
2017-02-25 23:40:50 +08:00
2017-02-27 13:34:07 -08:00
2017-02-27 13:34:07 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-25 23:40:50 +08:00
2017-02-06 22:32:01 -08:00
2017-01-26 19:59:25 -05:00
2017-02-06 22:32:01 -08:00
2017-02-27 09:20:49 -05:00
2017-02-06 22:32:01 -08:00
2017-02-25 23:40:50 +08:00
2017-01-30 12:46:59 -05:00
2017-02-25 23:40:50 +08:00
2017-02-25 23:40:50 +08:00
2017-02-06 22:32:01 -08:00
2017-02-22 09:27:42 -05:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00