Dynamic Runtime source for k8s with github packages (#1252)

* Dynamic Runtime source for k8s

* Still check for source

* Replace / with - for k8s service names

* Simplify sourceForName function
This commit is contained in:
ben-toogood
2020-02-24 17:47:47 +00:00
committed by GitHub
parent ffdf986aac
commit 5e8d5834eb
5 changed files with 35 additions and 6 deletions

View File

@@ -53,6 +53,8 @@ type CreateOptions struct {
Type string
// Retries before failing deploy
Retries int
// Source of the service
Source string
}
// ReadOptions queries runtime services
@@ -72,6 +74,13 @@ func CreateType(t string) CreateOption {
}
}
// CreateSource sets the source of service to create
func CreateSource(t string) CreateOption {
return func(o *CreateOptions) {
o.Source = t
}
}
// WithCommand specifies the command to execute
func WithCommand(args ...string) CreateOption {
return func(o *CreateOptions) {