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>
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>
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>
Given that the secret now contains a byte array, it can no
longer be compared in the way it was.
This introduces go-cmp to take over the job.
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
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>
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>
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>
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>
The Knative serving service we were generating was out of
date, this PR changes that to work with the latest schema.
Changes have been tested with env vars and --tag=sha
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
**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>