Add imagePullSecrets to PodSpec

This commit is contained in:
Micro
2020-04-23 12:27:36 +01:00
parent 7345ce9192
commit 501a6bf3ea
4 changed files with 19 additions and 1 deletions

View File

@@ -38,6 +38,9 @@ func newService(s *runtime.Service, c runtime.CreateOptions) *service {
kdeploy.Spec.Template.Metadata.Annotations = make(map[string]string)
}
// set the image pull secrets
kdeploy.Spec.Template.PodSpec.ImagePullSecrets = c.ImagePullSecrets
// create if non existent
if s.Metadata == nil {
s.Metadata = make(map[string]string)