-
Notifications
You must be signed in to change notification settings - Fork 708
CORS-4387: Promote AWS DualStack to Default #2797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1287,6 +1287,30 @@ spec: | |
| ClusterHosted | ||
| rule: 'has(self.dnsType) && self.dnsType != ''ClusterHosted'' | ||
| ? !has(self.clusterHosted) : true' | ||
| ipFamily: | ||
| default: IPv4 | ||
| description: |- | ||
| ipFamily specifies the IP protocol family that should be used for AWS | ||
| network resources. This controls whether AWS resources are created with | ||
| IPv4-only, or dual-stack networking with IPv4 or IPv6 as the primary | ||
| protocol family. | ||
|
|
||
| Valid values are: | ||
| * "IPv4" (default): Cloud platform resources use IPv4 addressing only. | ||
| * "DualStackIPv6Primary": Cloud platform resources use dual-stack networking with IPv6 as the primary protocol family. | ||
| * "DualStackIPv4Primary": Cloud platform resources use dual-stack networking with IPv4 as the primary protocol family. | ||
|
|
||
| When omitted, this field defaults to "IPv4". | ||
|
|
||
| This field is immutable and cannot be changed once set. | ||
| enum: | ||
| - IPv4 | ||
| - DualStackIPv6Primary | ||
| - DualStackIPv4Primary | ||
| type: string | ||
| x-kubernetes-validations: | ||
| - message: ipFamily is immutable once set | ||
| rule: oldSelf == '' || self == oldSelf | ||
|
Comment on lines
+1290
to
+1313
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1. ipfamily docs omit constraints The new ipFamily schema includes a default, an enum, and an immutability x-kubernetes-validations rule, but its description does not document the default/allowed values or the immutability constraint. This violates the requirement that validation marker semantics be documented in field comments/user-facing docs. Agent Prompt
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This sounds like a legitimate issue to me
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right. I think this is just saying the comment should contain something like: It's also outside the scope of this PR, so I would consider it more of a nice to have
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nrb, @patrickdillon I can add a follow-up patch for all 3 platforms. I don't think we had followed that pattern in the past. But a good recommendation to follow for the future. |
||
| region: | ||
| description: region holds the default AWS region for new AWS | ||
| resources created by the cluster. | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove duplicated
cloudLoadBalancerConfigmapping keys in the same object.Both
initialandupdatedpayloads definecloudLoadBalancerConfigtwice underplatformStatus.aws. Duplicate YAML keys are parser-dependent and can invalidate or mask this test case.Suggested fix
status: controlPlaneTopology: HighlyAvailable infrastructureTopology: HighlyAvailable platform: AWS platformStatus: aws: cloudLoadBalancerConfig: dnsType: PlatformDefault region: us-east-1 - cloudLoadBalancerConfig: - dnsType: PlatformDefault ipFamily: DualStackIPv6Primary type: AWSApply the same deletion in both the
initialandupdatedblocks.Also applies to: 255-260
🤖 Prompt for AI Agents