mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-24 10:07:04 +02:00
Debugging
This commit is contained in:
parent
5e3262a62c
commit
316b81f790
@ -2,6 +2,7 @@ package kubernetes
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/micro/go-micro/v2/logger"
|
||||
@ -40,6 +41,7 @@ func newService(s *runtime.Service, c runtime.CreateOptions) *service {
|
||||
|
||||
// set the image pull secrets
|
||||
kdeploy.Spec.Template.PodSpec.ImagePullSecrets = c.ImagePullSecrets
|
||||
fmt.Printf("Setting ImagePullSecrets to %v\n", strings.Join(c.ImagePullSecrets, ", "))
|
||||
|
||||
// create if non existent
|
||||
if s.Metadata == nil {
|
||||
|
@ -53,7 +53,7 @@ spec:
|
||||
imagePullSecrets:
|
||||
{{- with .Spec.Template.PodSpec.ImagePullSecrets }}
|
||||
{{- range . }}
|
||||
- name: "{{.}}"
|
||||
- name: "{{.}}"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
containers:
|
||||
|
Loading…
Reference in New Issue
Block a user