diff --git a/tfplan2cai/converters/google/resources/services/gkehub2/gkehub2_feature.go b/tfplan2cai/converters/google/resources/services/gkehub2/gkehub2_feature.go index c8bb978b2..743ae16e3 100644 --- a/tfplan2cai/converters/google/resources/services/gkehub2/gkehub2_feature.go +++ b/tfplan2cai/converters/google/resources/services/gkehub2/gkehub2_feature.go @@ -283,13 +283,6 @@ func expandGKEHub2FeatureFleetDefaultMemberConfigConfigmanagement(v interface{}, original := raw.(map[string]interface{}) transformed := make(map[string]interface{}) - transformedVersion, err := expandGKEHub2FeatureFleetDefaultMemberConfigConfigmanagementVersion(original["version"], d, config) - if err != nil { - return nil, err - } else if val := reflect.ValueOf(transformedVersion); val.IsValid() && !tpgresource.IsEmptyValue(val) { - transformed["version"] = transformedVersion - } - transformedConfigSync, err := expandGKEHub2FeatureFleetDefaultMemberConfigConfigmanagementConfigSync(original["config_sync"], d, config) if err != nil { return nil, err @@ -300,10 +293,6 @@ func expandGKEHub2FeatureFleetDefaultMemberConfigConfigmanagement(v interface{}, return transformed, nil } -func expandGKEHub2FeatureFleetDefaultMemberConfigConfigmanagementVersion(v interface{}, d tpgresource.TerraformResourceData, config *transport_tpg.Config) (interface{}, error) { - return v, nil -} - func expandGKEHub2FeatureFleetDefaultMemberConfigConfigmanagementConfigSync(v interface{}, d tpgresource.TerraformResourceData, config *transport_tpg.Config) (interface{}, error) { l := v.([]interface{}) if len(l) == 0 || l[0] == nil { @@ -485,6 +474,13 @@ func expandGKEHub2FeatureFleetDefaultMemberConfigConfigmanagementConfigSyncOci(v transformed["syncWaitSecs"] = transformedSyncWaitSecs } + transformedVersion, err := expandGKEHub2FeatureFleetDefaultMemberConfigConfigmanagementConfigSyncOciVersion(original["version"], d, config) + if err != nil { + return nil, err + } else if val := reflect.ValueOf(transformedVersion); val.IsValid() && !tpgresource.IsEmptyValue(val) { + transformed["version"] = transformedVersion + } + return transformed, nil } @@ -508,6 +504,10 @@ func expandGKEHub2FeatureFleetDefaultMemberConfigConfigmanagementConfigSyncOciSy return v, nil } +func expandGKEHub2FeatureFleetDefaultMemberConfigConfigmanagementConfigSyncOciVersion(v interface{}, d tpgresource.TerraformResourceData, config *transport_tpg.Config) (interface{}, error) { + return v, nil +} + func expandGKEHub2FeatureFleetDefaultMemberConfigPolicycontroller(v interface{}, d tpgresource.TerraformResourceData, config *transport_tpg.Config) (interface{}, error) { l := v.([]interface{}) if len(l) == 0 || l[0] == nil {