Skip to content

Conversation

@rmvangun
Copy link
Contributor

The PR addresses issues with Flux CD Kustomization and GitRepository resource updates by properly handling resource versions. Previously, updates would fail with "metadata.resourceVersion must be specified" errors due to missing version information during PUT operations.

Changes:

  • Modified kubeClientResourceOperation to implement get-then-create-or-update pattern
  • Added proper resource version handling for existing resources
  • Improved error handling and type checking for metav1.Object implementations
  • Removed inline comments in favor of clear function documentation
  • Updated documentation to follow Windsor CLI style guide

This fix ensures reliable updates to Flux CD resources by including the required resource version during updates.

@rmvangun rmvangun self-assigned this May 25, 2025
@rmvangun rmvangun added the bug Something isn't working label May 25, 2025
@rmvangun rmvangun merged commit 6900bde into main May 25, 2025
12 of 13 checks passed
@rmvangun rmvangun deleted the fix/flux-resource-version-errors branch May 25, 2025 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants