Skip to content

Commit 066d442

Browse files
committed
Merge remote-tracking branch 'origin/main' into k0s-1-28-9
2 parents 3db156b + 0ba543f commit 066d442

File tree

7 files changed

+11
-14
lines changed

7 files changed

+11
-14
lines changed

.github/workflows/release-prod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22
on:
33
push:
44
tags:
5-
- "v*.*.*"
5+
- "*.*.*"
66
permissions:
77
contents: write
88
jobs:

cmd/embedded-cluster/restore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ func isBackupRestorable(backup *velerov1.Backup, rel *release.ChannelRelease, is
332332
if backup.Annotations["kots.io/embedded-cluster"] != "true" {
333333
return false, "is not an embedded cluster backup"
334334
}
335-
if v := backup.Annotations["kots.io/embedded-cluster-version"]; v != defaults.Version {
335+
if v := strings.TrimPrefix(backup.Annotations["kots.io/embedded-cluster-version"], "v"); v != strings.TrimPrefix(defaults.Version, "v") {
336336
return false, fmt.Sprintf("has a different embedded cluster version (%q) than the current version (%q)", v, defaults.Version)
337337
}
338338
if backup.Status.Phase != velerov1.BackupPhaseCompleted {

e2e/scripts/check-pre-minio-removal-installation-state.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,19 @@ wait_for_installation() {
2626
}
2727

2828
wait_for_nginx_pods() {
29-
ready=$(kubectl get pods -n kotsadm -o jsonpath='{.items[*].metadata.name} {.items[*].status.phase}' | grep "nginx" | grep -c Running || true)
29+
ready=$(kubectl get pods -n kotsadm | grep "nginx" | grep -c Running || true)
3030
counter=0
3131
while [ "$ready" -lt "1" ]; do
3232
if [ "$counter" -gt 36 ]; then
3333
echo "nginx pods did not appear"
34-
kubectl get pods -n kotsadm -o jsonpath='{.items[*].metadata.name} {.items[*].status.phase}'
3534
kubectl get pods -n kotsadm
3635
kubectl logs -n kotsadm -l app=kotsadm
3736
return 1
3837
fi
3938
sleep 5
4039
counter=$((counter+1))
4140
echo "Waiting for nginx pods"
42-
ready=$(kubectl get pods -n kotsadm -o jsonpath='{.items[*].metadata.name} {.items[*].status.phase}' | grep "nginx" | grep -c Running || true)
41+
ready=$(kubectl get pods -n kotsadm | grep "nginx" | grep -c Running || true)
4342
kubectl get pods -n nginx 2>&1 || true
4443
echo "ready: $ready"
4544
done

e2e/scripts/pre-minio-removal-install.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,19 @@ deploy_app() {
147147
}
148148

149149
wait_for_nginx_pods() {
150-
ready=$(kubectl get pods -n kotsadm -o jsonpath='{.items[*].metadata.name} {.items[*].status.phase}' | grep "nginx" | grep -c Running || true)
150+
ready=$(kubectl get pods -n kotsadm | grep "nginx" | grep -c Running || true)
151151
counter=0
152152
while [ "$ready" -lt "1" ]; do
153153
if [ "$counter" -gt 36 ]; then
154154
echo "nginx pods did not appear"
155-
kubectl get pods -n kotsadm -o jsonpath='{.items[*].metadata.name} {.items[*].status.phase}'
156155
kubectl get pods -n kotsadm
157156
kubectl logs -n kotsadm -l app=kotsadm
158157
return 1
159158
fi
160159
sleep 5
161160
counter=$((counter+1))
162161
echo "Waiting for nginx pods"
163-
ready=$(kubectl get pods -n kotsadm -o jsonpath='{.items[*].metadata.name} {.items[*].status.phase}' | grep "nginx" | grep -c Running || true)
162+
ready=$(kubectl get pods -n kotsadm | grep "nginx" | grep -c Running || true)
164163
kubectl get pods -n nginx 2>&1 || true
165164
echo "ready: $ready"
166165
done

e2e/scripts/single-node-install.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,20 +151,19 @@ deploy_app() {
151151
}
152152

153153
wait_for_nginx_pods() {
154-
ready=$(kubectl get pods -n kotsadm -o jsonpath='{.items[*].metadata.name} {.items[*].status.phase}' | grep "nginx" | grep -c Running || true)
154+
ready=$(kubectl get pods -n kotsadm | grep "nginx" | grep -c Running || true)
155155
counter=0
156156
while [ "$ready" -lt "1" ]; do
157157
if [ "$counter" -gt 36 ]; then
158158
echo "nginx pods did not appear"
159-
kubectl get pods -n kotsadm -o jsonpath='{.items[*].metadata.name} {.items[*].status.phase}'
160159
kubectl get pods -n kotsadm
161160
kubectl logs -n kotsadm -l app=kotsadm
162161
return 1
163162
fi
164163
sleep 5
165164
counter=$((counter+1))
166165
echo "Waiting for nginx pods"
167-
ready=$(kubectl get pods -n kotsadm -o jsonpath='{.items[*].metadata.name} {.items[*].status.phase}' | grep "nginx" | grep -c Running || true)
166+
ready=$(kubectl get pods -n kotsadm | grep "nginx" | grep -c Running || true)
168167
kubectl get pods -n nginx 2>&1 || true
169168
echo "ready: $ready"
170169
done

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ require (
2727
golang.org/x/term v0.20.0
2828
gopkg.in/yaml.v2 v2.4.0
2929
gopkg.in/yaml.v3 v3.0.1
30-
k8s.io/api v0.30.0
30+
k8s.io/api v0.30.1
3131
k8s.io/apimachinery v0.30.1
3232
oras.land/oras-go/v2 v2.5.0
3333
sigs.k8s.io/controller-runtime v0.18.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ helm.sh/helm/v3 v3.14.4 h1:6FSpEfqyDalHq3kUr4gOMThhgY55kXUEjdQoyODYnrM=
485485
helm.sh/helm/v3 v3.14.4/go.mod h1:Tje7LL4gprZpuBNTbG34d1Xn5NmRT3OWfBRwpOSer9I=
486486
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
487487
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
488-
k8s.io/api v0.30.0 h1:siWhRq7cNjy2iHssOB9SCGNCl2spiF1dO3dABqZ8niA=
489-
k8s.io/api v0.30.0/go.mod h1:OPlaYhoHs8EQ1ql0R/TsUgaRPhpKNxIMrKQfWUp8QSE=
488+
k8s.io/api v0.30.1 h1:kCm/6mADMdbAxmIh0LBjS54nQBE+U4KmbCfIkF5CpJY=
489+
k8s.io/api v0.30.1/go.mod h1:ddbN2C0+0DIiPntan/bye3SW3PdwLa11/0yqwvuRrJM=
490490
k8s.io/apiextensions-apiserver v0.30.0 h1:jcZFKMqnICJfRxTgnC4E+Hpcq8UEhT8B2lhBcQ+6uAs=
491491
k8s.io/apiextensions-apiserver v0.30.0/go.mod h1:N9ogQFGcrbWqAY9p2mUAL5mGxsLqwgtUce127VtRX5Y=
492492
k8s.io/apimachinery v0.30.1 h1:ZQStsEfo4n65yAdlGTfP/uSHMQSoYzU/oeEbkmF7P2U=

0 commit comments

Comments
 (0)