Commit Graph

11 Commits

Author SHA1 Message Date
Peter Rifel a2aa4f0bdd
Ignore HPA status when applying addons 2023-12-08 18:57:46 -06:00
justinsb 0096451a83 Cleanup a few places where we used Warningf with %w
Fixing up a few places where we used the wrong marker.
2023-09-18 11:02:18 -04:00
guoguangwu da8c0ca830 chore: remove refs to deprecated io/ioutil 2023-06-07 18:02:33 +08:00
Ciprian Hacman 334e9690b9 Fix missing fieldmanager.DecodeManagedFields() 2023-05-08 07:35:36 +03:00
justinsb 1d63963b9e Create unit tests for ManagedFieldsMigrator
We verify a few key scenarios.
2022-11-23 11:03:07 -05:00
justinsb 8288515eb4 applylib: combine field managers
This ensures that we don't lose managed fields as we update them.
2022-11-23 11:03:07 -05:00
justinsb 32cb151419 Apply: Migration from CSA to SSA: set the operation to Apply
If we don't, the (kops,Update) managed blocks are treated as different
from the (kops,Apply) block.  This causes conflicts when the two
blocks specific incompatible values.

Issue #14520 (I believe it is the fix!)
2022-11-23 11:03:07 -05:00
Ole Markus With 392ececda7 Let kOps take ownership of any field currently owned by kubectl 2022-10-01 08:58:26 +02:00
justinsb 039ca01cc9 applylib: Better health checking
Add a few objects that are well-known as not having status, so that we
avoid/reduce logspam.
2022-09-05 13:59:18 -04:00
Justin SB 89201877e0 Introduce mock kubeapiserver to applylib
Use it for a simple test.
2022-08-17 08:10:21 -04:00
Justin SB 6184f12861 Introduce applylib
A number of projects need a library for applying objects.  While we
are figuring out exactly what functionality is needed, we are using a
copy-and-paste approach.

Introduce applylib here also, and add the create-or-update
functionality that we want here.
2022-08-17 08:10:20 -04:00