Skip to content

Commit

Permalink
fix: 修复 probe schema 大小写错误
Browse files Browse the repository at this point in the history
  • Loading branch information
tangx committed Mar 12, 2024
1 parent 0f6cd5a commit e1bfe3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/tokube/container_probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ func toHTTPProbeHandler(action string, headers map[string]string) corev1.ProbeHa
panic(err)
}

// convert to upper case
schema := strings.ToUpper(ur.Scheme)

handler := corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Scheme: corev1.URIScheme(ur.Scheme),
Scheme: corev1.URIScheme(schema),
Host: ur.Hostname(),
Port: intstr.Parse(ur.Port()),
Path: ur.Path,
Expand Down

0 comments on commit e1bfe3f

Please sign in to comment.