Skip to content

Commit e6582d2

Browse files
committed
fix: update k3s version and improve TLS certificate logging
- Update k3s download URLs to version 1.28.15 for both amd64 and arm64 binaries - Enhance certificate checking to log a warning for expired TLS certificates Signed-off-by: ysicing <[email protected]>
1 parent aca16d5 commit e6582d2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

hack/scripts/getk3s.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
set -xe
99

1010
if [ ! -f "hack/bin/k3s-linux-amd64" ]; then
11-
wget -O hack/bin/k3s-linux-amd64 https://github.com/k3s-io/k3s/releases/download/v1.28.14%2Bk3s1/k3s
11+
wget -O hack/bin/k3s-linux-amd64 https://github.com/k3s-io/k3s/releases/download/v1.28.15%2Bk3s1/k3s
1212
fi
1313
if [ ! -f "hack/bin/k3s-linux-arm64" ]; then
14-
wget -O hack/bin/k3s-linux-arm64 https://github.com/k3s-io/k3s/releases/download/v1.28.14%2Bk3s1/k3s-arm64
14+
wget -O hack/bin/k3s-linux-arm64 https://github.com/k3s-io/k3s/releases/download/v1.28.15%2Bk3s1/k3s-arm64
1515
fi
1616

1717
chmod +x hack/bin/k3s-linux-amd64 hack/bin/k3s-linux-arm64

internal/pkg/util/httptls/httptls.go

+4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ func checkCertificate(domain string) (bool, error) {
6565
log.Warnf("domain %s use self-signed certificate", domain)
6666
return true, nil
6767
}
68+
if strings.Contains(err.Error(), "x509: certificate has expired or is not vet valid") {
69+
log.Warnf("domain %s tls expired", domain)
70+
return true, nil
71+
}
6872
return false, err
6973
}
7074
defer func() { _ = resp.Body.Close() }()

0 commit comments

Comments
 (0)