Skip to content

Commit

Permalink
Fix(CUE): fix variable error bug in startup-probe
Browse files Browse the repository at this point in the history
The original variable is "grtcpSocketpc", but this variable does not exist in the file. According to the context, it should be "tcpSocket". In addition, its type needs to be int to work properly.
  • Loading branch information
zengziheng committed Mar 9, 2024
1 parent 1a001e5 commit e5d960a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vela-templates/definitions/internal/trait/startup-probe.cue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ template: {
// +usage=Instructions for assessing container startup status by probing a TCP socket. Either this attribute or the exec attribute or the tcpSocket attribute or the httpGet attribute MUST be specified. This attribute is mutually exclusive with the exec attribute and the httpGet attribute and the gRPC attribute.
tcpSocket?: {
// +usage=Number or name of the port to access on the container.
port: string
port: int
// +usage=Host name to connect to, defaults to the pod IP.
host?: string
}
Expand Down Expand Up @@ -135,7 +135,7 @@ template: {
grpc: parameter.grpc
}
if parameter.tcpSocket != _|_ {
tcpSocket: parameter.grtcpSocketpc
tcpSocket: parameter.tcpSocket
}
}}
}]
Expand Down

0 comments on commit e5d960a

Please sign in to comment.