1
0
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:
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 (
"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 {

View File

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