-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #653 from zhengxiexie/zhengxie/new_generated
Update code-generator for new apiVersion
- Loading branch information
Showing
87 changed files
with
535 additions
and
1,273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.21.9 as golang-build | ||
FROM golang:1.22.5 as golang-build | ||
|
||
WORKDIR /source | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ set -o xtrace | |
APIS=./pkg/apis | ||
APIS_PKG=github.com/vmware-tanzu/nsx-operator/pkg/apis | ||
OUTPUT_PKG=github.com/vmware-tanzu/nsx-operator/pkg/client | ||
GROUP=nsx.vmware.com | ||
GROUP=crd.nsx.vmware.com | ||
|
||
SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. | ||
CODEGEN_PKG=$(go env GOMODCACHE)/k8s.io/[email protected] | ||
|
41 changes: 41 additions & 0 deletions
41
pkg/apis/crd.nsx.vmware.com/v1alpha1/addressbinding_types.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package v1alpha1 | ||
|
||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
|
||
type AddressBindingSpec struct { | ||
// VMName contains the VM's name | ||
VMName string `json:"vmName"` | ||
// InterfaceName contains the interface name of the VM, if not set, the first interface of the VM will be used | ||
InterfaceName string `json:"interfaceName,omitempty"` | ||
} | ||
|
||
type AddressBindingStatus struct { | ||
IPAddress string `json:"ipAddress"` | ||
} | ||
|
||
// +genclient | ||
//+kubebuilder:object:root=true | ||
//+kubebuilder:subresource:status | ||
//+kubebuilder:storageversion | ||
|
||
// AddressBinding is used to manage 1:1 NAT for a VM/NetworkInterface. | ||
type AddressBinding struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec AddressBindingSpec `json:"spec"` | ||
Status AddressBindingStatus `json:"status"` | ||
} | ||
|
||
//+kubebuilder:object:root=true | ||
|
||
// AddressBindingList contains a list of AddressBinding. | ||
type AddressBindingList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []AddressBinding `json:"items"` | ||
} | ||
|
||
func init() { | ||
SchemeBuilder.Register(&AddressBinding{}, &AddressBindingList{}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 0 additions & 97 deletions
97
pkg/apis/crd.nsx.vmware.com/v1alpha1/nsxserviceaccount_types.go
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.