Change container base image to cgr.dev/chainguard/static (#2881)
* Change container base image to cgr.dev/chainguard/static * Lint fixes * fix test failure * Add router deployment wait * add check command in upgrade script --------- Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
FROM alpine:3.18
|
FROM cgr.dev/chainguard/static:latest
|
||||||
RUN apk add --update ca-certificates
|
|
||||||
COPY builder /builder
|
COPY builder /builder
|
||||||
ENTRYPOINT ["/builder"]
|
ENTRYPOINT ["/builder"]
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
FROM alpine:3.18
|
FROM cgr.dev/chainguard/static:latest
|
||||||
RUN apk add --update ca-certificates
|
|
||||||
COPY fetcher /
|
COPY fetcher /
|
||||||
ENTRYPOINT ["/fetcher"]
|
ENTRYPOINT ["/fetcher"]
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
FROM alpine:3.18
|
FROM cgr.dev/chainguard/static:latest
|
||||||
RUN apk add --update ca-certificates
|
|
||||||
COPY fission-bundle /
|
COPY fission-bundle /
|
||||||
ENTRYPOINT ["/fission-bundle"]
|
ENTRYPOINT ["/fission-bundle"]
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
FROM alpine:3.18
|
FROM cgr.dev/chainguard/static:latest
|
||||||
RUN apk add --update ca-certificates
|
|
||||||
COPY pre-upgrade-checks /
|
COPY pre-upgrade-checks /
|
||||||
ENTRYPOINT ["/pre-upgrade-checks"]
|
ENTRYPOINT ["/pre-upgrade-checks"]
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
FROM alpine:3.18
|
FROM cgr.dev/chainguard/static:latest
|
||||||
RUN apk add --update ca-certificates
|
|
||||||
COPY reporter /
|
COPY reporter /
|
||||||
ENTRYPOINT ["/reporter"]
|
ENTRYPOINT ["/reporter"]
|
||||||
@@ -37,8 +37,6 @@ create_archive
|
|||||||
uploadResp=$(fission ar upload --name "$tmp_dir"/test-deploy-pkg.zip)
|
uploadResp=$(fission ar upload --name "$tmp_dir"/test-deploy-pkg.zip)
|
||||||
filename=$(echo "$uploadResp" | cut -d':' -f2 | tr -d ' ')
|
filename=$(echo "$uploadResp" | cut -d':' -f2 | tr -d ' ')
|
||||||
|
|
||||||
kubectl exec -i "$podname" -n fission -- /bin/sh -c "ls $filename"
|
|
||||||
|
|
||||||
# Test for list
|
# Test for list
|
||||||
listResp=$(fission ar list)
|
listResp=$(fission ar list)
|
||||||
|
|
||||||
|
|||||||
@@ -63,8 +63,9 @@ create_fission_objects() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test_fission_objects() {
|
test_fission_objects() {
|
||||||
fission env list
|
doit fission env list
|
||||||
fission function list
|
doit fission function list
|
||||||
|
doit fission check -v 2
|
||||||
echo "-----------------###############################--------------------"
|
echo "-----------------###############################--------------------"
|
||||||
echo " Running fission object tests"
|
echo " Running fission object tests"
|
||||||
echo "-----------------###############################--------------------"
|
echo "-----------------###############################--------------------"
|
||||||
@@ -111,6 +112,7 @@ install_current_release() {
|
|||||||
doit helm dependency update "$ROOT"/charts/fission-all
|
doit helm dependency update "$ROOT"/charts/fission-all
|
||||||
doit make update-crds
|
doit make update-crds
|
||||||
doit helm upgrade --debug --wait --namespace $ns --set $HELM_VARS_LATEST_RELEASE fission "$ROOT"/charts/fission-all
|
doit helm upgrade --debug --wait --namespace $ns --set $HELM_VARS_LATEST_RELEASE fission "$ROOT"/charts/fission-all
|
||||||
|
doit kubectl rollout status deployment/router -n $ns --watch --timeout 2m
|
||||||
}
|
}
|
||||||
|
|
||||||
"$@"
|
"$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user