-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When working with `kubectl` and Kubernetes YAML files, an update to a configuration can result in an additional metadata header, which stores the previous configuration. Since this is a string containing JSON, it is not easy to spot the difference immediatly. Add new command calle `last-applied`, which takes in one location argument, for example Stdin (`-`) or a file location. In case the well known metadata header is present, a difference report of the previous configuration and the current configuration is created. Refactor report options into a seperate variable to that it can be shared between different commands. Add function to apply report option related flags to a command. Rename `ShowBanner` to `OmitHeader` to harmonise the flag settings. Bump `ytbx` to latest available version to get the `Delete` function.
- Loading branch information
1 parent
e6f4383
commit 40b610a
Showing
9 changed files
with
380 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.