Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions build/yaml/crd/vpc/crd.nsx.vmware.com_networkinfos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ spec:
openAPIV3Schema:
description: NetworkInfo is used to report the network information for a namespace.
properties:
allowedDNSDomainsdns:
description: AllowedDNSDomains specifies the permitted DNS domain names
in the namespace.
items:
type: string
type: array
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Expand Down Expand Up @@ -69,6 +75,7 @@ spec:
type: object
type: array
required:
- allowedDNSDomainsdns
- vpcs
type: object
served: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ spec:
Defaults to 32.
maximum: 65536
type: integer
dnsZones:
description: DNSZones specifies the list of permitted DNS zones, identified
by their NSX paths.
items:
type: string
type: array
nsxProject:
description: NSX Project the Namespace is associated with.
type: string
Expand Down
4 changes: 3 additions & 1 deletion pkg/apis/vpc/v1alpha1/networkinfo_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ type NetworkInfo struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

VPCs []VPCState `json:"vpcs"`
VPCs []VPCState `json:"vpcs"`
// AllowedDNSDomains specifies the permitted DNS domain names in the namespace.
AllowedDNSDomains []string `json:"allowedDNSDomainsdns"`
}

// +kubebuilder:object:root=true
Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/vpc/v1alpha1/vpcnetworkconfiguration_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ type VPCNetworkConfigurationSpec struct {
// +kubebuilder:default=32
// +kubebuilder:validation:Maximum:=65536
DefaultSubnetSize int `json:"defaultSubnetSize,omitempty"`

// DNSZones specifies the list of permitted DNS zones, identified by their NSX paths.
DNSZones []string `json:"dnsZones,omitempty"`
}

// SharedSubnet defines the information for a Subnet shared with vSphere Namespace.
Expand Down
10 changes: 10 additions & 0 deletions pkg/apis/vpc/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading