Commit Graph

524 Commits

Author SHA1 Message Date
Lee Verberne 8408ed1e0b Allow kubectl to attach to an ephemeral container
Kubernetes-commit: 5bd8a045d651005cd8cb1d34d835fdb487651325
2018-04-13 16:55:15 +02:00
knight42 16cef1b254 test(scale): fix tests
Kubernetes-commit: 92c4c2ec72d949c15b5d7c45d91f8e9385873d2f
2019-08-22 17:51:10 +08:00
knight42 8f0927a4b0 fix: patch the Scale subresource if no precondition was given
Kubernetes-commit: c02d141b134d4dee17f7b1e87a65d13ae93d80a3
2019-08-13 10:50:25 +08:00
Tim Allclair f6a4bcd4ac Delete duplicate resource.Quantity.Copy()
Kubernetes-commit: 49f50484b898f55c1db1e25b2a9c2bb76fb45a5d
2019-08-19 17:23:14 -07:00
Justin SB 75fdf29ade Add tests for newly exposed drain code
Kubernetes-commit: 4bba4449ae41a7889ad29da4bd1704ae8d19d126
2019-08-19 16:22:04 -04:00
Justin SB 3989dccd8b Make drain library more reusable
Move more functionality from the kubectl cmd to a package with
fewer dependencies.

Kubernetes-commit: c74f2f6a72bf6fe2718d1e386e4e08747f34fe7b
2019-07-11 13:28:25 -04:00
zouyee 90d15aea78 convert EndpointNamespace showing string rather than pointer
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>

