guineveresaenger
b3993dc874
Adds starter validation framework for semantic validation of inputs.
2018-08-22 18:20:51 +02:00
guineveresaenger
11c04dd6c4
Removes semantic validation from addmetadata.go and tests.
...
Due to moving some input parsing to the Validate method, it was renamed to reflect this additional purpose.
Tests were removed where appropriate.
2018-08-22 18:15:34 +02:00
guineveresaenger
31dd8fc5b1
Restructured tests
2018-08-16 13:32:42 -07:00
guineveresaenger
77f4811779
Tests test Validate function
2018-08-16 02:36:11 -07:00
guineveresaenger
524d593c5c
Separate functions for RunnAddLabel and RunAddAnnotation
2018-08-15 03:51:56 -07:00
guineveresaenger
3b644474c4
Parse data into string map for easy access in RunAddMetadata
2018-08-15 03:13:03 -07:00
guineveresaenger
6a2786a5c4
Remove Complete function and references
2018-08-13 07:49:51 -07:00
guineveresaenger
924aa6fb29
Use iota declaration for constants and implements string method for KindOfAdd metadata
2018-08-13 07:46:06 -07:00
guineveresaenger
187415430f
Removed individual files in favor of combined metadata file
2018-07-18 17:09:41 -07:00
guineveresaenger
afac2fb46a
Uses single file for both addLabel and addAnnotation commands, as the code is nearly identical. Tests included.
2018-07-18 17:09:41 -07:00
guineveresaenger
20fd433f75
Add tests
2018-07-18 17:09:41 -07:00
guineveresaenger
1e3824057b
Implements labels and annotations as subcommands of edit
2018-07-18 17:09:41 -07:00
Jingfang Liu
81f246ed60
skip adding namespace to CustomResourceDefinitions
2018-07-17 13:18:43 -07:00
Jingfang Liu
4325401fe7
Add namespace transformation for subjects.namespace in ClusterRoleBinding
2018-07-17 13:10:51 -07:00
Maximilian Gaß
9674fd12b2
Run namehash transformer before resolving names for refvars
2018-07-13 09:45:48 +02:00
Jingfang Liu
2377902a0b
Merge pull request #145 from babiel/pod-affinity-label-transformer
...
Add common labels to pod affinity/anti-affinity label selector
2018-07-12 15:41:58 -07:00
Jingfang Liu
1dbde0b085
Merge pull request #140 from babiel/add-networkpolicy-to-labels
...
Add NetworkPolicy to label transformer
2018-07-12 15:41:51 -07:00
George Angel
d4c7131f8f
fix linter dupl errors
2018-07-11 22:18:49 +01:00
George Angel
aa729229e2
Interpret projected configMap volume names
...
Append hashes to configMap names under the projected configMap volume,
for Kind: Deployment and StatefulSet
2018-07-11 10:30:31 +01:00
ryane
36772aac89
add PersistentVolumeClaim to name reference transformer
...
fixes #149
2018-07-03 10:16:58 -04:00
Maximilian Gaß
7755d6cac2
Add common labels to pod affinity/anti-affinity label selector
2018-07-02 16:02:11 +02:00
Jingfang Liu
2a3f09a2f0
Add integration test for glob support
2018-06-27 14:48:50 -07:00
Jingfang Liu
6392e6629f
Add glob support
2018-06-27 10:54:12 -07:00
Maximilian Gaß
0c260ef804
Add NetworkPolicy to label transformer
2018-06-26 17:18:50 +02:00
Maximilian Gaß
2a06a174e8
Add CronJob to refvars transformer
2018-06-26 12:20:52 +02:00
fanzhangio
6a67183ed7
Enhancement for format error message
...
- add yaml format error handler
- silent usage when build command fails
2018-06-25 07:35:43 -07:00
Jingfang Liu
a38befdaa1
Merge pull request #132 from Liujingfang1/order
...
correct ordering of the k8s objects
2018-06-22 10:33:31 -07:00
Jingfang Liu
0312cdf677
Merge pull request #130 from sethpollack/image-pull-secret
...
add imagePullSecrets namerefs
2018-06-22 10:22:33 -07:00
Jingfang Liu
991ffbbdfc
populate the map from a slice
2018-06-22 10:19:41 -07:00
Seth Pollack
bbd29d9dc1
add test
2018-06-21 23:17:03 -04:00
Jingfang Liu
28953e03a0
Merge pull request #120 from guineveresaenger/edit-add-base
...
New command: kustomize edit add base
2018-06-21 16:54:15 -07:00
guineveresaenger
37489ec2e9
Adds ability to add multiple base directories to kustomization
2018-06-21 16:39:46 -07:00
Jingfang Liu
636ab874eb
update failed test
2018-06-21 16:36:27 -07:00
Jingfang Liu
90d16c2377
correct ordering of the k8s objects:
...
NameSpace, CRD, ServiceAccount, Role, ClusterRole, RoleBinding,
ClusterRoleBinding
2018-06-21 16:21:31 -07:00
Seth Pollack
5d24dda28a
add imagePullSecrets namerefs
2018-06-20 23:23:31 -04:00
Jingfang Liu
dec5109e31
Merge pull request #127 from Liujingfang1/master
...
remove extra package comment on crds
2018-06-20 13:23:41 -07:00
Jingfang Liu
cc8690381c
remove extra package comment on crds
2018-06-20 13:22:17 -07:00
Jingfang Liu
809d5b1fe2
put namespace objects first in the output
2018-06-19 15:44:33 -07:00
Jingfang Liu
38b4365ab3
Merge pull request #121 from traherom/master
...
Jobs do not create a selector if not already present
2018-06-19 14:22:15 -07:00
Jingfang Liu
d865300fdb
Merge pull request #105 from Liujingfang1/crdsupport
...
Add support for CRDs
2018-06-19 12:04:35 -07:00
Jingfang Liu
e2677cdc8a
Merge pull request #123 from Liujingfang1/master
...
Add variable reference to pod command,args,env
2018-06-19 12:04:06 -07:00
Jingfang Liu
ea00134776
Update pathconfigs library
...
implement CRD support and add unit tests
Add integration test for crd support
address comments
2018-06-19 11:45:53 -07:00
Jingfang Liu
ad3cd47c25
Add variable reference to pod command,args,env
2018-06-19 11:25:58 -07:00
guineveresaenger
a1dcf3386b
Adds kustomize edit add base command
...
This pull request adds support for editing the kustomization.yaml in the current directory with a base.
2018-06-19 10:09:13 -07:00
Ryan Morehart
50c40eb80c
CronJob transformation fixed
...
- no longer add labels in an invalid location (#116 )
- only have selector added it already present
2018-06-19 06:14:05 -06:00
Ryan Morehart
398ceb0a92
Jobs do not create a selector if not already present
2018-06-18 17:09:23 -06:00
Oleg Atamanenko
f557841e54
Enable unparam linter and fix issues
2018-06-18 14:49:57 -04:00
Jingfang Liu
0617a283a0
Merge pull request #111 from Liujingfang1/master
...
Add variable reference to container env
2018-06-15 11:20:25 -07:00
Oleg Atamanenko
6fd0330b80
Add gometalinter to pre-commit hook
...
Enable varcheck and fix found issues
Add ineffassign to list of checks and fix found issues
Added nakedret and fixed found issues
Add interfacer check and fix found issue
Add lll and fix found issues
Add deadcode linter, remove unused code
2018-06-14 20:55:20 -04:00
Jingfang Liu
09ab2bb5c0
Add variable reference to container env
2018-06-14 13:38:58 -07:00