11 Commits

Author SHA1 Message Date
Alex Ellis (OpenFaaS Ltd)
8820d8e4a1 Only pull from TemplateConfigs when set in stack file
Fixes an issue where the default templates could be pulled
and conflict with TemplateConfigs, meaning the template set in
TemplateConfigs was never pulled.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-10-18 12:27:34 +01:00
Alex Ellis (OpenFaaS Ltd)
b61b51e3f7 Remove openfaas-cloud commands
OpenFaaS Cloud has long been deprecated, these commands
should no longer be used by anyone.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-10-04 09:26:12 +01:00
Alex Ellis (OpenFaaS Ltd)
3534df7157 Add flag to setup QEMU for the publish command
The new flag will run a community container image to setup
the qemu-user-static binary on the host, so that multi-arch
builds can take place.

This is only compatible with AMD64 at the current time.

Tested on Darwin M1 with MacOS, and saw an error.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-08-06 10:40:27 +01:00
Alex Ellis (OpenFaaS Ltd)
b1c09c0243 Add usage metrics for describe command
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-01-26 16:28:03 +00:00
Alex Ellis (OpenFaaS Ltd)
9655c00b32 Create secrets from files in binary format
Changes the behaviour for inputting files so that their contents
are stored in binary format instead of being converted to a
string.

The existing Value field is still populated for existing
clients and providers which do not support RawValue.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2021-06-17 12:21:11 +01:00
Carlos Panato
6f0be272d1 list: add sort by createdAt field
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-03-26 11:45:15 +00:00
Alex Ellis (OpenFaaS Ltd)
e5b971a17a Remove Swarm support from faas-cli
Swarm support has now been dropped. This change is blocking
changes in upstream components which rely on the SDK
bundled in the CLI.

Updated comparison in tests to work with structs

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2021-01-20 11:52:26 +00:00
Alex Ellis (OpenFaaS Ltd)
598336a0ca Update faas-provider
This change requires a newer faas-cli version, and allows the
CLI to send less data over the wire where lists are null or
empty.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2020-12-15 11:22:19 +00:00
Alex Ellis (OpenFaaS Ltd)
b0e5d9c7cc Add publish command
The publish command can be used to build and push a multi-arc image with
Docker buildx and buildkit. A multi-arch template must be used which
a Dockerfile that accepts TARGET/BUILDPLATFORM.

Tested with the golang-middleware template.

The resulting image worked fine on RPi and Docker Desktop.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2020-11-18 13:47:00 +00:00
Lucas Roesler
035617290e Pin the version of golang/x/sys
**What**
- Pin the version of golang/x/sys  It introduced a bug in arm builds,
  see https://github.com/golang/go/issues/36032. This is needed by
  docker. Per this
  https://github.com/ory/dockertest/issues/208#issuecomment-686820414
  we can pin golang/x/sys to f9321e4c35a6 for a proper build

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2020-09-17 10:18:30 +01:00
Lucas Roesler
40884c98a9 Initialize the go module and update docker/docker
**What**
- Initialize the go.mod from the existing Gopkg.lock
- Update to a more go module friendly version of docker/docker

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2020-09-13 09:02:38 +01:00