Skip to content

Introduce pkg/sdk go.mod and VPCNetworkConfiguration function helpers - #68

Open
ihgann wants to merge 5 commits into
vmware-tanzu:masterfrom
ihgann:topic/ihgann/vpcsdk
Open

Introduce pkg/sdk go.mod and VPCNetworkConfiguration function helpers#68
ihgann wants to merge 5 commits into
vmware-tanzu:masterfrom
ihgann:topic/ihgann/vpcsdk

Conversation

@ihgann

@ihgann ihgann commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

This change introduces a new go.mod for pkg/sdk to keep it isolated from the root go.mod and introduces VPCNetworkConfiguration function helpers related to NamespaceNetworkConfiguration in pkg/sdk.

Testing Done: make lint test

This change introduces a new go.mod for pkg/sdk to keep it isolated from
the root go.mod and introduces VPCNetworkConfiguration function helpers
related to NamespaceNetworkConfiguration in pkg/sdk.

@yangna0420 yangna0420 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks, I need replied on this changes on my VPC get

@lxiaopei lxiaopei left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

Comment thread pkg/sdk/go.mod Outdated
ihgann added 4 commits August 20, 2026 09:10
This change introduces a fix to hack/client-gen.sh which was mistakenly
broken upon a controller-runtime update in hack/tools/go.mod. The two
issues include:

1. --input-base $PKG/api --input /$VERSION used empty-group syntax, which newer
   client-gen (v0.35.0) maps to literal core path segment → tried importing
   nonexistent api/core/v1alpha1. Fixed to --input-base $PKG --input api/$VERSION
   so the real path api/v1alpha1 resolves.
2. --clientset-name flag was never passed (defaults to internalclientset, but
   output paths assumed clientset), and output-dir/output-pkg redundantly
   appended the clientset name on top of what client-gen already appends, causing
   double-nested clientset/clientset. Fixed by adding
   --clientset-name $CLIENTSET_NAME and pointing output-dir/output-pkg at the
   parent dir.
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