kcp-dev / code-generator

Generators for workspace-aware clientsets, informers, and listers
Apache License 2.0
4 stars 11 forks source link

:sparkles: update fakes, informers #62

Closed stevekuznetsov closed 2 years ago

stevekuznetsov commented 2 years ago

clientgen: correctly initialize fake

We need a pointer to this, as it contains a lock and shared state we reference by passing the thing around. We need to initialize it, therefore.

Signed-off-by: Steve Kuznetsov skuznets@redhat.com


clientgen: improve fake generators

Signed-off-by: Steve Kuznetsov skuznets@redhat.com


informergen: generate scope-able informers

Signed-off-by: Steve Kuznetsov skuznets@redhat.com


examples: update codegen

Signed-off-by: Steve Kuznetsov skuznets@redhat.com


openshift-ci[bot] commented 2 years ago

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/kcp-dev/code-generator/blob/main/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
openshift-ci[bot] commented 2 years ago

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/kcp-dev/code-generator/blob/main/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment