1
0
mirror of https://github.com/ubuntu/microk8s.git synced 2021-05-23 02:23:41 +03:00

Add OpenFaaS addon (#1839)

**What**
- Create addon that installs openfaas using helm3. The user can
  toggle if the installation should enable basic auth and if
  it should install the operator mode instead of the standard
  controller.  All other settings can be controlled via an
  external values files that can be passed as a flag.

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>

Co-authored-by: Konstantinos Tsakalozos <kos.tsakalozos@canonical.com>
This commit is contained in:
Lucas Roesler
2021-02-25 11:11:59 +01:00
committed by GitHub
parent 1603084d2b
commit 39730cc7c9
5 changed files with 134 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ from validators import (
validate_traefik,
validate_coredns_config,
validate_portainer,
validate_openfaas,
)
from utils import (
microk8s_enable,
@@ -357,6 +358,17 @@ class TestAddons(object):
print("Disabling Portainer")
microk8s_disable("portainer")
def test_openfaas(self):
"""
Sets up and validates OpenFaaS.
"""
print("Enabling openfaas")
microk8s_enable("openfaas")
print("Validating openfaas")
validate_openfaas()
print("Disabling openfaas")
microk8s_disable("openfaas")
def test_traefik(self):
"""
Sets up and validates traefik.