Debugging

This commit is contained in:
Micro 2020-04-23 13:11:00 +01:00
parent 5e3262a62c
commit 316b81f790
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package kubernetes
import ( import (
"encoding/json" "encoding/json"
"fmt"
"strings" "strings"
"github.com/micro/go-micro/v2/logger" "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 // set the image pull secrets
kdeploy.Spec.Template.PodSpec.ImagePullSecrets = c.ImagePullSecrets kdeploy.Spec.Template.PodSpec.ImagePullSecrets = c.ImagePullSecrets
fmt.Printf("Setting ImagePullSecrets to %v\n", strings.Join(c.ImagePullSecrets, ", "))
// create if non existent // create if non existent
if s.Metadata == nil { if s.Metadata == nil {

View File

@ -53,7 +53,7 @@ spec:
imagePullSecrets: imagePullSecrets:
{{- with .Spec.Template.PodSpec.ImagePullSecrets }} {{- with .Spec.Template.PodSpec.ImagePullSecrets }}
{{- range . }} {{- range . }}
- name: "{{.}}" - name: "{{.}}"
{{- end }} {{- end }}
{{- end }} {{- end }}
containers: containers: