Skip to content
This repository was archived by the owner on Mar 18, 2021. It is now read-only.
This repository was archived by the owner on Mar 18, 2021. It is now read-only.

Add constraints #18

@nicholasjackson

Description

@nicholasjackson

Add the ability to add a constraint to a function to restrict the architecture for a function:

provider:  
  name: faas
  gateway: http://localhost:8080

functions:  
  ipconfig:
    image: alexellis/windows-ipconfig:nano
    skip_build: true
    environment:
      suppress_lock: true
    constraints:
      - "node.platform.os == windows"
      - "node.datacenter == dc2"

In this instance the function would only be deployed to a node running windows

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions