Mengqi Yu
3d4f816787
port some useful diff utils
2018-02-21 10:30:39 -08:00
Mengqi Yu
ada76c11a9
add test for noop option
2018-02-21 10:30:39 -08:00
Mengqi Yu
138fe78abf
support noop option for kinflate inflate
2018-02-21 10:30:39 -08:00
Jingfang Liu
0b1416cdd5
move error types into internal error package
2018-02-20 15:23:55 -08:00
Jingfang Liu
a07208518f
Create different internal error types
2018-02-20 14:58:12 -08:00
Antoine Pelisse
7448de587a
kinflate: Add timeout context to Command secret
...
Commands ran to create secrets will timeout after 5 minutes. Also adds a
test to make sure we fail correctly if the command fails.
2018-02-16 16:01:00 -08:00
Antoine Pelisse
76cd598602
Rename "Secret" to "SecretGenetor"
2018-02-16 16:01:00 -08:00
Antoine Pelisse
6f080f0f11
kinflate: Re-merge "GenericSecret" and "TLSSecret"
...
Since we have a new way to create generic secrets that also makes sense
with TLS secrets, let's just use that one method for all types of
secrets.
2018-02-16 16:00:39 -08:00
Antoine Pelisse
4cb628bda9
kinflate: Generate secrets with commands
...
Remove the DataSources for secret, and generate the content of secrets
with the output of commands. This allows more dynamic encrypted/secure
secrets that are not just saved plain in the repository.
2018-02-16 15:57:25 -08:00
Mengqi Yu
bf5929ef65
better integration test
2018-02-16 11:38:45 -08:00
Sunil Arora
8f0ccc0bf7
kinflate: removed non-existing resources from manifest file
...
`kinflate init` generates a manifest file which contains
non-existent resources in `resources` section. This change
keeps those resources in commented form so that 'kinflate inflate'
doesnt barf at the user.
2018-02-16 09:30:53 -08:00
Sean Sullivan
f25986dd97
New structure (ManifestError) to encasulate info needed for descriptive errors
2018-02-15 13:02:58 -08:00
Sean Sullivan
01ea12b4fb
Checkpoint including new Loader class and minor fixes.
2018-02-14 14:52:33 -08:00
Jingfang Liu
cc14158a3e
fix filesystem tech debt and improve the error message
2018-02-13 16:41:34 -08:00
k8s-ci-robot
b0567ec0ae
Merge pull request #280 from seans3/master
...
More specific error messages for missing/bad manifest file
2018-02-13 13:08:51 -08:00
Mengqi Yu
fb5b445baf
add NOP transformer
2018-02-12 17:41:31 -08:00
Sean Sullivan
3e5a79b1cb
More specific error messages for missing/bad manifest file
2018-02-12 16:56:22 -08:00
Mengqi Yu
316d259564
error out when a patch has not matching object
2018-02-12 16:29:42 -08:00
k8s-ci-robot
f6db52a337
Merge pull request #274 from mengqiy/kinflate_tree
...
Kinflate use manifest tree builder
2018-02-12 15:46:50 -08:00
Mengqi Yu
af383be150
address comments
2018-02-12 15:33:30 -08:00
yank1
e94e4d5c46
fix a typo init.go
2018-02-11 14:24:57 +08:00
Mengqi Yu
d55a17cdcc
switch kinflate to use manifest tree build
2018-02-09 18:20:48 -08:00
Mengqi Yu
33db5d53c6
change overlay applier as a transformer
2018-02-09 18:20:07 -08:00
Mengqi Yu
2f7b478a21
address comments
2018-02-09 10:28:54 -08:00
Mengqi Yu
d19bd04960
add tree builder
2018-02-08 15:13:01 -08:00
Mengqi Yu
c7739649af
move cm & secret util
2018-02-08 15:13:01 -08:00
Mengqi Yu
73aad712c7
util to merge 2 maps
2018-02-08 13:58:58 -08:00
Sunil Arora
c738ff9a19
kinflate: added set subcommand
2018-02-07 12:39:13 -08:00
Sunil Arora
89598b9b11
kinflate: implemented 'add' subcommand
2018-02-07 10:13:23 -08:00
ymqytw
021e6bd569
fix wrong paths of name reference transformer config
2018-02-06 17:10:22 -08:00
k8s-ci-robot
087c096eff
Merge pull request #259 from seans3/tls-secret
...
Kinflate add secret tls command.
2018-02-06 15:40:44 -08:00
Jingfang Liu
932009c951
Change command setprefixname to setnameprefix
2018-02-06 15:00:50 -08:00
Sean Sullivan
5e9c1e231d
Kinflate add secret tls command.
2018-02-06 12:01:40 -08:00
Sean Sullivan
f9f329ba29
Kinflate add generic secret command.
2018-02-06 11:42:40 -08:00
k8s-ci-robot
9b8afdfec9
Merge pull request #256 from droot/add-configmap
...
Add configmap
2018-02-05 20:12:08 -08:00
Sunil Arora
5518d5dfb9
kinflate: adds 'configmap' command
...
This change contributes configmap command to add a configmap to the
manifest.
2018-02-05 16:20:22 -08:00
Jeffrey Regan
f5855945de
add setprefixname command
2018-02-05 13:23:11 -08:00
Sunil Arora
2325bb8957
fixed manifest loader test
2018-02-05 10:48:17 -08:00
Antoine Pelisse
bbb1fd0b65
kinflate: Create manifest loader
...
The manifest loader is used to read and write a manifest file to/from
disk.
2018-02-05 10:48:17 -08:00
k8s-ci-robot
1f4c1efbdf
Merge pull request #240 from apelisse/apelisse-droot-seans3
...
kinflate: Manifest type improvements
2018-02-05 10:28:11 -08:00
k8s-ci-robot
d9ff92051a
Merge pull request #251 from hangyan/function-name-typo
...
Fix typo in function name and comment
2018-02-05 09:37:11 -08:00
Hang Yan
fd1e5f18b5
Fix typo in function name and comment
2018-02-05 17:31:54 +08:00
Antoine Pelisse
b6e4fe00ee
kinflate: Update Manifest type for configmap and secrets
...
- Generic type is now named DataSources to remove ambiguity,
- NamePrefix is now just Name, since that's what it is,
- Secret have been split in GenericSecret and TLSSecret,
The code, test and examples have been updated to work with these new
types.
2018-02-02 21:31:26 -08:00
Sunil Arora
33bc00af62
Kinflate: added fs as a parameter
2018-02-02 17:02:17 -08:00
Sunil Arora
4a03e39222
Kinflate: refactoring inputs flags forn config/map to common datastructure
2018-02-02 17:02:17 -08:00
ymqytw
e5ff878c1e
fix a bug of nameprefix lost after applying patch
2018-02-02 16:45:19 -08:00
ymqytw
3d138d072a
all Run functions should not depend on Cobra
2018-02-02 13:34:53 -08:00
ymqytw
daa4a7f1d2
add a constructor for multitransformer
2018-02-02 09:43:08 -08:00
ymqytw
96624740b2
restructure the code a bit
2018-02-01 17:25:43 -08:00
ymqytw
3f225f926b
multitransformer
2018-02-01 17:25:43 -08:00