Runtime: Add Kubernetes ServiceAccounts & Remove imagePullSecrets
This commit is contained in:
@@ -67,8 +67,6 @@ type CreateOptions struct {
|
||||
Retries int
|
||||
// Specify the image to use
|
||||
Image string
|
||||
// Specify secrets to use when pulling the image
|
||||
ImagePullSecrets []string
|
||||
// Namespace to create the service in
|
||||
Namespace string
|
||||
// Specify the context to use
|
||||
@@ -103,13 +101,6 @@ func CreateImage(img string) CreateOption {
|
||||
}
|
||||
}
|
||||
|
||||
// CreateImagePullSecret sets a secret to use
|
||||
func CreateImagePullSecret(secrets ...string) CreateOption {
|
||||
return func(o *CreateOptions) {
|
||||
o.ImagePullSecrets = append(o.ImagePullSecrets, secrets...)
|
||||
}
|
||||
}
|
||||
|
||||
// CreateNamespace sets the namespace
|
||||
func CreateNamespace(ns string) CreateOption {
|
||||
return func(o *CreateOptions) {
|
||||
|
Reference in New Issue
Block a user