You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest vpc-go-sdk release introduced a breaking change to
SecurityGroupRuleProtocol: the value 'all' was removed and replaced
by 'icmp_tcp_udp'. This commit updates the security group rule
creation and validation to use 'icmp_tcp_udp' instead of 'all'.
// VPCSecurityGroupRuleProtocolTCP defines the Rule is for TCP network protocol.
@@ -446,8 +446,8 @@ type VPCSecurityGroupRuleRemote struct {
446
446
447
447
// VPCSecurityGroupRulePrototype defines a VPC Security Group Rule's traffic specifics for a series of remotes (destinations or sources).
448
448
// +kubebuilder:validation:XValidation:rule="self.protocol != 'icmp' ? (!has(self.icmpCode) && !has(self.icmpType)) : true",message="icmpCode and icmpType are only supported for VPCSecurityGroupRuleProtocolIcmp protocol"
449
-
// +kubebuilder:validation:XValidation:rule="self.protocol == 'all' ? !has(self.portRange) : true",message="portRange is not valid for VPCSecurityGroupRuleProtocolAll protocol"
450
449
// +kubebuilder:validation:XValidation:rule="self.protocol == 'icmp' ? !has(self.portRange) : true",message="portRange is not valid for VPCSecurityGroupRuleProtocolIcmp protocol"
450
+
// +kubebuilder:validation:XValidation:rule="self.protocol == 'icmp_tcp_udp' ? !has(self.portRange) : true",message="portRange is not valid for VPCSecurityGroupRuleProtocolIcmpTCPUDP protocol"
451
451
typeVPCSecurityGroupRulePrototypestruct {
452
452
// icmpCode is the ICMP code for the Rule.
453
453
// Only used when Protocol is VPCSecurityGroupRuleProtocolIcmp.
// VPCSecurityGroupRuleProtocolTCP defines the Rule is for TCP network protocol.
@@ -398,8 +398,8 @@ type VPCSecurityGroupRuleRemote struct {
398
398
399
399
// VPCSecurityGroupRulePrototype defines a VPC Security Group Rule's traffic specifics for a series of remotes (destinations or sources).
400
400
// +kubebuilder:validation:XValidation:rule="self.protocol != 'icmp' ? (!has(self.icmpCode) && !has(self.icmpType)) : true",message="icmpCode and icmpType are only supported for VPCSecurityGroupRuleProtocolIcmp protocol"
401
-
// +kubebuilder:validation:XValidation:rule="self.protocol == 'all' ? !has(self.portRange) : true",message="portRange is not valid for VPCSecurityGroupRuleProtocolAll protocol"
402
401
// +kubebuilder:validation:XValidation:rule="self.protocol == 'icmp' ? !has(self.portRange) : true",message="portRange is not valid for VPCSecurityGroupRuleProtocolIcmp protocol"
402
+
// +kubebuilder:validation:XValidation:rule="self.protocol == 'icmp_tcp_udp' ? !has(self.portRange) : true",message="portRange is not valid for VPCSecurityGroupRuleProtocolIcmpTCPUDP protocol"
403
403
typeVPCSecurityGroupRulePrototypestruct {
404
404
// icmpCode is the ICMP code for the Rule.
405
405
// Only used when Protocol is VPCSecurityGroupRuleProtocolIcmp.
0 commit comments