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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user