From 9bced78f605584ebd7259f26f8a1f4523ac04b7c Mon Sep 17 00:00:00 2001 From: Shraddha Bang Date: Thu, 26 Sep 2024 13:51:18 -0700 Subject: [PATCH] GO2 SDK Migration bug fix on comparators --- pkg/equality/elbv2/compare_option_for_actions.go | 1 + pkg/equality/elbv2/compare_option_for_rule_conditions.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/pkg/equality/elbv2/compare_option_for_actions.go b/pkg/equality/elbv2/compare_option_for_actions.go index b267f5984..f57a6094f 100644 --- a/pkg/equality/elbv2/compare_option_for_actions.go +++ b/pkg/equality/elbv2/compare_option_for_actions.go @@ -30,6 +30,7 @@ func CompareOptionForForwardActionConfig() cmp.Option { return cmp.Options{ equality.IgnoreLeftHandUnset(elbv2types.ForwardActionConfig{}, "TargetGroupStickinessConfig"), cmpopts.IgnoreUnexported(elbv2types.ForwardActionConfig{}), + cmpopts.IgnoreUnexported(elbv2types.TargetGroupStickinessConfig{}), CompareOptionForTargetGroupTuples(), } } diff --git a/pkg/equality/elbv2/compare_option_for_rule_conditions.go b/pkg/equality/elbv2/compare_option_for_rule_conditions.go index 7fd87fe22..2dab4c94b 100644 --- a/pkg/equality/elbv2/compare_option_for_rule_conditions.go +++ b/pkg/equality/elbv2/compare_option_for_rule_conditions.go @@ -11,9 +11,11 @@ func CompareOptionForRuleCondition() cmp.Option { return cmp.Options{ cmpopts.IgnoreUnexported(elbv2types.RuleCondition{}), cmpopts.IgnoreUnexported(elbv2types.HostHeaderConditionConfig{}), + cmpopts.IgnoreUnexported(elbv2types.HttpHeaderConditionConfig{}), cmpopts.IgnoreUnexported(elbv2types.HttpRequestMethodConditionConfig{}), cmpopts.IgnoreUnexported(elbv2types.PathPatternConditionConfig{}), cmpopts.IgnoreUnexported(elbv2types.QueryStringConditionConfig{}), + cmpopts.IgnoreUnexported(elbv2types.QueryStringKeyValuePair{}), cmpopts.IgnoreUnexported(elbv2types.SourceIpConditionConfig{}), cmpopts.IgnoreFields(elbv2types.RuleCondition{}, "Values"), }