Skip to content

Commit 4e278fc

Browse files
authored
Merge pull request #649 from sanjayv3rghese/update-network-types
Add IPAMMode to Network Object
2 parents 58ec6ae + fbfb025 commit 4e278fc

File tree

99 files changed

+124
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+124
-96
lines changed

crd/apis/gcpfirewall/v1/zz_generated.register.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crd/apis/gcpfirewall/v1beta1/zz_generated.register.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crd/apis/network/v1/network_types.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@ const (
4949
GKE ProviderType = "GKE"
5050
)
5151

52+
// IPAMModeType defines the IPAM mode for the network. Can be 'internal' or 'external'.
53+
// +kubebuilder:validation:Enum=Internal;External
54+
type IPAMModeType string
55+
56+
const (
57+
// Pod IPs will be allocated internally by ipam-controller based on ClusterCIDRConfig.
58+
InternalMode IPAMModeType = "Internal"
59+
// Pod IPs will be allocated by the external DHCP server.
60+
ExternalMode IPAMModeType = "External"
61+
)
62+
5263
// +genclient
5364
// +genclient:nonNamespaced
5465
// +kubebuilder:object:root=true
@@ -117,6 +128,11 @@ type NetworkSpec struct {
117128
// configurations for the network.
118129
// +optional
119130
ParametersRef *NetworkParametersReference `json:"parametersRef,omitempty"`
131+
132+
// IPAMMode specifies the IPAM mode for the network.
133+
// Valid options include: internal, external
134+
// +optional
135+
IPAMMode *IPAMModeType `json:"IPAMMode,omitempty"`
120136
}
121137

122138
// NetworkParametersReference identifies an API object containing additional parameters for the network.

crd/apis/network/v1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crd/apis/network/v1/zz_generated.register.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crd/apis/network/v1alpha1/zz_generated.register.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crd/client/gcpfirewall/clientset/versioned/clientset.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crd/client/gcpfirewall/clientset/versioned/fake/clientset_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crd/client/gcpfirewall/clientset/versioned/fake/doc.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crd/client/gcpfirewall/clientset/versioned/fake/register.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)