Support private repos in env 'local' (#1938)

This commit is contained in:
Janos Dobronszki
2020-08-18 18:26:14 +02:00
committed by GitHub
parent 21cca297c0
commit 2b2dc2f811
6 changed files with 207 additions and 185 deletions

View File

@@ -227,6 +227,19 @@ type UpdateOptions struct {
Namespace string
// Specify the context to use
Context context.Context
// Secrets to use
Secrets map[string]string
}
// WithSecret sets a secret to provide the service with
func UpdateSecret(key, value string) UpdateOption {
return func(o *UpdateOptions) {
if o.Secrets == nil {
o.Secrets = map[string]string{key: value}
} else {
o.Secrets[key] = value
}
}
}
// UpdateNamespace sets the namespace