Yujun Zhang
2490e605c3
Updates in image transformer ( #911 )
...
- Decouple `mutateImage` from `updateContainers` to be reused as `mutateFunc`
- Ignore default image transform error for CRD which may contain non-array type `containers` field
Related to #890 , #904 , fixes #890
2019-03-29 13:11:07 -07:00
Jingfang Liu
21a0cba43e
fix the regression of building remote url ( #935 )
2019-03-29 13:10:11 -07:00
Kubernetes Prow Robot
42d9287985
Merge pull request #931 from michaelheyvaert/fix-cronjob-projected-volume-namerefs
...
fix configmap/secret name references for cronjobs with projected volumes
2019-03-29 09:28:23 -07:00
Michael Heyvaert
4848987a1f
fix configmap/secret name references for cronjobs with projected volumes
2019-03-29 09:00:00 +01:00
Jeffrey Regan
99391157ec
Add goplugin KV generator example.
2019-03-28 09:55:44 -07:00
Jeffrey Regan
267eec5509
Fix 918
2019-03-26 10:47:31 -07:00
Jeffrey Regan
9a12b55139
Move accumulator code to its own package.
2019-03-26 09:53:52 -07:00
Kubernetes Prow Robot
f8cffef977
Merge pull request #889 from sethpollack/edit_add_plugins
...
update edit add secrets/configmaps to use plugins
2019-03-21 13:51:37 -07:00
Seth Pollack
822420e4ab
fix mergeFlags
2019-03-21 14:58:06 -04:00
Seth Pollack
b60fca05bd
update edit add secrets/configmaps to use plugins
2019-03-20 09:24:10 -04:00
Jingfang Liu
bfc3655bad
skip adding namespace when the object is empty
2019-03-19 15:34:29 -07:00
Kubernetes Prow Robot
2c0c0c9497
Merge pull request #841 from yujunz/transformers/image
...
Support custom configuration for image transformer
2019-03-19 14:08:22 -07:00
Seth Pollack
9fc4d388ce
add builtin envfiles plugin
2019-03-18 13:58:38 -04:00
Jeffrey Regan
3a7c8a03f4
Make builtin the default pluginType
2019-03-18 10:21:24 -07:00
Seth Pollack
dd59eb38d0
add test case
2019-03-17 20:44:07 -04:00
Seth Pollack
a8465c95e1
add builtin files plugin
2019-03-17 17:22:52 -04:00
Seth Pollack
7764dee59d
Merge branch 'master' into builtins
2019-03-17 17:01:06 -04:00
jregan
103c1b3a4f
Put goplugins behind flag.
2019-03-17 13:39:48 -07:00
Kubernetes Prow Robot
f09bbff35c
Merge pull request #884 from vreon/fix-varrefs
...
Fix incorrect and missing varReferences
2019-03-17 06:12:56 -07:00
Yujun Zhang
e6c1b14108
Add test for transformers/image custom config
2019-03-17 16:59:41 +08:00
Yujun Zhang
7130e3ff1d
Leave defautconfig empty for images
...
`containers` and `initContainers` of *ANY* kind in *ANY*
path are builtin supported in code
2019-03-17 16:43:31 +08:00
Yujun Zhang
abf538d80d
Keep backward compatibility for image transformer
2019-03-17 16:43:31 +08:00
Yujun Zhang
f311ba8d4f
Support custom config for image transformer
2019-03-17 16:43:31 +08:00
Yujun Zhang
3e85c4589b
Load default config for image transformer
2019-03-17 16:43:31 +08:00
Yujun Zhang
d0cf047381
Convert image transformer test to a more readable format
2019-03-17 16:41:42 +08:00
Jesse Dubay
31091a8df2
Fix missing varrefs for CronJob, Job, ReplicaSet
2019-03-16 19:15:56 -07:00
Jesse Dubay
e207ae4c01
Fix incorrect default varrefs for CronJob volumeMounts
2019-03-16 19:12:58 -07:00
Jesse Dubay
3011f18047
Sort default varReference config by kind, path
2019-03-16 19:11:42 -07:00
Seth Pollack
388d5c2d7c
add builtin plugins
2019-03-16 21:21:15 -04:00
Seth Pollack
18f6328284
add secret and configmap generator plugins
2019-03-15 14:28:18 -04:00
jregan
c06b95077d
Secret/configmap factory cleanup.
2019-03-15 09:25:59 -07:00
Yordi Pauptit
62d3200e4f
fix typo in namereference where serviceaccount name would not resolve
2019-03-14 09:36:21 +01:00
Kubernetes Prow Robot
9a419824ae
Merge pull request #874 from CodeLingoBot/rewrite
...
Fix function comments based on best practices from Effective Go
2019-03-12 14:50:39 -07:00
Karen Bradshaw
fa552d7773
fix help msg for set image cmd
2019-03-11 17:23:30 -04:00
Kubernetes Prow Robot
7acbd4d3e0
Merge pull request #870 from YP28/job-initctr-varref
...
Add Job initContainer to varreference config
2019-03-11 10:39:29 -07:00
Yordi Pauptit
f7cd44be42
add job initcontainer to varreference config
2019-03-11 15:13:58 +01:00
CodeLingo Bot
9a4692e6ee
Fix function comments based on best practices from Effective Go
...
Signed-off-by: CodeLingo Bot <bot@codelingo.io >
2019-03-11 00:45:21 +00:00
Yujun Zhang
3a44508d6f
Fix error message
...
Closes #862
2019-03-09 16:43:32 +08:00
mnatsu31
559efd6477
Fix typo in namereference path for cronjobs initContainers.
2019-03-08 13:20:34 +09:00
Philipp Strube
4f429d6b86
Reduce time required for cloning remote bases
...
This commit changes git/cloner.go from cloning the whole history
and then checking out the desired ref to a implementation that
only downloads the history for the desired ref.
It does so by first initializing an empty repository, setting the
source repository as a remote, fetching just the desired ref and
then hard resetting the empty local repo to that ref.
This reduces the time it takes to build the multibases example
as a remote base at ref v2.0.3 from an avg of 8s with the
current implementation to an avg of 2s out of 10 runs each, by
drastically decreasing the data transferred.
The improvement should increase as repositories grow.
2019-03-06 19:31:24 +01:00
Jeff Regan
a6f6514412
Merge pull request #842 from narayanan/annotation-with-colon
...
Fix for #818 - Added support for quoted values
2019-03-04 17:40:12 -08:00
Jeff Regan
31ee38b1a1
Merge pull request #833 from Liujingfang1/crd_errmsg
...
improve error message for loading files listed under crds
2019-03-04 17:36:43 -08:00
Jeff Regan
46c7d6d39a
Merge pull request #832 from Liujingfang1/jsonpatch
...
improve error message in json patch transformer
2019-03-04 17:35:37 -08:00
Jingfang Liu
78cbff16ef
improve error message in json patch transformer
2019-03-04 16:43:24 -08:00
Jingfang Liu
28cefb3bd1
improve error message for loading files listed under crds
2019-03-04 16:32:01 -08:00
Narayanan Singaram
e666630d36
Simplify map conversion logic
2019-03-04 13:50:49 -08:00
Narayanan Singaram
ed2ad860c6
Move trim quotes logic to separate function
2019-03-04 13:19:18 -08:00
Kubernetes Prow Robot
a341c24b2a
Merge pull request #837 from narayanan/image-with-port
...
Fix for #831 - Ignore domain when finding the image tag
2019-03-04 11:21:14 -08:00
Yujun Zhang
45ba785641
Add configmaps test for json string
2019-03-03 10:21:03 +08:00
Narayanan Singaram
ea3d5e68db
Fix for #818 - Added support for quoted values
2019-03-02 12:23:55 -08:00