Kubernetes-commit: 96928b9f8b6df751815fe49007cfc73272cc1cdb
2019-08-18 11:37:26 +08:00
j-griffith 5a1a4bbf82 Add DataSource to PVC describe
Kubernetes-commit: 5cc2ea777efaa72dce83ea8c79f73846d1924bfa
2019-04-11 14:14:00 -06:00
AllenZMC 7f06f2436c fix typos in create_namespace.go
Kubernetes-commit: e9da014de9f5a1a717c885d2b5108d0a39acacc1
2019-08-06 20:45:12 +08:00
Sean Sullivan 47bc52d240 Unexport kubectl cmd profiling
Kubernetes-commit: 2621e6a0d61fccdb50df3ec90a84de4ebc3b5de5
2019-08-02 11:46:13 -07:00
Sean Sullivan 315ba50222 Update .golint_failures to reflect code move to staging
Kubernetes-commit: 4e64aaf27e66218571542446498cc47db5df95ff
2019-08-01 15:38:06 -07:00
Sean Sullivan 1cba7858ad Update test data to reflect code move to staging
Kubernetes-commit: 58b59ae4e07f9d3718271a43740a4de9508d8688
2019-08-01 15:17:53 -07:00
Sean Sullivan 1483769081 Update gofmt
Kubernetes-commit: e2cae2344486af198f8ab38e4dd97d4f24dfd190
2019-08-01 13:14:06 -07:00
Sean Sullivan d35a876e3f Update BUILD files reflecting code move to staging
Kubernetes-commit: dc743f7edd1b0104f09ef7dcc1e31c712f850843
2019-08-01 13:12:31 -07:00
Sean Sullivan 5b48717f2d Update import statements to reflect code move
Kubernetes-commit: acece3c2964115a4f29a43e368ad5de59dbbc258
2019-08-01 11:10:05 -07:00
Sean Sullivan c6063dd846 Move pkg/kubectl/cmd/{command} to staging
Kubernetes-commit: 0e0ea523392f1121f61f99ac30a9bc2043eaed90
2019-08-01 11:01:40 -07:00
Jordan Liggitt 3cf08b8454 AdmissionReview: Install/register
Kubernetes-commit: 44930fc939cf990ca9d603ecd86da8a99b2f3a98
2019-07-11 13:28:00 -04:00
wojtekt 228563cf6c Fix selflinks in tests
Kubernetes-commit: bc00248e719012ed354829d6382e4353ea1bc21d
2019-08-01 15:46:46 +02:00
Sean Sullivan 171822aafc Move pkg/kubect/explain to staging
Kubernetes-commit: 1252ab3c983d8e4f1de18ffbf57b799e5882a8d1
2019-07-29 14:57:41 -07:00
Sean Sullivan 8fd13deb58 Refactor pkg/kubectl/{scale.go|rollingupdater.go} for move to staging
Kubernetes-commit: c011df28a468145f76af78fdad87ca3909a8fab2
2019-07-30 15:31:20 -07:00
Sean Sullivan b35b1f8c56 Move pkg/kubectl/cmd/util/openapi/OWNERS to staging
Kubernetes-commit: 8f0127503d06187588fb89a8751ea4f605dbd8b6
2019-07-30 14:09:18 -07:00
Sean Sullivan 401a0f794d Move pkg/kubectl/proxy to staging
Kubernetes-commit: 18c7ee81146c940237a6e2be23da076f165a6bcb
2019-07-25 12:01:00 -07:00
Sean Sullivan 8d3b6cf140 Move pkg/kubectl/generate to staging
Kubernetes-commit: 902789d3752b2bb3eb60d2052083c8605cc6be63
2019-07-27 20:58:04 -07:00
Sean Sullivan f266a308e1 Move pkg/kubectl/polymorphichelpers staging
Kubernetes-commit: 9f3384f02f472b0095fe3675139c08e7aaa7e711
2019-07-27 19:48:15 -07:00
Sean Sullivan 6f46e8d063 Move pkg/kubectl/metricsutil to staging
Kubernetes-commit: a1de0e93315dd56269a859b916ad5689ad4017b4
2019-07-24 20:58:38 -07:00
Sean Sullivan 1919d7fa45 Move pkg/kubectl/cmd/util and subdirs to staging
Kubernetes-commit: 6c96a059dd4a64f1917378b4a0c13899dff31918
2019-07-28 21:29:36 -07:00
Sean Sullivan 72b449405d Move pkg/kubectl/apply and subdirectories to staging
Kubernetes-commit: d730567a74e88f649f930efbf0a81767c4ba9b7d
2019-07-28 18:36:23 -07:00
Sean Sullivan a18ed087c5 Move pkg/kubectl/cmd/util/openapi to staging
Kubernetes-commit: 7a64a66d61648ff0768837593d8066d828af262c
2019-07-25 21:49:49 -07:00
Sean Sullivan 7bc261e021 Move pkg/kubectl/version to staging
Kubernetes-commit: fb44be2d979165fa79748d389aac3f41dee3efbc
2019-07-26 13:19:59 -07:00
Sean Sullivan 26927b48e8 Move pkg/kubectl/describe to staging
Kubernetes-commit: 49f5b423cfb49f409ca71d5a7106dd6083bb6987
2019-07-24 18:16:18 -07:00
Sean Sullivan c1971f30ff Moves pkg/kubectl/util/i18n to staging
Kubernetes-commit: 70984d83858eef3c9c7d046f84d45c53aead673a
2019-07-25 14:44:06 -07:00
Sean Sullivan 200ba9edb8 Move pkg/kubectl/drain to staging
Kubernetes-commit: eaea71cf8449a804c762b96f6d278064c0926ae4
2019-07-24 21:10:54 -07:00
Sean Sullivan 8a70dccb55 Move some pkg/kubectl into polymorphichelpers
Kubernetes-commit: 775b670e8bed17d7085623bf90c84fcfdfbee9ea
2019-07-24 17:07:45 -07:00
Sean Sullivan 0b6b3151ef Move pkg/kubectl/apply.go to staging
Kubernetes-commit: 309de42878f25c8a09b13c4b4ec0488a88da4de3
2019-07-24 20:40:25 -07:00
Sean Sullivan 120b21b11f Move pkg/kubectl/apps to staging
Kubernetes-commit: 1b52c6180baa79e6fcbde911dce830c5266108dd
2019-07-24 20:02:05 -07:00
Sean Sullivan 29453805d1 Move pkg/kubectl/util to staging
Kubernetes-commit: 7083332c634d540c2769b48e32fc4afb8f4f6cd7
2019-07-24 11:59:28 -07:00
Sean Sullivan 76879de3d3 Moved files from pkg/kubectl/scheme to staging
Kubernetes-commit: be3b2cc1a45520cfc6f042cfdbcfb835276dc27b
2019-06-25 22:11:54 -07:00
Ted Yu 91f15560e3 Remove unnecessay call to findNewReplicaSet
Kubernetes-commit: e2ac674a712fa6b2bffa04ed645ca159386a90f5
2019-06-28 14:10:59 +08:00
David Eads 62764072b5 make kubectl --raw consistent for create, update, get, delete
Kubernetes-commit: 09c55bd1172e9b044762957efeae2c34de145bef
2019-07-03 08:27:19 -04:00
Sean Sullivan 48d0bc9f5c Move pkg/kubectl/validation to staging
Kubernetes-commit: 5eac54e755b47f145a6c76c2242b4ef8a469a850
2019-06-26 12:56:28 -07:00
Mike Dame 32e1c844d6 Move pkg/util/logs to staging and update ref
Kubernetes-commit: a710a83aa93e2d1c06ffacda3caa06c0e144ac05
2019-06-19 22:37:10 -04:00
Mike Dame da9a085a27 Move pkg/util/slice and update refs
Kubernetes-commit: 5f7dbefa036582410abb52ae54d0af6dd978904e
2019-06-19 23:24:56 -04:00
Sean Sullivan 1abdefd8c0 Move pkg/kubectl/util/fieldpath to staging
Kubernetes-commit: 6274ef995f2cb8a609a83e77a96623021e9299a5
2019-06-19 17:13:57 -07:00
Sean Sullivan fde0975f4c Move pkg/kubectl/util/certificate to staging
Kubernetes-commit: 541cb300c74c6d9b4d02fa3199f5a100c3108860
2019-06-19 13:04:40 -07:00
Sally O'Malley 8b8df7887a Move pkg/kubectl/util/resource to staging
Kubernetes-commit: 7e253e1d0e2b32a0cdd0e46be122398e8f9d2750
2019-06-26 09:05:47 -04:00
Sally O'Malley 15b5312c26 Move pkg/kubectl/util/qos to staging
Kubernetes-commit: acd3b91f9efc533fdf85fd2bb2cc87e73b84507d
2019-06-19 23:34:19 -04:00
Peter Swica 1d28a7a01b Moving pkg/kubectl/util/storage to staging
Kubernetes-commit: d8362f750809b5ab6c1bcc41eabdf1945d96035e
2019-06-07 01:13:40 -04:00
Sean Sullivan 1a243a897b Move pkg/kubectl/util/event into staging
Kubernetes-commit: d4a5b75a67f101959b706240c425fc283a4ac376
2019-06-19 15:31:51 -07:00
Mike Dame 4fd08ad133 Move pkg/util/rbac to staging and update refs
Kubernetes-commit: a507ca338ac8f9d609793ace6840a161d99696e9
2019-06-19 23:11:57 -04:00
Sean Sullivan b95b466364 Move pkg/kubectl/util/hash to staging
Kubernetes-commit: 7aa214d2c3f78598238c761099dacd6ead3d6fcd
2019-06-19 19:11:21 -07:00
Sean Sullivan 5e233e6624 Moved pkg/kubectl/util/deployment to staging
Kubernetes-commit: c3f6418b59b6299f34d20f8d4e68675d80be8f49
2019-06-19 14:16:48 -07:00
Sally O'Malley ce66ba423e Move pkg/kubectl/util/podutils to staging
Kubernetes-commit: 4c58308b4e646be92f69dec772d70e81c1541148
2019-06-19 22:53:12 -04:00
Mike Dame eefb7e1577 Move pkg/util/printers to staging and update refs
Kubernetes-commit: 5f3818230d925c101c5fe3c74659e1831b09d996
2019-06-19 22:53:53 -04:00
Peter Swica 9a7c9cace9 Moved pkg/kubectl/util/term, pkg/kubectl/util/templates, pkg/kubectl/util/interrupt, and pkg/kubectl/util/interrupt to staging
Kubernetes-commit: 123fa89f2116a9fd144551631925b96c872db293
2019-06-19 16:31:38 +02:00
Sean Sullivan 8182c7acf9 Clear entire kubectl repo before turning on staging publishing bot 2019-05-28 14:34:40 -07:00
Phillip Wittrock 3227d2f3ec fixup goimports so travis passes 2019-03-12 13:22:34 -07:00
Kubernetes Prow Robot 2a31209eeb
Merge pull request #408 from thockin-tmp/gcr-vanity
Use k8s GCR vanity URL
2019-02-25 18:11:23 -08:00
max8899 ff88fc3b7a
fix some typos
criterias -> criteria
taht -> that
2018-06-28 13:38:42 +08:00
Jeffrey Regan dd002b1774 Remove kustomize - see https://github.com/kubernetes-sigs/kustomize 2018-05-11 15:20:35 -07:00
AdamDang b705f44328
Typo fix in the returned info.
creat->create
2018-05-02 19:29:36 +08:00
Richard Marshall b3f9141d2f Add subcommand for adding patches to the kustomization file. 2018-04-27 07:10:47 -07:00
Jeffrey Regan 043884620c kustomize.yaml becomes kustomization.yaml 2018-04-17 11:16:49 -07:00
Jeffrey Regan 8edc8c0a0a Some kustomization field renaming. 2018-04-13 13:34:44 -07:00
Jeffrey Regan b55fb6ad17 Drop the init command 2018-04-13 10:01:05 -07:00
k8s-ci-robot 6d60a04ecc
Merge pull request #438 from monopole/kustomization
manifest becomes kustomization
2018-04-12 20:43:58 -07:00
Jeffrey Regan 9f9fd39dd2 manifest becomes kustomization 2018-04-12 17:17:01 -07:00
k8s-ci-robot fe5aff0d65
Merge pull request #435 from mengqiy/update_dep
Update vendor and related hash func
2018-04-12 17:15:58 -07:00
Jeffrey Regan 3f446803ea Drop k8s metatype fields from kustomize.yaml struct 2018-04-11 19:03:51 -07:00
Mengqi Yu 3ae6eefc2d update hash util 2018-04-11 15:20:49 -07:00
Sunil Arora 7de1790e59 updated namereference config for missing references.
highlights:
RBAC references
ServiceAccountName reference
StatefulSet headless service reference
2018-04-11 13:22:07 -07:00
Jingfang Liu 91a113776f change kinflate to kustomize 2018-04-11 11:21:31 -07:00
k8s-ci-robot 47cb3bb93b
Merge pull request #419 from mengqiy/scheme
swtich to depend on the scheme in client-go
2018-04-10 15:42:55 -07:00
Jingfang Liu 1af9a54096 change Kube-manifest.yaml to kustomize.yaml 2018-04-10 11:55:35 -07:00
Mengqi Yu b8bec5e8de swtich to depend on the scheme in client-go 2018-04-10 11:17:57 -07:00
Mengqi Yu ada56ace67 add tests 2018-04-09 14:44:51 -07:00
Mengqi Yu 9c049921e7 support conflict detection in patches 2018-04-06 17:42:46 -07:00
Jeffrey Regan 14f80eef68 Command organization - build and edit 2018-04-06 15:54:00 -07:00
Jingfang Liu 7c406f01af Add logging for replacing and merging configmap and secrets 2018-04-06 14:55:53 -07:00
Tim Hockin dd241f66b8 Pass 2: k8s GCR vanity URL 2018-04-06 08:51:53 -07:00
k8s-ci-robot cfab6e145b
Merge pull request #394 from Liujingfang1/cmgenerator
change ConfigMap to ConfigMapGenerator
2018-04-04 15:21:09 -07:00
Jingfang Liu 2cdb11614a change secretGenerators to secretGenerator 2018-04-04 14:39:26 -07:00
Jingfang Liu 7a840f0f25 change ConfigMap to ConfigMapGenerator 2018-04-04 14:37:30 -07:00
Jeffrey Regan d7d2c843de Remove the -f option 2018-04-04 13:54:19 -07:00
Sunil Arora f70ce7da75 kinflate: remove prune field from the manifest 2018-04-04 10:41:59 -07:00
Jingfang Liu df1bf932b5 Add different behavior for secretGenerator in overlay 2018-04-03 15:54:17 -07:00
k8s-ci-robot f6b6365d3b
Merge pull request #373 from Liujingfang1/cm
Add different behavior for configmaps in overlay
2018-04-03 15:38:07 -07:00
k8s-ci-robot 8e52829247
Merge pull request #383 from jberkhahn/return_config
Return rest config and regular config  from pluginutil Init method
2018-04-03 11:36:07 -07:00
Jingfang Liu 7772932f7f Add different behavior for configmaps in overlay 2018-04-03 11:26:05 -07:00
Sunil Arora f3cb81e449 kinflate: added version command 2018-04-02 17:35:36 -07:00
Sunil Arora 04ab5927db integrated glog in command structure 2018-03-30 16:05:07 -07:00
Jonathan Berkhahn b212714c99 Return rest config and regular config from pluginutil Init method
-add namespace overriding based on kubectl plugin env var
2018-03-28 14:11:57 -07:00
Mengqi Yu b58c4b4066 detect unknown fields in Kube-manifest.yaml 2018-03-27 19:04:56 -07:00
k8s-ci-robot 9c2320cdb1
Merge pull request #367 from Liujingfang1/bases
change packages to bases in Manifest
2018-03-26 16:14:01 -07:00
k8s-ci-robot 09240ed0d4
Merge pull request #370 from mengqiy/multiple_patches
support multiple patches for the same GVKN
2018-03-23 08:41:01 -07:00
k8s-ci-robot 2c8c714add
Merge pull request #348 from jberkhahn/parse_context
Use passed-in context in pluginutils config initializer
2018-03-22 14:45:03 -07:00
Mengqi Yu 67532e09da support multiple patches for the same GVKN 2018-03-22 14:09:18 -07:00
Jingfang Liu f24ba4e2ee change packages to bases in Manifest 2018-03-22 09:27:46 -07:00
Antoine Pelisse 25cd875d37 Remove the suffix S from selectors
Since the package is now called "selectors", the S at the end of each
type name is no longer needed.
2018-03-20 15:15:47 -07:00
Antoine Pelisse ec3eca8944 selectors: Remove "Map" and "Slice"
Transforming from Interface to Map or Slice in order to get a sub-item
was cumbersome, so now you can only get children directly from the
interface.

