Skip to content

Remove references to deprecated templates #401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/deployment/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ You can usually do one of the following:
Example:

```bash
faas-cli new --lang go test-this
faas-cli new --lang golang-middleware test-this

faas-cli build -f test-this.yml

Expand Down
2 changes: 1 addition & 1 deletion docs/openfaas-pro/dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Example snippet from stack.yml:
```yaml
functions:
cows:
lang: go
lang: golang-middleware
handler: ./cows
image: alexellis2/cows:0.1
labels:
Expand Down
4 changes: 2 additions & 2 deletions docs/openfaas-pro/kafka-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Create a new function:

```bash
export OPENFAAS_PREFIX=ghcr.io/openfaas
faas-cli new --lang go provision-customer
faas-cli new --lang golang-middleware provision-customer
```

Now add an annotation for the `payment.created` topic, so that the `provision-customer` function is invoked for any message received:
Expand All @@ -52,7 +52,7 @@ functions:
provision-customer:
annotations:
topic: payment.created
lang: go
lang: golang-middleware
handler: ./provision-customer
image: ghcr.io/openfaas:provision-customer
```
Expand Down
4 changes: 2 additions & 2 deletions docs/openfaas-pro/scale-to-zero.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Create a new function using the `go` template:

```bash
export OPENFAAS_PREFIX=ttl.sh/daily-job:1h
faas-cli new --lang go daily-job
faas-cli new --lang golang-middleware daily-job
```

Now add the labels from above, we'll use a 15 minute timeout.
Expand All @@ -70,7 +70,7 @@ provider:

functions:
daily-job:
lang: go
lang: golang-middleware
handler: ./daily-job
image: ttl.sh/daily-job:1h
labels:
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/private-registries.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ The secret *must* be created in the `openfaas-fn` namespace or the equivalent if
Create a sample function with a `--prefix` variable:

```sh
faas-cli new --lang go private-fn --prefix=registry:port/repo
faas-cli new --lang golang-middleware private-fn --prefix=registry:port/repo
```

Update the `stack.yml` file and add a reference to the new secret:
Expand Down
14 changes: 7 additions & 7 deletions docs/reference/yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ The YAML file can hold one to many functions separated by separate entries.
Example:

```bash
$ faas-cli new --lang go fn1
$ faas-cli new --lang go fn2 --append=fn1.yml
$ faas-cli new --lang golang-middleware fn1
$ faas-cli new --lang golang-middleware fn2 --append=fn1.yml
```

Produces:
Expand All @@ -34,11 +34,11 @@ provider:

functions:
fn1:
lang: go
lang: golang-middleware
handler: ./fn1
image: fn1:latest
fn2:
lang: go
lang: golang-middleware
handler: ./fn2
image: fn2:latest
```
Expand Down Expand Up @@ -144,7 +144,7 @@ An example of a build argument may be for enabling Go modules, or a HTTP_PROXY a
functions:
with_go_modules:
handler: ./with_go_modules
lang: go
lang: golang-middleware
build_args:
HTTP_PROXY: http://squid.corp.ad.example.com
GO111MODULE: on
Expand Down Expand Up @@ -235,7 +235,7 @@ provider:
gateway: http://127.0.0.1:8080
functions:
low:
lang: go
lang: golang-middleware
handler: ./low
image: alexellis2/low:latest
constraints:
Expand Down Expand Up @@ -390,7 +390,7 @@ provider:
gateway: http://127.0.0.1:8080
functions:
hello:
lang: python3
lang: python3-http
handler: ./hello
image: openfaas/hello:0.1.0

Expand Down