Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

monorepo: update client/api generators #79

Merged

Conversation

BlaineEXE
Copy link
Contributor

@BlaineEXE BlaineEXE commented Jun 21, 2024

Update client/api generation tools. Do so by establishing a go mod for client separate from the top-level go mod. At this point, a top-level go mod is unnecessary, so remove it and the top-level vendor dir as well.

Create a basic client/Makefile that runs all generators and basic code vetting. This will likely change some in the future but establishes basic expectations about how the current client code can be generated and checked for basic issues.

Brief overview of changes to help review:

  • delete existing ./go.mod, ./go.sum, and ./vendor dir
  • initialize a new ./client/go.mod and ./client/vendor with latest dependency versions
  • update CRD and client gen scripts/commands
  • run generators
  • create basic makefile for repeating in the future

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 21, 2024
@k8s-ci-robot k8s-ci-robot requested review from saad-ali and wlan0 June 21, 2024 20:34
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jun 21, 2024
Update client/api generation tools. Do so by establishing a go mod for
client separate from the top-level go mod. At this point, a top-level go
mod is unnecessary, so remove it and the top-level vendor dir as well.

Create a basic client/Makefile that runs all generators and basic code
vetting. This will likely change some in the future but establishes
basic expectations about how the current client code can be generated
and checked for basic issues.

Signed-off-by: Blaine Gardner <[email protected]>
@BlaineEXE BlaineEXE force-pushed the modernize-client-gen branch from 227f709 to 4ebb2a4 Compare June 21, 2024 21:11
@xing-yang
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 21, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BlaineEXE, xing-yang

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 [BlaineEXE,xing-yang]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 330903d into kubernetes-retired:monorepo Jun 21, 2024
4 checks passed
shanduur pushed a commit to shanduur/container-object-storage-interface-api that referenced this pull request Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants