Update all images used to GHCR repo (#3154)
This commit is contained in:
@@ -91,7 +91,7 @@ aggregation — also helps with ops on your Fission deployment.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Add the stock NodeJS env to your Fission deployment
|
# Add the stock NodeJS env to your Fission deployment
|
||||||
$ fission env create --name nodejs --image fission/node-env
|
$ fission env create --name nodejs --image ghcr.io/fission/node-env
|
||||||
|
|
||||||
# Create a function with a javascript one-liner that prints "hello world"
|
# Create a function with a javascript one-liner that prints "hello world"
|
||||||
$ fission function create --name hello --env nodejs --code https://raw.githubusercontent.com/fission/examples/master/nodejs/hello.js
|
$ fission function create --name hello --env nodejs --code https://raw.githubusercontent.com/fission/examples/master/nodejs/hello.js
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: fission-all
|
name: fission-all
|
||||||
version: v1.21.0-rc2
|
version: v1.21.0
|
||||||
appVersion: v1.21.0-rc2
|
appVersion: v1.21.0
|
||||||
description: Fission is a fast serverless framework for Kubernetes.
|
description: Fission is a fast serverless framework for Kubernetes.
|
||||||
kubeVersion: ">=1.27.0-0"
|
kubeVersion: ">=1.27.0-0"
|
||||||
home: https://fission.io/
|
home: https://fission.io/
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ Windows:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
# Create an environment
|
# Create an environment
|
||||||
$ fission env create --name nodejs --image fission/node-env --namespace {{ .Values.defaultNamespace }}
|
$ fission env create --name nodejs --image ghcr.io/fission/node-env --namespace {{ .Values.defaultNamespace }}
|
||||||
|
|
||||||
# Get a hello world
|
# Get a hello world
|
||||||
$ curl https://raw.githubusercontent.com/fission/examples/master/nodejs/hello.js > hello.js
|
$ curl https://raw.githubusercontent.com/fission/examples/master/nodejs/hello.js > hello.js
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ image: fission/fission-bundle
|
|||||||
## It is also used by the chart to identify version of the few more images apart from fission-bundle.
|
## It is also used by the chart to identify version of the few more images apart from fission-bundle.
|
||||||
## Keep it empty for using latest tag.
|
## Keep it empty for using latest tag.
|
||||||
##
|
##
|
||||||
imageTag: v1.21.0-rc2
|
imageTag: v1.21.0
|
||||||
|
|
||||||
## pullPolicy represents the pull policy to use for images in the chart.
|
## pullPolicy represents the pull policy to use for images in the chart.
|
||||||
##
|
##
|
||||||
@@ -124,7 +124,7 @@ fetcher:
|
|||||||
## image represents the image of the fetcher component.
|
## image represents the image of the fetcher component.
|
||||||
image: fission/fetcher
|
image: fission/fetcher
|
||||||
## imageTag represents the tag of the image of the fetcher component.
|
## imageTag represents the tag of the image of the fetcher component.
|
||||||
imageTag: v1.21.0-rc2
|
imageTag: v1.21.0
|
||||||
|
|
||||||
## Fetcher is only for to downloading or uploading archive.
|
## Fetcher is only for to downloading or uploading archive.
|
||||||
## Normally, you don't need to change the value here, unless necessary.
|
## Normally, you don't need to change the value here, unless necessary.
|
||||||
@@ -696,7 +696,7 @@ preUpgradeChecks:
|
|||||||
image: fission/pre-upgrade-checks
|
image: fission/pre-upgrade-checks
|
||||||
## pre-install/pre-upgrade checks image version
|
## pre-install/pre-upgrade checks image version
|
||||||
##
|
##
|
||||||
imageTag: v1.21.0-rc2
|
imageTag: v1.21.0
|
||||||
|
|
||||||
## Fission post-install/post-upgrade reporting live in this image
|
## Fission post-install/post-upgrade reporting live in this image
|
||||||
##
|
##
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
|||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.17.0
|
controller-gen.kubebuilder.io/version: v0.17.1
|
||||||
name: canaryconfigs.fission.io
|
name: canaryconfigs.fission.io
|
||||||
spec:
|
spec:
|
||||||
group: fission.io
|
group: fission.io
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
|||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.17.0
|
controller-gen.kubebuilder.io/version: v0.17.1
|
||||||
name: environments.fission.io
|
name: environments.fission.io
|
||||||
spec:
|
spec:
|
||||||
group: fission.io
|
group: fission.io
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
|||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.17.0
|
controller-gen.kubebuilder.io/version: v0.17.1
|
||||||
name: functions.fission.io
|
name: functions.fission.io
|
||||||
spec:
|
spec:
|
||||||
group: fission.io
|
group: fission.io
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
|||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.17.0
|
controller-gen.kubebuilder.io/version: v0.17.1
|
||||||
name: httptriggers.fission.io
|
name: httptriggers.fission.io
|
||||||
spec:
|
spec:
|
||||||
group: fission.io
|
group: fission.io
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
|||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.17.0
|
controller-gen.kubebuilder.io/version: v0.17.1
|
||||||
name: kuberneteswatchtriggers.fission.io
|
name: kuberneteswatchtriggers.fission.io
|
||||||
spec:
|
spec:
|
||||||
group: fission.io
|
group: fission.io
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
|||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.17.0
|
controller-gen.kubebuilder.io/version: v0.17.1
|
||||||
name: messagequeuetriggers.fission.io
|
name: messagequeuetriggers.fission.io
|
||||||
spec:
|
spec:
|
||||||
group: fission.io
|
group: fission.io
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
|||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.17.0
|
controller-gen.kubebuilder.io/version: v0.17.1
|
||||||
name: packages.fission.io
|
name: packages.fission.io
|
||||||
spec:
|
spec:
|
||||||
group: fission.io
|
group: fission.io
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
|||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.17.0
|
controller-gen.kubebuilder.io/version: v0.17.1
|
||||||
name: timetriggers.fission.io
|
name: timetriggers.fission.io
|
||||||
spec:
|
spec:
|
||||||
group: fission.io
|
group: fission.io
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ package v1
|
|||||||
import (
|
import (
|
||||||
"k8s.io/api/autoscaling/v2"
|
"k8s.io/api/autoscaling/v2"
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
|
|||||||
@@ -55,10 +55,10 @@ func buildPackage(ctx context.Context, logger *zap.Logger, fissionClient version
|
|||||||
return nil, e, ferror.MakeError(http.StatusInternalServerError, e)
|
return nil, e, ferror.MakeError(http.StatusInternalServerError, e)
|
||||||
}
|
}
|
||||||
|
|
||||||
svcName := fmt.Sprintf("%v-%v.%v", env.ObjectMeta.Name, env.ObjectMeta.ResourceVersion, envBuilderNamespace)
|
svcName := fmt.Sprintf("%s-%s.%s", env.Name, env.ResourceVersion, envBuilderNamespace)
|
||||||
srcPkgFilename := fmt.Sprintf("%v-%v", pkg.ObjectMeta.Name, strings.ToLower(uniuri.NewLen(6)))
|
srcPkgFilename := fmt.Sprintf("%s-%s", pkg.Name, strings.ToLower(uniuri.NewLen(6)))
|
||||||
fetcherC := fetcherClient.MakeClient(logger, fmt.Sprintf("http://%v:8000", svcName))
|
fetcherC := fetcherClient.MakeClient(logger, fmt.Sprintf("http://%s:8000", svcName))
|
||||||
builderC := builderClient.MakeClient(logger, fmt.Sprintf("http://%v:8001", svcName))
|
builderC := builderClient.MakeClient(logger, fmt.Sprintf("http://%s:8001", svcName))
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
logger.Info("cleaning src pkg from builder storage", zap.String("source_package", srcPkgFilename))
|
logger.Info("cleaning src pkg from builder storage", zap.String("source_package", srcPkgFilename))
|
||||||
|
|||||||
@@ -15,6 +15,6 @@ spec:
|
|||||||
cpu: 300m
|
cpu: 300m
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
runtime:
|
runtime:
|
||||||
image: fission/python-env
|
image: ghcr.io/fission/python-env
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ spec:
|
|||||||
cpu: 300m
|
cpu: 300m
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
runtime:
|
runtime:
|
||||||
image: fission/python-env
|
image: ghcr.io/fission/python-env
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
container:
|
container:
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ do
|
|||||||
echo "Creating python env"
|
echo "Creating python env"
|
||||||
# Use short grace period time to speed up resource recycle time
|
# Use short grace period time to speed up resource recycle time
|
||||||
# Use high min/max CPU so that K8S will distribute pod in different nodes
|
# Use high min/max CPU so that K8S will distribute pod in different nodes
|
||||||
fission env create --name python --version 2 --image fission/python-env --period 5 --mincpu 300 --maxcpu 300 --minmemory 256 --maxmemory 256
|
fission env create --name python --version 2 --image ghcr.io/fission/python-env --period 5 --mincpu 300 --maxcpu 300 --minmemory 256 --maxmemory 256
|
||||||
trap "fission env delete --name python" EXIT
|
trap "fission env delete --name python" EXIT
|
||||||
|
|
||||||
sleep 30
|
sleep 30
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ do
|
|||||||
version=1
|
version=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fission env create --name python --version ${version} --image fission/python-env --period 5 --mincpu 300 --maxcpu 300 --minmemory 256 --maxmemory 256
|
fission env create --name python --version ${version} --image ghcr.io/fission/python-env --period 5 --mincpu 300 --maxcpu 300 --minmemory 256 --maxmemory 256
|
||||||
|
|
||||||
trap "fission env delete --name python" EXIT
|
trap "fission env delete --name python" EXIT
|
||||||
|
|
||||||
|
|||||||
+15
-11
@@ -18,17 +18,21 @@ export FUNCTION_NAMESPACE=${FUNCTION_NAMESPACE:-default}
|
|||||||
export BUILDER_NAMESPACE=${BUILDER_NAMESPACE:-default}
|
export BUILDER_NAMESPACE=${BUILDER_NAMESPACE:-default}
|
||||||
export FISSION_NAMESPACE=${FISSION_NAMESPACE:-fission}
|
export FISSION_NAMESPACE=${FISSION_NAMESPACE:-fission}
|
||||||
export FISSION_ROUTER=127.0.0.1:8888
|
export FISSION_ROUTER=127.0.0.1:8888
|
||||||
export NODE_RUNTIME_IMAGE=fission/node-env-14
|
|
||||||
export NODE_BUILDER_IMAGE=fission/node-builder-14
|
# Images used in the tests
|
||||||
export PYTHON_RUNTIME_IMAGE=fission/python-env
|
export REPOSITORY=ghcr.io/fission
|
||||||
export PYTHON_BUILDER_IMAGE=fission/python-builder
|
export NODE_RUNTIME_IMAGE=${REPOSITORY}/node-env-22
|
||||||
export GO_RUNTIME_IMAGE=fission/go-env-1.16
|
export NODE_BUILDER_IMAGE=${REPOSITORY}/node-builder-22
|
||||||
export GO_BUILDER_IMAGE=fission/go-builder-1.16
|
export PYTHON_RUNTIME_IMAGE=${REPOSITORY}/python-env
|
||||||
export JVM_RUNTIME_IMAGE=fission/jvm-env
|
export PYTHON_BUILDER_IMAGE=${REPOSITORY}/python-builder
|
||||||
export JVM_BUILDER_IMAGE=fission/jvm-builder
|
export GO_RUNTIME_IMAGE=${REPOSITORY}/go-env-1.23
|
||||||
export JVM_JERSEY_RUNTIME_IMAGE=fission/jvm-jersey-env
|
export GO_BUILDER_IMAGE=${REPOSITORY}/go-builder-1.23
|
||||||
export JVM_JERSEY_BUILDER_IMAGE=fission/jvm-jersey-builder
|
export JVM_RUNTIME_IMAGE=${REPOSITORY}/jvm-env
|
||||||
export TS_RUNTIME_IMAGE=fission/tensorflow-serving-env
|
export JVM_BUILDER_IMAGE=${REPOSITORY}/jvm-builder
|
||||||
|
export JVM_JERSEY_RUNTIME_IMAGE=${REPOSITORY}/jvm-jersey-env-22
|
||||||
|
export JVM_JERSEY_BUILDER_IMAGE=${REPOSITORY}/jvm-jersey-builder-22
|
||||||
|
export TS_RUNTIME_IMAGE=${REPOSITORY}/tensorflow-serving-env
|
||||||
|
|
||||||
export CONTROLLER_IP=127.0.0.1:8889
|
export CONTROLLER_IP=127.0.0.1:8889
|
||||||
export FISSION_NATS_STREAMING_URL=http://defaultFissionAuthToken@127.0.0.1:8890
|
export FISSION_NATS_STREAMING_URL=http://defaultFissionAuthToken@127.0.0.1:8890
|
||||||
|
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
builder:
|
builder:
|
||||||
command: build
|
command: build
|
||||||
image: fission/go-builder-1.12
|
image: ghcr.io/fission/go-builder-1.23
|
||||||
imagepullsecret: ""
|
imagepullsecret: ""
|
||||||
keeparchive: false
|
keeparchive: false
|
||||||
poolsize: 3
|
poolsize: 3
|
||||||
resources: {}
|
resources: {}
|
||||||
runtime:
|
runtime:
|
||||||
image: fission/go-env-1.12
|
image: ghcr.io/fission/go-env-1.23
|
||||||
terminationGracePeriod: 5
|
terminationGracePeriod: 5
|
||||||
version: 2
|
version: 2
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ internal_route_test_1() {
|
|||||||
|
|
||||||
new_deploy_mgr_and_internal_route_test_2() {
|
new_deploy_mgr_and_internal_route_test_2() {
|
||||||
log "Starting new_deploy_mgr_and_internal_route_test_1 with env in default ns"
|
log "Starting new_deploy_mgr_and_internal_route_test_1 with env in default ns"
|
||||||
fission env create --name python --image fission/python-env
|
fission env create --name python --image ghcr.io/fission/python-env
|
||||||
fission fn create --name func5 --env python --code testDir1/hello.py --minscale 1 --maxscale 4 --executortype newdeploy
|
fission fn create --name func5 --env python --code testDir1/hello.py --minscale 1 --maxscale 4 --executortype newdeploy
|
||||||
sleep 15
|
sleep 15
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ new_deploy_mgr_and_internal_route_test_2() {
|
|||||||
|
|
||||||
new_deploy_mgr_and_internal_route_test_1() {
|
new_deploy_mgr_and_internal_route_test_1() {
|
||||||
log "Starting new_deploy_mgr_and_internal_route_test_1 with env and fn in different ns"
|
log "Starting new_deploy_mgr_and_internal_route_test_1 with env and fn in different ns"
|
||||||
fission env create --name python --image fission/python-env --envns "ns1-$id"
|
fission env create --name python --image ghcr.io/fission/python-env --envns "ns1-$id"
|
||||||
fission fn create --name func4 --fns "ns2-$id" --env python --envns "ns1-$id" --code testDir1/hello.py --minscale 1 --maxscale 4 --executortype newdeploy
|
fission fn create --name func4 --fns "ns2-$id" --env python --envns "ns1-$id" --code testDir1/hello.py --minscale 1 --maxscale 4 --executortype newdeploy
|
||||||
sleep 15
|
sleep 15
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ new_deploy_mgr_and_internal_route_test_1() {
|
|||||||
|
|
||||||
builder_mgr_test_2() {
|
builder_mgr_test_2() {
|
||||||
log "Starting builder_mgr_test_2 with env in default ns"
|
log "Starting builder_mgr_test_2 with env in default ns"
|
||||||
fission env create --name python-builder-env --builder fission/python-builder --image fission/python-env
|
fission env create --name python-builder-env --builder fission/python-builder --image ghcr.io/fission/python-env
|
||||||
sleep 180
|
sleep 180
|
||||||
|
|
||||||
# verify the env builder pod came up in fission-builder and env runtime pod came up in fission-function ns
|
# verify the env builder pod came up in fission-builder and env runtime pod came up in fission-function ns
|
||||||
@@ -135,7 +135,7 @@ builder_mgr_test_2() {
|
|||||||
|
|
||||||
builder_mgr_test_1() {
|
builder_mgr_test_1() {
|
||||||
log "Starting builder_mgr_test_1 with env and fn in different ns"
|
log "Starting builder_mgr_test_1 with env and fn in different ns"
|
||||||
fission env create --name python-builder-env --envns "ns1-$id" --builder fission/python-builder --image fission/python-env
|
fission env create --name python-builder-env --envns "ns1-$id" --builder fission/python-builder --image ghcr.io/fission/python-env
|
||||||
# we need to wait sufficiently for env pods to be up
|
# we need to wait sufficiently for env pods to be up
|
||||||
sleep 180
|
sleep 180
|
||||||
|
|
||||||
@@ -162,7 +162,7 @@ builder_mgr_test_1() {
|
|||||||
pool_mgr_test_2() {
|
pool_mgr_test_2() {
|
||||||
log "Starting pool_mgr_test_2 with env in default ns"
|
log "Starting pool_mgr_test_2 with env in default ns"
|
||||||
fission env delete --name python || true
|
fission env delete --name python || true
|
||||||
fission env create --name python --image fission/python-env
|
fission env create --name python --image ghcr.io/fission/python-env
|
||||||
fission fn create --name func2 --fns "ns2-$id" --env python --code testDir1/hello.py
|
fission fn create --name func2 --fns "ns2-$id" --env python --code testDir1/hello.py
|
||||||
ht=$(fission route create --function func2 --fns "ns2-$id" --url /func2 | cut -f2 -d' '| tr -d \')
|
ht=$(fission route create --function func2 --fns "ns2-$id" --url /func2 | cut -f2 -d' '| tr -d \')
|
||||||
|
|
||||||
@@ -186,7 +186,7 @@ pool_mgr_test_2() {
|
|||||||
|
|
||||||
pool_mgr_test_1() {
|
pool_mgr_test_1() {
|
||||||
log "Starting pool_mgr_test_1 with env and fn in different ns"
|
log "Starting pool_mgr_test_1 with env and fn in different ns"
|
||||||
fission env create --name python --image fission/python-env --envns "ns1-$id"
|
fission env create --name python --image ghcr.io/fission/python-env --envns "ns1-$id"
|
||||||
fission fn create --name func1 --fns "ns2-$id" --env python --envns "ns1-$id" --code testDir1/hello.py
|
fission fn create --name func1 --fns "ns2-$id" --env python --envns "ns1-$id" --code testDir1/hello.py
|
||||||
ht=$(fission route create --function func1 --fns "ns2-$id" --url /func1 | cut -f2 -d' '| tr -d \')
|
ht=$(fission route create --function func1 --fns "ns2-$id" --url /func1 | cut -f2 -d' '| tr -d \')
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
builder:
|
builder:
|
||||||
command: build
|
command: build
|
||||||
image: fission/node-builder
|
image: ghcr.io/fission/node-builder
|
||||||
keeparchive: false
|
keeparchive: false
|
||||||
poolsize: 3
|
poolsize: 3
|
||||||
runtime:
|
runtime:
|
||||||
image: fission/node-env
|
image: ghcr.io/fission/node-env
|
||||||
terminationGracePeriod: 20
|
terminationGracePeriod: 20
|
||||||
version: 2
|
version: 2
|
||||||
|
|||||||
@@ -28,6 +28,15 @@ mkdir -p func
|
|||||||
cp $ROOT/examples/nodejs/hello.js func/deploy.js
|
cp $ROOT/examples/nodejs/hello.js func/deploy.js
|
||||||
cp $ROOT/examples/nodejs/hello.js func/source.js
|
cp $ROOT/examples/nodejs/hello.js func/source.js
|
||||||
|
|
||||||
|
# Create package.json in func directory
|
||||||
|
cat <<EOF > func/package.json
|
||||||
|
{
|
||||||
|
"name": "hello",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "hello function"
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
fission spec destroy || true
|
fission spec destroy || true
|
||||||
|
|
||||||
log "Apply specs"
|
log "Apply specs"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ spec:
|
|||||||
poolsize: 0
|
poolsize: 0
|
||||||
resources: {}
|
resources: {}
|
||||||
runtime:
|
runtime:
|
||||||
image: fission/node-env
|
image: ghcr.io/fission/node-env
|
||||||
container:
|
container:
|
||||||
name: nodend
|
name: nodend
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@@ -23,19 +23,19 @@ spec:
|
|||||||
# A container which will be merged with for pool manager
|
# A container which will be merged with for pool manager
|
||||||
containers:
|
containers:
|
||||||
- name: nodend
|
- name: nodend
|
||||||
image: fission/node-env
|
image: ghcr.io/fission/node-env
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: funcvol
|
- name: funcvol
|
||||||
mountPath: /etc/funcdata
|
mountPath: /etc/funcdata
|
||||||
readOnly: true
|
readOnly: true
|
||||||
# A additional container in the pods
|
# A additional container in the pods
|
||||||
- name: yanode
|
- name: yanode
|
||||||
image: fission/node-env
|
image: ghcr.io/fission/node-env
|
||||||
command: ['sh', '-c', 'sleep 36000000000']
|
command: ['sh', '-c', 'sleep 36000000000']
|
||||||
# Init container before function
|
# Init container before function
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: init-node
|
- name: init-node
|
||||||
image: fission/node-env
|
image: ghcr.io/fission/node-env
|
||||||
command: ['sh', '-c', 'cat /etc/infopod/labels']
|
command: ['sh', '-c', 'cat /etc/infopod/labels']
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: infopod
|
- name: infopod
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ spec:
|
|||||||
poolsize: 3
|
poolsize: 3
|
||||||
resources: {}
|
resources: {}
|
||||||
runtime:
|
runtime:
|
||||||
image: fission/node-env
|
image: ghcr.io/fission/node-env
|
||||||
container:
|
container:
|
||||||
name: nodep
|
name: nodep
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@@ -23,19 +23,19 @@ spec:
|
|||||||
# A container which will be merged with for pool manager
|
# A container which will be merged with for pool manager
|
||||||
containers:
|
containers:
|
||||||
- name: nodep
|
- name: nodep
|
||||||
image: fission/node-env
|
image: ghcr.io/fission/node-env
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: funcvol
|
- name: funcvol
|
||||||
mountPath: /etc/funcdata
|
mountPath: /etc/funcdata
|
||||||
readOnly: true
|
readOnly: true
|
||||||
# A additional container in the pods
|
# A additional container in the pods
|
||||||
- name: yanode
|
- name: yanode
|
||||||
image: fission/node-env
|
image: ghcr.io/fission/node-env
|
||||||
command: ['sh', '-c', 'sleep 36000000000']
|
command: ['sh', '-c', 'sleep 36000000000']
|
||||||
# Init container before function
|
# Init container before function
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: init-node
|
- name: init-node
|
||||||
image: fission/node-env
|
image: ghcr.io/fission/node-env
|
||||||
command: ['sh', '-c', 'cat /etc/infopod/labels']
|
command: ['sh', '-c', 'cat /etc/infopod/labels']
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: infopod
|
- name: infopod
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ spec:
|
|||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 80Mi
|
memory: 80Mi
|
||||||
runtime:
|
runtime:
|
||||||
image: fission/node-env
|
image: ghcr.io/fission/node-env
|
||||||
podspec:
|
podspec:
|
||||||
containers:
|
containers:
|
||||||
- name: nodejs
|
- name: nodejs
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ popd
|
|||||||
setup_fission_objects() {
|
setup_fission_objects() {
|
||||||
log "==== Setting up objects for upgrade test ===="
|
log "==== Setting up objects for upgrade test ===="
|
||||||
log "Creating env, function and route"
|
log "Creating env, function and route"
|
||||||
fission env create --name nodejs --image fission/node-env --mincpu 20 --maxcpu 100 --minmemory 128 --maxmemory 256
|
fission env create --name nodejs --image ghcr.io/fission/node-env --mincpu 20 --maxcpu 100 --minmemory 128 --maxmemory 256
|
||||||
|
|
||||||
fission fn create --name upgradehello --env nodejs --code $ROOT/examples/nodejs/hello.js --executortype poolmgr
|
fission fn create --name upgradehello --env nodejs --code $ROOT/examples/nodejs/hello.js --executortype poolmgr
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ create_fission_objects() {
|
|||||||
echo " Preparing for fission object creation"
|
echo " Preparing for fission object creation"
|
||||||
echo "-----------------#########################################--------------------"
|
echo "-----------------#########################################--------------------"
|
||||||
echo "Creating function environment."
|
echo "Creating function environment."
|
||||||
if fission env create --name nodejs --image fission/node-env:latest; then
|
if fission env create --name nodejs --image ghcr.io/fission/node-env; then
|
||||||
echo "Successfully created function environment"
|
echo "Successfully created function environment"
|
||||||
else
|
else
|
||||||
echo "Environment creation failed"
|
echo "Environment creation failed"
|
||||||
|
|||||||
Reference in New Issue
Block a user