Remove debugging
This commit is contained in:
parent
020476614c
commit
88176dca53
@ -350,7 +350,6 @@ func (k *kubeStream) Stop() error {
|
|||||||
|
|
||||||
// Creates a service
|
// Creates a service
|
||||||
func (k *kubernetes) Create(s *runtime.Service, opts ...runtime.CreateOption) error {
|
func (k *kubernetes) Create(s *runtime.Service, opts ...runtime.CreateOption) error {
|
||||||
fmt.Println("KUBECTL CREATE")
|
|
||||||
k.Lock()
|
k.Lock()
|
||||||
defer k.Unlock()
|
defer k.Unlock()
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@ 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"
|
||||||
@ -27,8 +26,6 @@ func parseError(err error) *api.Status {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func newService(s *runtime.Service, c runtime.CreateOptions) *service {
|
func newService(s *runtime.Service, c runtime.CreateOptions) *service {
|
||||||
fmt.Println("KUBECTL newService")
|
|
||||||
|
|
||||||
// use pre-formatted name/version
|
// use pre-formatted name/version
|
||||||
name := client.Format(s.Name)
|
name := client.Format(s.Name)
|
||||||
version := client.Format(s.Version)
|
version := client.Format(s.Version)
|
||||||
@ -43,7 +40,6 @@ 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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user