Sean Sullivan
09f09c56ed
Adds random suffix to legacy default inventory name
2020-08-03 13:16:22 -07:00
Kubernetes Prow Robot
31ac4efd12
Merge pull request #194 from seans3/inventory-refactor
...
Updates prune algorithm to use one inventory object
2020-07-30 13:07:06 -07:00
Sean R. Sullivan
c9e7d329da
Updates prune algorithm to use one inventory object
2020-07-29 18:33:49 -07:00
Kubernetes Prow Robot
537dfbaa33
Merge pull request #205 from jijiew/live-ns
...
namespaced kpt live init
2020-07-29 14:00:03 -07:00
Jijie Wei
7c5aa7a1c2
remove test
2020-07-29 08:54:08 -07:00
Jijie Wei
2da9da4e26
return inventory namespace as output
2020-07-28 12:04:05 -07:00
Jijie Wei
a6f98bc844
namespaced kpt live init
2020-07-27 14:07:30 -07:00
Kubernetes Prow Robot
e371bd5ca8
Merge pull request #207 from mortent/OrderResourceForPrune
...
Prune/destroy resources in reverse order from apply
2020-07-20 10:10:52 -07:00
Morten Torkildsen
724553f71e
Prune/destroy resources in reverse order from apply
2020-07-17 09:43:43 -07:00
Kubernetes Prow Robot
48230a75b9
Merge pull request #204 from chrigl/test-object-decode-encode
...
Added parsing to objmetadata_test.TestCreateObjMetadata
2020-07-15 13:54:38 -07:00
Christoph Glaubitz
3757e60840
Added parsing to objmetadata_test.TestCreateObjMetadata
...
This commit extends TestCreateObjMetadata. The test function does not
just verify CreateObjMetadata, but also uses ParseObjMetadata to verify
back and forth between both functions. I left specific testing of
ParseObjMetadata in place, because there might be edge cases, that
should be tested on its own.
I'm aware, that the TestCreateObjMetadata now tests two things, but I
think it makes life of maintainers and new contributors far easier.
E.g. the change I introduced in #193 would have been catched by tests,
rather than someone with a mental model of all of the code.
2020-07-15 10:52:13 +02:00
Kubernetes Prow Robot
7d237621fd
Merge pull request #203 from seans3/validate-name
...
Validates resource names before storing in inventory
2020-07-14 19:28:39 -07:00
Sean Sullivan
2f6a1ef017
Validates resource names before storing in inventory
2020-07-14 14:18:56 -07:00
Morten Torkildsen
07e7070650
Merge pull request #199 from mortent/BumbKyamlVersion
...
Bump kyaml version to 0.4.0
2020-07-06 20:36:44 -07:00
Morten Torkildsen
98b558ce39
Bump kyaml version to 0.4.0
2020-07-06 20:19:08 -07:00
Kubernetes Prow Robot
9785db3fde
Merge pull request #198 from phanimarupaka/FailApplyPreviewForRequiredSetters
...
Fail Apply/Preview for Required Setters
2020-07-06 20:11:59 -07:00
Phani Teja Marupaka
d4dbb597c0
Fail Apply/Preview for Required Setters
2020-07-06 17:04:24 -07:00
Kubernetes Prow Robot
f6bdeba0f7
Merge pull request #195 from ash2k/ash2k/use-sigs.k8s.io-yaml
...
Use sigs.k8s.io/yaml for YAML
2020-06-26 14:30:14 -07:00
Mikhail Mazurskiy
40e15da909
Use sigs.k8s.io/yaml for YAML
2020-06-25 12:17:31 +10:00
Kubernetes Prow Robot
9b5ce0042d
Merge pull request #192 from mortent/Goreleaser
...
Use goreleaser to create github releases and capture release notes
2020-06-19 00:11:58 -07:00
Morten Torkildsen
1d292424a5
Use goreleaser to create github releases and capture release notes
2020-06-18 17:08:08 -07:00
Kubernetes Prow Robot
d24a26ae22
Merge pull request #191 from seans3/inventory-refactor
...
Creates helper function to create prune events
2020-06-17 10:06:39 -07:00
Sean R. Sullivan
d09af58e2c
Creates helper function to create prune events
2020-06-16 11:24:56 -07:00
Kubernetes Prow Robot
af9a037fac
Merge pull request #190 from seans3/inventory-client
...
Creates InventoryClient to refactor prune
2020-06-15 13:51:56 -07:00
Sean R. Sullivan
0062a265b2
Creates InventoryClient to refactor prune
2020-06-15 13:25:05 -07:00
Kubernetes Prow Robot
aaa5c94bf9
Merge pull request #188 from mortent/SimplifyInfoHelper
...
Simplify the InfoHelper and ApplyTask
2020-06-14 23:51:56 -07:00
Kubernetes Prow Robot
54e401f8b5
Merge pull request #189 from seans3/inventory-refactor
...
Initial move of Inventory to its own package
2020-06-12 11:13:56 -07:00
Sean R. Sullivan
0e01dd4817
Initial move of Inventory to its own package
2020-06-11 17:42:34 -07:00
Morten Torkildsen
ae77d32ad6
Simplify the InfoHelper and ApplyTask
2020-06-10 22:22:06 -07:00
Kubernetes Prow Robot
0bf530f31e
Merge pull request #182 from fsommar/non-zero-exit-code
...
Exit with non-zero exit code on error
2020-06-10 15:54:57 -07:00
Kubernetes Prow Robot
f18d7c260f
Merge pull request #181 from mortent/ManifestReader
...
Separate reading manifests into Info objects from the apply logic
2020-06-09 01:17:19 -07:00
Fredrik Sommar
fab8593a16
Use exit code 3 for timeouts
...
Picked arbitrarily in the 3-124 span of non-reserved exit codes.
2020-06-09 08:45:15 +02:00
Morten Torkildsen
2381432e70
Separate reading manifests into Info objects from the apply logic
2020-06-08 16:59:03 -07:00
Kubernetes Prow Robot
e8bb88266b
Merge pull request #186 from seans3/export-command
...
Exports cobra command in ApplyRunner
2020-06-08 16:39:18 -07:00
Sean R. Sullivan
322135f7e9
Expors cobra command
2020-06-08 15:00:32 -07:00
Kubernetes Prow Robot
e7ae3a064b
Merge pull request #185 from seans3/applier-export
...
Export Applier within the ApplyRunner
2020-06-05 16:03:45 -07:00
Kubernetes Prow Robot
b17c21e148
Merge pull request #178 from mortent/CRDAndCRPreview
...
Support preview when resource set contains both CRD and CR
2020-06-05 15:03:46 -07:00
Kubernetes Prow Robot
d246e8e8f3
Merge pull request #177 from mortent/PrintAdapterToApplyTask
...
Move the printer adapter into the ApplyTask
2020-06-05 13:43:46 -07:00
Sean R. Sullivan
86d4dd3efc
Export Applier within the ApplyRunner
2020-06-05 13:41:54 -07:00
Kubernetes Prow Robot
391d893e83
Merge pull request #171 from seans3/inventory-polymorphism
...
First pass at inventory polymorphism POC
2020-06-05 09:53:44 -07:00
Kubernetes Prow Robot
3f76d530c2
Merge pull request #183 from mortent/WaitBeforeUnschedulable
...
Only mark pods as unschedulable if they have been in that state for a while
2020-06-05 09:39:43 -07:00
Morten Torkildsen
d984d5ec8d
Only mark pods as unschedulable if they have been in that state for a while
2020-06-05 09:27:40 -07:00
Sean R. Sullivan
ad6f42477d
First pass at implementing inventory polymorphism for Load()
2020-06-05 00:36:17 -07:00
Kubernetes Prow Robot
2b720b0bc9
Merge pull request #184 from mortent/kstatusCRDSupport
...
Add support for CRDs in the status library
2020-06-04 22:25:43 -07:00
Morten Torkildsen
689e16e708
Add support for CRDs in the kstatus library
2020-06-04 20:43:00 -07:00
Sean R. Sullivan
deaa215f57
First pass at inventory polymorphism POC
2020-06-04 16:40:18 -07:00
Kubernetes Prow Robot
f12ac72c6e
Merge pull request #175 from seans3/diff-stdin-fix
...
Expand stdin and filter inventory object for diff
2020-06-04 16:11:44 -07:00
Sean R. Sullivan
a2532f9e36
Expand stdin and filter inventory object for diff
2020-06-04 16:03:52 -07:00
Fredrik Sommar
b0bfb0451c
Exit with non-zero exit code on error
...
A change in exit code behavior was introduced in #166 , where printing an
error used to also cause the application to exit with a non-zero exit
code. As a result, errors in e.g. `kpt live apply` exits the process
with a 0 exit code.
This change should bring it in line with how it works before, but I'm open to
other solutions if there's a cleaner way to accomplish this without
having an error log automatically mean that the application needs to
exit.
2020-06-04 15:26:40 +02:00
Kubernetes Prow Robot
03aba2693b
Merge pull request #180 from mortent/FixPruneDeleteSkipped
...
Fix output from lifecycle directive with the destroy command
2020-05-29 13:31:33 -07:00