Skip to content

A collection of KNative functions templates to use with MindWM

Notifications You must be signed in to change notification settings

mindwm/mindwm-knfunc-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

A flake template of Knative function to process MindWM events.

Create new project

To prepare new knfunc project in Python use nix package manager

mkdit my-knfunc
cd my-knfunc
nix flake init --refresh -t github:mindwm/mindwm-knfunc-templates#python
nix develop
# or `direnv allow` in case you are a direnv user

Quick start

The devshell provides a couple useful functions in menu

🔨 Welcome to devshell

[[general commands]]

  build            - build an OCI container
  build_and_deploy - build and deploy knfunc
  deploy           - deploy knfunc to the cluster
  menu             - prints this menu
  push             - push an OCI container to the registry
  render           - render k8s manifests
  sample_env       - source .env.sample
  serve            - serve knfunc locally
  test             - run test_func
  undeploy         - remove the knfunc from the cluster

Edit the func.yaml file and set proper repository endpoint and a function name. Then just run the build_and_deploy helper which will render k8s resources, build an OCI container with a function, push it to the registry and apply k8s manifests.

About

A collection of KNative functions templates to use with MindWM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published