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
|
||||
# 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"
|
||||
$ fission function create --name hello --env nodejs --code https://raw.githubusercontent.com/fission/examples/master/nodejs/hello.js
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
apiVersion: v2
|
||||
name: fission-all
|
||||
version: v1.21.0-rc2
|
||||
appVersion: v1.21.0-rc2
|
||||
version: v1.21.0
|
||||
appVersion: v1.21.0
|
||||
description: Fission is a fast serverless framework for Kubernetes.
|
||||
kubeVersion: ">=1.27.0-0"
|
||||
home: https://fission.io/
|
||||
|
||||
@@ -20,7 +20,7 @@ Windows:
|
||||
{{- end }}
|
||||
|
||||
# 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
|
||||
$ 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.
|
||||
## 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.
|
||||
##
|
||||
@@ -124,7 +124,7 @@ fetcher:
|
||||
## image represents the image of the fetcher component.
|
||||
image: fission/fetcher
|
||||
## 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.
|
||||
## Normally, you don't need to change the value here, unless necessary.
|
||||
@@ -696,7 +696,7 @@ preUpgradeChecks:
|
||||
image: fission/pre-upgrade-checks
|
||||
## 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
|
||||
##
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.17.0
|
||||
controller-gen.kubebuilder.io/version: v0.17.1
|
||||
name: canaryconfigs.fission.io
|
||||
spec:
|
||||
group: fission.io
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.17.0
|
||||
controller-gen.kubebuilder.io/version: v0.17.1
|
||||
name: environments.fission.io
|
||||
spec:
|
||||
group: fission.io
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.17.0
|
||||
controller-gen.kubebuilder.io/version: v0.17.1
|
||||
name: functions.fission.io
|
||||
spec:
|
||||
group: fission.io
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.17.0
|
||||
controller-gen.kubebuilder.io/version: v0.17.1
|
||||
name: httptriggers.fission.io
|
||||
spec:
|
||||
group: fission.io
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.17.0
|
||||
controller-gen.kubebuilder.io/version: v0.17.1
|
||||
name: kuberneteswatchtriggers.fission.io
|
||||
spec:
|
||||
group: fission.io
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.17.0
|
||||
controller-gen.kubebuilder.io/version: v0.17.1
|
||||
name: messagequeuetriggers.fission.io
|
||||
spec:
|
||||
group: fission.io
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.17.0
|
||||
controller-gen.kubebuilder.io/version: v0.17.1
|
||||
name: packages.fission.io
|
||||
spec:
|
||||
group: fission.io
|
||||
|
||||
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.17.0
|
||||
controller-gen.kubebuilder.io/version: v0.17.1
|
||||
name: timetriggers.fission.io
|
||||
spec:
|
||||
group: fission.io
|
||||
|
||||
@@ -23,7 +23,7 @@ package v1
|
||||
import (
|
||||
"k8s.io/api/autoscaling/v2"
|
||||
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.
|
||||
|
||||
@@ -55,10 +55,10 @@ func buildPackage(ctx context.Context, logger *zap.Logger, fissionClient version
|
||||
return nil, e, ferror.MakeError(http.StatusInternalServerError, e)
|
||||
}
|
||||
|
||||
svcName := fmt.Sprintf("%v-%v.%v", env.ObjectMeta.Name, env.ObjectMeta.ResourceVersion, envBuilderNamespace)
|
||||
srcPkgFilename := fmt.Sprintf("%v-%v", pkg.ObjectMeta.Name, strings.ToLower(uniuri.NewLen(6)))
|
||||
fetcherC := fetcherClient.MakeClient(logger, fmt.Sprintf("http://%v:8000", svcName))
|
||||
builderC := builderClient.MakeClient(logger, fmt.Sprintf("http://%v:8001", svcName))
|
||||
svcName := fmt.Sprintf("%s-%s.%s", env.Name, env.ResourceVersion, envBuilderNamespace)
|
||||
srcPkgFilename := fmt.Sprintf("%s-%s", pkg.Name, strings.ToLower(uniuri.NewLen(6)))
|
||||
fetcherC := fetcherClient.MakeClient(logger, fmt.Sprintf("http://%s:8000", svcName))
|
||||
builderC := builderClient.MakeClient(logger, fmt.Sprintf("http://%s:8001", svcName))
|
||||
|
||||
defer func() {
|
||||
logger.Info("cleaning src pkg from builder storage", zap.String("source_package", srcPkgFilename))
|
||||
|
||||
@@ -15,6 +15,6 @@ spec:
|
||||
cpu: 300m
|
||||
memory: 256Mi
|
||||
runtime:
|
||||
image: fission/python-env
|
||||
image: ghcr.io/fission/python-env
|
||||
imagePullPolicy: IfNotPresent
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ spec:
|
||||
cpu: 300m
|
||||
memory: 256Mi
|
||||
runtime:
|
||||
image: fission/python-env
|
||||
image: ghcr.io/fission/python-env
|
||||
imagePullPolicy: IfNotPresent
|
||||
container:
|
||||
env:
|
||||
|
||||
@@ -24,7 +24,7 @@ do
|
||||
echo "Creating python env"
|
||||
# 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
|
||||
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
|
||||
|
||||
sleep 30
|
||||
|
||||
@@ -36,7 +36,7 @@ do
|
||||
version=1
|
||||
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
|
||||
|
||||
|
||||
+15
-11
@@ -18,17 +18,21 @@ export FUNCTION_NAMESPACE=${FUNCTION_NAMESPACE:-default}
|
||||
export BUILDER_NAMESPACE=${BUILDER_NAMESPACE:-default}
|
||||
export FISSION_NAMESPACE=${FISSION_NAMESPACE:-fission}
|
||||
export FISSION_ROUTER=127.0.0.1:8888
|
||||
export NODE_RUNTIME_IMAGE=fission/node-env-14
|
||||
export NODE_BUILDER_IMAGE=fission/node-builder-14
|
||||
export PYTHON_RUNTIME_IMAGE=fission/python-env
|
||||
export PYTHON_BUILDER_IMAGE=fission/python-builder
|
||||
export GO_RUNTIME_IMAGE=fission/go-env-1.16
|
||||
export GO_BUILDER_IMAGE=fission/go-builder-1.16
|
||||
export JVM_RUNTIME_IMAGE=fission/jvm-env
|
||||
export JVM_BUILDER_IMAGE=fission/jvm-builder
|
||||
export JVM_JERSEY_RUNTIME_IMAGE=fission/jvm-jersey-env
|
||||
export JVM_JERSEY_BUILDER_IMAGE=fission/jvm-jersey-builder
|
||||
export TS_RUNTIME_IMAGE=fission/tensorflow-serving-env
|
||||
|
||||
# Images used in the tests
|
||||
export REPOSITORY=ghcr.io/fission
|
||||
export NODE_RUNTIME_IMAGE=${REPOSITORY}/node-env-22
|
||||
export NODE_BUILDER_IMAGE=${REPOSITORY}/node-builder-22
|
||||
export PYTHON_RUNTIME_IMAGE=${REPOSITORY}/python-env
|
||||
export PYTHON_BUILDER_IMAGE=${REPOSITORY}/python-builder
|
||||
export GO_RUNTIME_IMAGE=${REPOSITORY}/go-env-1.23
|
||||
export GO_BUILDER_IMAGE=${REPOSITORY}/go-builder-1.23
|
||||
export JVM_RUNTIME_IMAGE=${REPOSITORY}/jvm-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 FISSION_NATS_STREAMING_URL=http://defaultFissionAuthToken@127.0.0.1:8890
|
||||
|
||||
|
||||
@@ -7,12 +7,12 @@ metadata:
|
||||
spec:
|
||||
builder:
|
||||
command: build
|
||||
image: fission/go-builder-1.12
|
||||
image: ghcr.io/fission/go-builder-1.23
|
||||
imagepullsecret: ""
|
||||
keeparchive: false
|
||||
poolsize: 3
|
||||
resources: {}
|
||||
runtime:
|
||||
image: fission/go-env-1.12
|
||||
image: ghcr.io/fission/go-env-1.23
|
||||
terminationGracePeriod: 5
|
||||
version: 2
|
||||
|
||||
@@ -73,7 +73,7 @@ internal_route_test_1() {
|
||||
|
||||
new_deploy_mgr_and_internal_route_test_2() {
|
||||
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
|
||||
sleep 15
|
||||
|
||||
@@ -88,7 +88,7 @@ new_deploy_mgr_and_internal_route_test_2() {
|
||||
|
||||
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"
|
||||
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
|
||||
sleep 15
|
||||
|
||||
@@ -103,7 +103,7 @@ new_deploy_mgr_and_internal_route_test_1() {
|
||||
|
||||
builder_mgr_test_2() {
|
||||
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
|
||||
|
||||
# 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() {
|
||||
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
|
||||
sleep 180
|
||||
|
||||
@@ -162,7 +162,7 @@ builder_mgr_test_1() {
|
||||
pool_mgr_test_2() {
|
||||
log "Starting pool_mgr_test_2 with env in default ns"
|
||||
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
|
||||
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() {
|
||||
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
|
||||
ht=$(fission route create --function func1 --fns "ns2-$id" --url /func1 | cut -f2 -d' '| tr -d \')
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ metadata:
|
||||
spec:
|
||||
builder:
|
||||
command: build
|
||||
image: fission/node-builder
|
||||
image: ghcr.io/fission/node-builder
|
||||
keeparchive: false
|
||||
poolsize: 3
|
||||
runtime:
|
||||
image: fission/node-env
|
||||
image: ghcr.io/fission/node-env
|
||||
terminationGracePeriod: 20
|
||||
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/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
|
||||
|
||||
log "Apply specs"
|
||||
|
||||
@@ -11,7 +11,7 @@ spec:
|
||||
poolsize: 0
|
||||
resources: {}
|
||||
runtime:
|
||||
image: fission/node-env
|
||||
image: ghcr.io/fission/node-env
|
||||
container:
|
||||
name: nodend
|
||||
volumeMounts:
|
||||
@@ -23,19 +23,19 @@ spec:
|
||||
# A container which will be merged with for pool manager
|
||||
containers:
|
||||
- name: nodend
|
||||
image: fission/node-env
|
||||
image: ghcr.io/fission/node-env
|
||||
volumeMounts:
|
||||
- name: funcvol
|
||||
mountPath: /etc/funcdata
|
||||
readOnly: true
|
||||
# A additional container in the pods
|
||||
- name: yanode
|
||||
image: fission/node-env
|
||||
image: ghcr.io/fission/node-env
|
||||
command: ['sh', '-c', 'sleep 36000000000']
|
||||
# Init container before function
|
||||
initContainers:
|
||||
- name: init-node
|
||||
image: fission/node-env
|
||||
image: ghcr.io/fission/node-env
|
||||
command: ['sh', '-c', 'cat /etc/infopod/labels']
|
||||
volumeMounts:
|
||||
- name: infopod
|
||||
|
||||
@@ -11,7 +11,7 @@ spec:
|
||||
poolsize: 3
|
||||
resources: {}
|
||||
runtime:
|
||||
image: fission/node-env
|
||||
image: ghcr.io/fission/node-env
|
||||
container:
|
||||
name: nodep
|
||||
volumeMounts:
|
||||
@@ -23,19 +23,19 @@ spec:
|
||||
# A container which will be merged with for pool manager
|
||||
containers:
|
||||
- name: nodep
|
||||
image: fission/node-env
|
||||
image: ghcr.io/fission/node-env
|
||||
volumeMounts:
|
||||
- name: funcvol
|
||||
mountPath: /etc/funcdata
|
||||
readOnly: true
|
||||
# A additional container in the pods
|
||||
- name: yanode
|
||||
image: fission/node-env
|
||||
image: ghcr.io/fission/node-env
|
||||
command: ['sh', '-c', 'sleep 36000000000']
|
||||
# Init container before function
|
||||
initContainers:
|
||||
- name: init-node
|
||||
image: fission/node-env
|
||||
image: ghcr.io/fission/node-env
|
||||
command: ['sh', '-c', 'cat /etc/infopod/labels']
|
||||
volumeMounts:
|
||||
- name: infopod
|
||||
|
||||
@@ -17,7 +17,7 @@ spec:
|
||||
cpu: 10m
|
||||
memory: 80Mi
|
||||
runtime:
|
||||
image: fission/node-env
|
||||
image: ghcr.io/fission/node-env
|
||||
podspec:
|
||||
containers:
|
||||
- name: nodejs
|
||||
|
||||
@@ -10,7 +10,7 @@ popd
|
||||
setup_fission_objects() {
|
||||
log "==== Setting up objects for upgrade test ===="
|
||||
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
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ create_fission_objects() {
|
||||
echo " Preparing for fission object creation"
|
||||
echo "-----------------#########################################--------------------"
|
||||
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"
|
||||
else
|
||||
echo "Environment creation failed"
|
||||
|
||||
Reference in New Issue
Block a user