cozystack/pkg
Andrei Kvapil 6c431d0857
fix(codegen): add gen_client to update-codegen.sh and regenerate applyconfiguration (#2061)
## What this PR does

Fix build error in `pkg/generated/applyconfiguration/utils.go` caused by
a reference to `testing.TypeConverter` which was removed in client-go
v0.34.1.

The root cause was that `hack/update-codegen.sh` called `gen_helpers`
and
`gen_openapi` but never called `gen_client`, so the applyconfiguration
code
was never regenerated after the client-go upgrade.

Changes:
- Fix `THIS_PKG` from `k8s.io/sample-apiserver` template leftover to
correct module path
- Add `kube::codegen::gen_client` call with `--with-applyconfig` flag
- Regenerate applyconfiguration (now uses `managedfields.TypeConverter`)
- Add tests for `ForKind` and `NewTypeConverter` functions

### Release note

```release-note
[maintenance] Regenerate applyconfiguration code for client-go v0.34.1 compatibility
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Updated backup class definitions example to reference MariaDB instead
of MySQL.

* **Chores**
* Updated code generation tooling and module dependencies to support
enhanced functionality.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-02-17 18:21:39 +01:00
..
apis refactor(api): remove rootHost-based name length validation 2026-02-12 13:52:37 +03:00
apiserver refactor(api): remove rootHost-based name length validation 2026-02-12 13:52:37 +03:00
cmd/server refactor(api): remove rootHost-based name length validation 2026-02-12 13:52:37 +03:00
config refactor(api): remove rootHost-based name length validation 2026-02-12 13:52:37 +03:00
generated fix(codegen): add gen_client to update-codegen.sh and regenerate applyconfiguration 2026-02-16 23:01:38 +03:00
lineage feat(api): add chartRef to CozystackResourceDefinition 2026-01-14 16:09:43 +01:00
ovnstatus [kubeovn] Implement the KubeOVN plunger 2025-09-11 02:11:58 +03:00
registry refactor(api): remove rootHost-based name length validation 2026-02-12 13:52:37 +03:00
version refactor(telemetry): split telemetry between operator and controller 2026-01-19 13:52:15 +01:00