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.

Signed-off-by: codeReaper2001 <2210086948@qq.com>
  • Loading branch information
zengziheng committed Mar 9, 2024
1 parent 1a001e5 commit 6ac92d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/vela-core/templates/defwithtemplate/startup-probe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
// +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 @@ -144,7 +144,7 @@ spec:
grpc: parameter.grpc
}
if parameter.tcpSocket != _|_ {
tcpSocket: parameter.grtcpSocketpc
tcpSocket: parameter.tcpSocket
}
}}
}]
Expand Down
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 6ac92d4

Please sign in to comment.