Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
ValyaB committed Mar 21, 2024
1 parent 6830e87 commit a18947a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions castai/resource_node_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -615,15 +615,15 @@ func toEKSConfig(obj map[string]interface{}) *sdk.NodeconfigV1EKSConfig {
out.VolumeKmsKeyArn = toPtr(v)
}

//if v, ok := obj["target_group"].([]interface{}); ok && len(v) > 0 {
// out.TargetGroup = &sdk.NodeconfigV1EKSConfigTargetGroup{}
// if arn, ok := v[0].(map[string]interface{})["arn"].(string); ok {
// out.TargetGroup.Arn = arn
// }
// if port, ok := v[0].(map[string]interface{})["port"].(int32); ok {
// out.TargetGroup.Port = toPtr(port)
// }
//}
if v, ok := obj["target_group"].([]interface{}); ok && len(v) > 0 {
out.TargetGroup = &sdk.NodeconfigV1TargetGroup{}

Check failure on line 619 in castai/resource_node_configuration.go

View workflow job for this annotation

GitHub Actions / Check if documentation is up to date

out.TargetGroup undefined (type *sdk.NodeconfigV1EKSConfig has no field or method TargetGroup)

Check failure on line 619 in castai/resource_node_configuration.go

View workflow job for this annotation

GitHub Actions / Check if documentation is up to date

undefined: sdk.NodeconfigV1TargetGroup

Check failure on line 619 in castai/resource_node_configuration.go

View workflow job for this annotation

GitHub Actions / lint

out.TargetGroup undefined (type *sdk.NodeconfigV1EKSConfig has no field or method TargetGroup) (typecheck)
if arn, ok := v[0].(map[string]interface{})["arn"].(string); ok && arn != "" {
out.TargetGroup.Arn = toPtr(arn)

Check failure on line 621 in castai/resource_node_configuration.go

View workflow job for this annotation

GitHub Actions / Check if documentation is up to date

out.TargetGroup undefined (type *sdk.NodeconfigV1EKSConfig has no field or method TargetGroup)

Check failure on line 621 in castai/resource_node_configuration.go

View workflow job for this annotation

GitHub Actions / lint

out.TargetGroup undefined (type *sdk.NodeconfigV1EKSConfig has no field or method TargetGroup) (typecheck)
}
if port, ok := v[0].(map[string]interface{})["port"].(int32); ok && port > 0 && port < 65536 {
out.TargetGroup.Port = toPtr(port)

Check failure on line 624 in castai/resource_node_configuration.go

View workflow job for this annotation

GitHub Actions / Check if documentation is up to date

out.TargetGroup undefined (type *sdk.NodeconfigV1EKSConfig has no field or method TargetGroup)

Check failure on line 624 in castai/resource_node_configuration.go

View workflow job for this annotation

GitHub Actions / lint

out.TargetGroup undefined (type *sdk.NodeconfigV1EKSConfig has no field or method TargetGroup) (typecheck)
}
}

return out
}
Expand Down

0 comments on commit a18947a

Please sign in to comment.