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
415 changes: 415 additions & 0 deletions config/v1/tests/infrastructures.config.openshift.io/AAA_ungated.yaml

Large diffs are not rendered by default.

This file was deleted.

5 changes: 2 additions & 3 deletions config/v1/types_infrastructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -1515,16 +1515,15 @@ type VSpherePlatformTopology struct {
ComputeCluster string `json:"computeCluster"`

// networks is the list of port group network names within this failure domain.
// If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
// Up to 10 network adapters may be defined.
// 10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
// https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
// The available networks (port groups) can be listed using
// `govc ls 'network/*'`
// Networks should be in the form of an absolute path:
// /<datacenter>/network/<portgroup>.
// +required
// +openshift:validation:FeatureGateAwareMaxItems:featureGate="",maxItems=1
// +openshift:validation:FeatureGateAwareMaxItems:featureGate=VSphereMultiNetworks,maxItems=10
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
Comment on lines +1526 to 1527

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

1. networks minitems not documented 📜 Skill insight ✧ Quality

The Networks field has +kubebuilder:validation:MinItems=1 but its comment only documents the
maximum (10) and does not state the minimum item count. This violates the requirement that all
kubebuilder constraint markers be documented in field comments.
Agent Prompt
## Issue description
`Networks` has `MinItems=1` and `MaxItems=10`, but the doc comment only mentions the max (“Up to 10...”) and omits the minimum item constraint.

## Issue Context
Compliance requires that every kubebuilder constraint marker (including `MinItems`/`MaxItems`) is described in the field’s human-readable comment.

## Fix Focus Areas
- config/v1/types_infrastructure.go[1517-1529]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

// +listType=atomic
Networks []string `json:"networks"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand Down
1 change: 0 additions & 1 deletion config/v1/zz_generated.featuregated-crd-manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ infrastructures.config.openshift.io:
- NutanixMultiSubnets
- OnPremDNSRecords
- VSphereHostVMGroupZonal
- VSphereMultiNetworks
- VSphereMultiVCenterDay2
FilenameOperatorName: config-operator
FilenameOperatorOrdering: "01"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand All @@ -719,7 +719,7 @@ spec:
/<datacenter>/network/<portgroup>.
items:
type: string
maxItems: 1
maxItems: 10
minItems: 1
type: array
x-kubernetes-list-type: atomic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand All @@ -718,6 +718,7 @@ spec:
/<datacenter>/network/<portgroup>.
items:
type: string
maxItems: 10
minItems: 1
type: array
x-kubernetes-list-type: atomic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand All @@ -718,6 +718,7 @@ spec:
/<datacenter>/network/<portgroup>.
items:
type: string
maxItems: 10
minItems: 1
type: array
x-kubernetes-list-type: atomic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand All @@ -718,6 +718,7 @@ spec:
/<datacenter>/network/<portgroup>.
items:
type: string
maxItems: 10
minItems: 1
type: array
x-kubernetes-list-type: atomic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand All @@ -718,6 +718,7 @@ spec:
/<datacenter>/network/<portgroup>.
items:
type: string
maxItems: 10
minItems: 1
type: array
x-kubernetes-list-type: atomic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand All @@ -718,6 +718,7 @@ spec:
/<datacenter>/network/<portgroup>.
items:
type: string
maxItems: 10
minItems: 1
type: array
x-kubernetes-list-type: atomic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand All @@ -780,6 +780,7 @@ spec:
/<datacenter>/network/<portgroup>.
items:
type: string
maxItems: 10
minItems: 1
type: array
x-kubernetes-list-type: atomic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand All @@ -718,6 +718,7 @@ spec:
/<datacenter>/network/<portgroup>.
items:
type: string
maxItems: 10
minItems: 1
type: array
x-kubernetes-list-type: atomic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand All @@ -733,6 +733,7 @@ spec:
/<datacenter>/network/<portgroup>.
items:
type: string
maxItems: 10
minItems: 1
type: array
x-kubernetes-list-type: atomic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand All @@ -723,6 +723,7 @@ spec:
/<datacenter>/network/<portgroup>.
items:
type: string
maxItems: 10
minItems: 1
type: array
x-kubernetes-list-type: atomic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ spec:
networks:
description: |-
networks is the list of port group network names within this failure domain.
If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined.
Up to 10 network adapters may be defined.
10 is the maximum number of virtual network devices which may be attached to a VM as defined by:
https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0
The available networks (port groups) can be listed using
Expand All @@ -718,6 +718,7 @@ spec:
/<datacenter>/network/<portgroup>.
items:
type: string
maxItems: 10
minItems: 1
type: array
x-kubernetes-list-type: atomic
Expand Down
Loading