Maps and Slices are at the same level as Number or string (you can only
filter or get). Also rename Map/Slice/Number/String to
AsMap/AsSlice/AsNumber/AsString to remove ambiguity.
2018-03-19 16:56:40 -07:00
Antoine Pelisse 81e47da354 Move predicates and unstructpath to path
And rename unstructpath to selectors, since the package only contains
selectors now. The name of types in the selectors package could be
improved now that the package name is more specific.
2018-03-19 10:53:04 -07:00
Antoine Pelisse 3c97ce6d61 predicates: Rename Value into Interface
Since the original "Value" class is gone, it doesn't make sense anymore
to refer to that name. Now it's simply an "interface{}", so the name
Interface is more suited.
2018-03-19 10:41:18 -07:00
Antoine Pelisse 5a77a28cf3 unstructpath: Move predicates to their own package
Move the predicates to a "predicates" package, to simplify the
structure. This is purely mechanical change. Better documentation for
the package will come next, as well as a few other changes.
2018-03-19 09:20:54 -07:00
Antoine Pelisse 576bbe944f unstructpath: Create json path type package.
This package let's you find specific path in your unstruct types, kind
of like jsonpath does. But this is statically compiled.
2018-03-14 10:18:07 -07:00
Antoine Pelisse 030ff82b5c unstructpath: Create predicates
Predicates are type that determine if a value of a given type matches
some criteria. They will be useful as a filter type.
2018-03-14 10:11:11 -07:00
Mengqi Yu 3753d9a681 fix bug when update name ref in multi layer setup 2018-03-12 16:40:57 -07:00
Mengqi Yu 2e06ca8bc0 cleanup Resouce slice related code 2018-03-12 13:59:19 -07:00
Mengqi Yu 90262399c7 Rename KObject to ResourceCollection 2018-03-09 16:41:13 -08:00
Jonathan Berkhahn b8ef16af1e Use passed-in context in pluginutils config initializer 2018-03-08 16:00:09 -08:00
Mengqi Yu 4200a36e9f appending name hash only applies to current layer 2018-03-07 18:01:47 -08:00
Jingfang Liu e069e421d0 Remove package tree 2018-03-07 09:04:29 -08:00
k8s-ci-robot 62ee664fbe
Merge pull request #341 from Liujingfang1/remove_tree
Add util functions to read/write manifest file and update sub commands
2018-03-06 16:49:53 -08:00
Jingfang Liu ea5dfd15c2 Add util functions to read/write manifest file and update sub commands 2018-03-06 16:14:57 -08:00
k8s-ci-robot 8d9cc2a7bf
Merge pull request #340 from mengqiy/CRD
fall back to JSON merge patch for types w/o schema (CRD)
2018-03-06 10:37:53 -08:00
Ellen Körbes a9cf1354c1 rebase 2018-03-06 13:46:41 -03:00
Ellen Körbes 3be8109b17 resource library 2018-03-06 13:46:41 -03:00
Mengqi Yu 135ef05443 fall back to JSON merge patch for types w/o schema (CRD) 2018-03-05 18:25:05 -08:00
Jingfang Liu 97859f4abd Update inflate/diff and corresponding tests 2018-03-02 15:50:33 -08:00
Jingfang Liu dc31abde47 Change inflate to use Application interface 2018-03-02 13:55:20 -08:00
Mengqi Yu 6a26e64255 implement Application interface for applicationImpl 2018-03-02 11:05:03 -08:00
Mengqi Yu 12e3e4da6f update resource pkg 2018-03-01 14:04:40 -08:00
k8s-ci-robot 3bbff70115
Merge pull request #328 from seans3/kinflate-refactor
Simplified Loader.New() to always take a directory
2018-02-28 14:58:55 -08:00
Sean Sullivan 9bad8083a6 Simplified Loader.New() to always take a directory (not a file) 2018-02-28 11:41:18 -08:00
Jingfang Liu d5639f26d2 Add nameHashTransformer 2018-02-27 16:00:52 -08:00
Sean Sullivan 177dbb7b01 Allow fake loader be initialized with directory 2018-02-27 15:30:32 -08:00
Sean Sullivan 85349364cc Update FakeLoader for simpler interface; FakeLoader uses real Loader 2018-02-27 12:43:01 -08:00
Sean Sullivan b7f1bd4a49 Updated loader test to remove variables and logic; makes test easier to validated and reason about 2018-02-26 16:32:14 -08:00
Sean Sullivan afdcd30ffa Move fake loader into its own package 2018-02-26 15:38:48 -08:00
Sean Sullivan 5a92d7a586
Merge pull request #317 from seans3/kinflate-refactor
Refactor Loader interface
2018-02-26 15:26:03 -08:00
Sean Sullivan d7b14caf92 Fix for FakeLoader to add new Root() method in Loader interface 2018-02-26 13:28:03 -08:00
Sean Sullivan 4010cdf9bd Merge remote-tracking branch 'origin/master' into kinflate-refactor 2018-02-26 13:25:14 -08:00
Jingfang Liu 5c32af7778 change function name from ResourceFromPath to NewFromPath 2018-02-26 13:18:34 -08:00
Sean Sullivan 8a9c0b5e0a Fix change to Loader interface; Root() method added to fake loader 2018-02-26 12:53:50 -08:00
k8s-ci-robot 84e23a1949
Merge pull request #316 from droot/configmap-impl
configmap resource implementation using loader
2018-02-26 11:53:44 -08:00
Sunil Arora 41e65e3eab kinflate: configmap resource implementation using loader 2018-02-26 11:32:51 -08:00
k8s-ci-robot 717da4872a
Merge pull request #319 from Liujingfang1/secretresource
Add secret resource
2018-02-26 11:32:45 -08:00
Jingfang Liu 70d0048d35 Add secret resource 2018-02-26 11:22:46 -08:00
Sean Sullivan 3d0b7df0dd Refactor Loader interface 2018-02-26 10:42:07 -08:00
Antoine Pelisse 65711a3c63 kinflate/transformers: Keep private things private 2018-02-26 09:24:48 -08:00
Jingfang Liu 93a241acda Add appresource implementation 2018-02-23 13:26:44 -08:00
k8s-ci-robot 34b29797e2
Merge pull request #313 from droot/app-stage-1
added configmap resource implementation
2018-02-23 11:19:44 -08:00
Sunil Arora 225f166de3 added configmap resource implementation
This also changes the resource to be a concrete type instead of
interface.
2018-02-23 10:55:54 -08:00
k8s-ci-robot 49b69b4bc8
Merge pull request #315 from seans3/kinflate-refactor
Refactor Loader interface
2018-02-23 09:23:47 -08:00
Sean Sullivan 47a51d9072 Refactor Loader interface 2018-02-22 15:38:43 -08:00
k8s-ci-robot 451fec7f9d
Merge pull request #310 from mengqiy/update_import
update yaml import pkg
2018-02-22 08:34:40 -08:00
k8s-ci-robot 8ae33d805c
Merge pull request #312 from seans3/kinflate-refactor
First pass at Application abstraction with unimplemented methods
2018-02-21 15:08:40 -08:00
Sean Sullivan 6f5b9ac206 First pass at Application abstraction with unimplemented methods; Includesthe first pass at the Resource interface 2018-02-21 15:04:09 -08:00
Jingfang Liu ec449fc3d6 Use ManifestLoader to read and write the kubemanifest file 2018-02-21 14:46:14 -08:00
Mengqi Yu a2b109c008 update yaml import pkg 2018-02-21 14:37:46 -08:00
Jingfang Liu a0699c2c7a Move ManifestLoader under tree package 2018-02-21 11:23:16 -08:00
Mengqi Yu 851637079b add diff command 2018-02-21 10:30:39 -08:00
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
Mengqi Yu 56bb36802b initial commit for file loader 2018-02-20 18:12: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
Mengqi Yu 85fe9d2354 add Packages field in the Manifest 2018-02-08 13:58:18 -08:00
Sunil Arora c738ff9a19 kinflate: added set subcommand 2018-02-07 12:39:13 -08:00
k8s-ci-robot 6daa07ef04
Merge pull request #262 from droot/add-verb
kinflate: implemented 'add' subcommand
2018-02-07 10:20:45 -08:00
Sunil Arora 89598b9b11 kinflate: implemented 'add' subcommand 2018-02-07 10:13:23 -08:00
Antoine Pelisse 45193fb480 Remove pkg/framework/test that has moved to https://github.com/kubernetes-sig-testing/frameworks 2018-02-07 09:40:55 -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