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
Property spec.ports.targetPort has warning when proving it with a number. The description for the property says:
IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.
Providing a stringified number, (e.g. '8080') produces an error during deployment, so a number is required here. Providing a number here produces this warning:
The property "targetPort" expected a value of type "null | string" but the provided value is of type "8080". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues
Resource Type
Kubernetes core/Service
Api Version
v1
Issue Type
Inaccurate property type(s)
Other Notes
Property
spec.ports.targetPort
has warning when proving it with a number. The description for the property says:Providing a stringified number, (e.g.
'8080'
) produces an error during deployment, so a number is required here. Providing a number here produces this warning:Bicep Repro
Confirm
The text was updated successfully, but these errors were encountered: