Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Convert to using GHCR images
Browse files Browse the repository at this point in the history
This moved over to using the GHCR images at the most recent version,
0.14.4

Tested by deploying to a new cluster, all images pulled and started
Signed-off-by: Alistair Hey <[email protected]>
  • Loading branch information
Waterdrips authored and alexellis committed Dec 4, 2020
1 parent abe3390 commit c7114a5
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 33 deletions.
2 changes: 1 addition & 1 deletion example.init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -331,5 +331,5 @@ enable_ingress_operator: false

## Version of OpenFaaS Cloud from https://github.com/openfaas/openfaas-cloud/releases/
### Usage: release tag, a SHA or branch name
openfaas_cloud_version: 0.14.2
openfaas_cloud_version: 0.14.4

8 changes: 1 addition & 7 deletions scripts/deploy-cloud-components.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,9 @@ if [ "$ENABLE_AWS_ECR" = "true" ] ; then
faas-cli deploy -f ./aws.yml
fi

cd ./dashboard
faas-cli template pull
faas-cli deploy
TAG=0.14.4 faas-cli deploy -f ./dashboard/stack.yml

sleep 2

# This `ServiceAccount` needs to be patched in place so that the function can perform create / get and update on the SealedSecret CRD:
#kubectl patch -n openfaas-fn deploy import-secrets -p '{"spec":{"template":{"spec":{"serviceAccountName":"sealedsecrets-importer-rw"}}}}'
# This is now applied through an annotation in stack.yml

# Close the kubectl port-forward
kill %1
2 changes: 1 addition & 1 deletion templates/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ functions:
register-image:
lang: go
handler: ./register-image
image: functions/register-image:0.2.1
image: ghcr.io/${REPO:-openfaas}/ofc-register-image:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand Down
2 changes: 1 addition & 1 deletion templates/edge-auth-dep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
secretName: of-customers
containers:
- name: edge-auth
image: openfaas/edge-auth:0.7.1
image: ghcr.io/openfaas/ofc-edge-auth:0.14.4
imagePullPolicy: Always
livenessProbe:
httpGet:
Expand Down
8 changes: 4 additions & 4 deletions templates/gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ functions:
system-gitlab-event:
lang: go
handler: ./gitlab-event
image: functions/gitlab-event:0.2.1
image: ghcr.io/openfaas/ofc-gitlab-event:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand All @@ -31,7 +31,7 @@ functions:
gitlab-push:
lang: go
handler: ./gitlab-push
image: functions/gitlab-push:0.2.4
image: ghcr.io/openfaas/ofc-gitlab-push:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand All @@ -47,7 +47,7 @@ functions:
gitlab-status:
lang: go
handler: ./gitlab-status
image: functions/gitlab-status:0.1.3
image: ghcr.io/openfaas/ofc-gitlab-status:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand All @@ -65,7 +65,7 @@ functions:
git-tar:
lang: dockerfile
handler: ./git-tar
image: functions/of-git-tar:0.17.0
image: ghcr.io/openfaas/ofc-git-tar:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand Down
4 changes: 2 additions & 2 deletions templates/of-builder-dep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
{{ end }}
containers:
- name: of-builder
image: openfaas/of-builder:0.8.0
image: ghcr.io/openfaas/ofc-of-builder:0.14.4
imagePullPolicy: Always
livenessProbe:
httpGet:
Expand Down Expand Up @@ -67,7 +67,7 @@ spec:
{{ end }}
- name: of-buildkit
args: ["--addr", "tcp://0.0.0.0:1234"]
image: moby/buildkit:v0.6.2
image: moby/buildkit:v0.7.2
imagePullPolicy: Always
ports:
- containerPort: 1234
Expand Down
39 changes: 22 additions & 17 deletions templates/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ functions:
system-github-event:
lang: go
handler: ./github-event
image: functions/github-event:0.9.2
image: ghcr.io/${REPO:-openfaas}/ofc-github-event:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand All @@ -29,7 +29,7 @@ functions:
github-push:
lang: go
handler: ./github-push
image: functions/github-push:0.7.5
image: ghcr.io/${REPO:-openfaas}/ofc-github-push:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand All @@ -51,7 +51,7 @@ functions:
git-tar:
lang: dockerfile
handler: ./git-tar
image: functions/of-git-tar:0.19.0
image: ghcr.io/${REPO:-openfaas}/ofc-git-tar:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand All @@ -77,7 +77,7 @@ functions:
buildshiprun:
lang: go
handler: ./buildshiprun
image: functions/of-buildshiprun:0.14.0
image: ghcr.io/${REPO:-openfaas}/ofc-buildshiprun:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand All @@ -101,7 +101,7 @@ functions:
garbage-collect:
lang: go
handler: ./garbage-collect
image: functions/garbage-collect:0.4.7
image: ghcr.io/${REPO:-openfaas}/ofc-garbage-collect:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand All @@ -122,7 +122,7 @@ functions:
github-status:
lang: go
handler: ./github-status
image: functions/github-status:0.5.0
image: ghcr.io/${REPO:-openfaas}/ofc-github-status:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand All @@ -144,7 +144,7 @@ functions:
import-secrets:
lang: go
handler: ./import-secrets
image: functions/import-secrets:0.6.2
image: ghcr.io/${REPO:-openfaas}/ofc-import-secrets:0.14.4
annotations:
com.openfaas.serviceaccount: sealedsecrets-importer-rw
labels:
Expand All @@ -164,7 +164,7 @@ functions:
pipeline-log:
lang: go
handler: ./pipeline-log
image: functions/pipeline-log:0.3.5
image: ghcr.io/${REPO:-openfaas}/ofc-pipeline-log:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand All @@ -182,8 +182,8 @@ functions:

list-functions:
lang: go
handler: ./list-functions
image: functions/list-functions:0.6.0
handler: ./list-ghcr.io/${REPO:-openfaas}
image: ghcr.io/${REPO:-openfaas}/ofc-list-functions:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand All @@ -193,14 +193,14 @@ functions:
read_debug: true
environment_file:
- gateway_config.yml
secrets:
secrets/auth.:
- basic-auth-user
- basic-auth-password

audit-event:
lang: go
handler: ./audit-event
image: functions/audit-event:0.1.2
image: ghcr.io/${REPO:-openfaas}/ofc-audit-event:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand All @@ -209,20 +209,25 @@ functions:
- slack.yml

echo:
skip_build: true
image: functions/alpine:latest
lang: go
handler: ./echo
image: ghcr.io/${REPO:-openfaas}/ofc-echo:0.14.4
labels:
openfaas-cloud: "1"
com.openfaas.scale.zero: false
fprocess: cat
environment:
write_debug: true
read_debug: true
limits:
memory: 128Mi
requests:
memory: 32Mi
cpu: 50m

metrics:
lang: go
handler: ./metrics
image: functions/system-metrics:0.2.0
image: ghcr.io/${REPO:-openfaas}/ofc-system-metrics:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand All @@ -235,7 +240,7 @@ functions:
function-logs:
lang: go
handler: ./function-logs
image: functions/function-logs:0.2.0
image: ghcr.io/${REPO:-openfaas}/ofc-function-logs:0.14.4
labels:
openfaas-cloud: "1"
role: openfaas-system
Expand Down

0 comments on commit c7114a5

Please sign in to comment.