Skip to content

Commit aa63a58

Browse files
committed
Updates for CLI which uses stack.yaml by default
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent 45882f7 commit aa63a58

File tree

53 files changed

+127
-176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+127
-176
lines changed

_includes/landing-page/code-examples/javascript.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div id="Javascript" class="tabcontent">
2-
<pre><code class="language-shell">$ faas-cli new --lang node18 javascript-fn
2+
<pre><code class="language-shell">$ faas-cli new --lang node20 javascript-fn
33
</code></pre>
44
<div class="has-text-grey-darker has-text-weight-light">
55
handler.js

_includes/products-page/products-cards.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ <h3 class="title is-size-12 is-size-8-desktop has-text-grey-darker">
8686
<subtitle class="is-size-5 mb-3">
8787
Expose services to the Internet from localhost or Kubernetes
8888
</subtitle>
89-
<p style="padding-bottom: 20px" class="has-text-weight-light">Expose TCP & HTTP endpoints without rate-limits and complete privacy.</p>
89+
<p style="padding-bottom: 20px" class="has-text-weight-light">Expose TCP & HTTP endpoints through cloud VMs for complete privacy.</p>
9090
</div>
9191
<div>
9292
<a class="button is-primary is-medium" href="https://inlets.dev">inlets.dev</a>

_posts/2018-08-02-read-only-functions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ The example code will be available [on GitHub here](https://github.com/alexellis
5454

5555
```bash
5656
faas-cli new --lang node access-control --prefix=alexellis2
57-
mv access-control.yml stack.yml
5857
echo "alexellis" > ./access-control/valid_user.txt
5958
```
6059

_posts/2018-08-22-five-cli-tips.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Now if you were to run a `build`, `push` or `deploy` you'd carry that step out f
4141

4242
You can simply type in `faas-cli build --filter=filter2` for instance.
4343

44-
Now if you do happen to edit most of your functions most of the time such as with [OpenFaaS Cloud](https://github.com/openfaas/openfaas-cloud/blob/master/stack.yml), then you can use the `--parallel` flag and your images will be built concurrently. If you have 16 functions in one YAML file and use `--parallel=4` they will build in batches of 4 saving time overall. This speed-boosting feature isn't available when working with Docker outside of OpenFaaS.
44+
Now if you do happen to edit most of your functions most of the time such as with [OpenFaaS Cloud](https://github.com/openfaas/openfaas-cloud/blob/master/stack.yaml), then you can use the `--parallel` flag and your images will be built concurrently. If you have 16 functions in one YAML file and use `--parallel=4` they will build in batches of 4 saving time overall. This speed-boosting feature isn't available when working with Docker outside of OpenFaaS.
4545

4646
You can also split your functions into separate folders, repos or YAML files.
4747

@@ -111,7 +111,7 @@ Successfully tagged alexellis2/test1:latest-b6d5661
111111

112112
If we change the tag in the YAML file from `latest` to `0.1` then the image tag would have been: `test1:0.1-b6d5661`. This is useful for CI/CD jobs and is supported by the verbs: `build`, `push`, `deploy` and `up`.
113113

114-
You can also omit the `--yaml/-f` flag if you rename your YAML file to `stack.yml`
114+
You can also omit the `--yaml/-f` flag if you rename your YAML file to `stack.yaml`
115115

116116
## Tip 5: Use `faas-cli up` and save on typing
117117

_posts/2018-09-06-stateless-microservices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ The guestbook code stores its state in a MySQL table which means that it can be
294294

295295
To enable [scaling to zero](https://www.openfaas.com/blog/zero-scale/) simply [follow the documentation](https://docs.openfaas.com/architecture/autoscaling/#zero-scale) to enable the `faas-idler`.
296296

297-
Then add a label to your `stack.yml` file to tell OpenFaaS that your function is eligible for zero-scaling:
297+
Then add a label to your `stack.yaml` file to tell OpenFaaS that your function is eligible for zero-scaling:
298298

299299
```yaml
300300
labels:

_posts/2019-01-24-unified-secrets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ environment variables can be used to configure non-confidential data such as fea
3434

3535
* Do manage config with environment variables
3636

37-
You can manage configuration with environment variables by declaring an `environment:` section in your function's `stack.yml` file. Or you can create an external file for your environmental configuration with `environment_file:`.
37+
You can manage configuration with environment variables by declaring an `environment:` section in your function's `stack.yaml` file. Or you can create an external file for your environmental configuration with `environment_file:`.
3838

3939
Read more about using environment variables for config in the [YAML reference](https://docs.openfaas.com/reference/yaml/#function-environmental-variables).
4040

_posts/2019-01-29-multifile-python-functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The project should now look like
4949

5050
```txt
5151
.
52-
├── stack.yml
52+
├── stack.yaml
5353
├── template
5454
│   ├── python27-flask
5555
│   │   ├ ...
@@ -78,7 +78,7 @@ The project should now look like this
7878

7979
```txt
8080
.
81-
├── stack.yml
81+
├── stack.yaml
8282
├── template
8383
│   ├── ...
8484
└── wordcount

_posts/2019-02-04-digitalocean-one-click.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,6 @@ Function created in folder: hello-digitalocean
118118
Stack file written: hello-digitalocean.yml
119119
```
120120
121-
* Rename `hello-digitalocean.yml` to `stack.yml`:
122-
123-
```sh
124-
$ mv hello-digitalocean.yml stack.yml
125-
```
126-
127121
* Edit `hello-digitalocean/handler.py` to add our function's code:
128122
129123
```python

_posts/2019-02-12-openfaas-on-fargate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ scheduled in a `private subnet` that has no access to the Internet
5959
to manage service registration / de-registration
6060
* **\[logging\]** we configure each container workload to log to [AWS cloudwatch](https://aws.amazon.com/cloudwatch).
6161
* **\[secrets\]** managed using [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/) and assigned access to functions
62-
in the `stack.yml`
62+
in the `stack.yaml`
6363
* **\[tls\]** ingress TLS is automatically provisioned using [Certbot](https://certbot.eff.org/) and the
6464
[Let's Encrypt](https://letsencrypt.org/) certificate authority.
6565

_posts/2019-02-14-serverless-single-page-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Functions:
231231

232232
Other files:
233233

234-
* `stack.yml` - defines the functions and is generated by the `faas-cli`
234+
* `stack.yaml` - defines the functions and is generated by the `faas-cli`
235235
* `secrets.yaml` - defines encrypted or "sealed" secrets generated by `faas-cli cloud seal`
236236

237237
The database schema is written in the README.md file at the root.

0 commit comments

Comments
 (0)