Skip to content

Conversation

@domsolutions
Copy link
Contributor

Motivation

We require a k8s client which supports all of our CRs and supports watchers to facilitate e2e tests.

Summary of changes

  • import kube_codegen.sh to generate client
  • add necessary tags for client-gen to know which structs to generate for
  • operator/gen-k8s-client.sh will call kube_codegen.sh whenever go generate ./... is run to keep client aligned with CRs

Checklist

  • Added/updated unit tests
  • Added/updated documentation
  • Checked for typos in variable names, comments, etc.
  • Added licences for new files

Testing

Copy link
Contributor

@MiguelAAe MiguelAAe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@domsolutions domsolutions merged commit bf1b43a into v2 Dec 9, 2025
5 of 6 checks passed
@domsolutions domsolutions deleted the auto-gen-k8s-client branch December 9, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants