example

command
v0.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package main contains an example using the the framework. The example annotates all resources in the input with the value provided as a flag, and adds all resources in the templates/ directory to the list.

To execute the function, run:

$ cat testdata/basic/input.yaml | go run ./main.go --value=foo

Alternatively, you can provide the value via a config file instead of a flag:

$ go run ./main.go testdata/basic/config.yaml testdata/basic/input.yaml

To generate the Dockerfile for the function image run:

$ go run ./main.go gen ./

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL