Skip to content

Commit

Permalink
Merge pull request #281 from stevesloka/fixDaemonsetLogging
Browse files Browse the repository at this point in the history
Fix daemonset logging
  • Loading branch information
stevesloka authored Feb 8, 2019
2 parents 37e443b + e933f38 commit a559882
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/k8sutil/daemonsets.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ package k8sutil

import (
"github.com/Sirupsen/logrus"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
"k8s.io/api/extensions/v1beta1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand All @@ -43,7 +43,7 @@ func (k *K8sutil) CreateNodeInitDaemonset() error {

if err != nil && len(ds.Name) == 0 {

logrus.Infof("Daemonset %s not found, creating...", ds)
logrus.Infof("Daemonset %s/%s not found, creating...", ds.Namespace, ds.Name)

resourceCPU, _ := resource.ParseQuantity("10m")
resourceMemory, _ := resource.ParseQuantity("50Mi")
Expand Down Expand Up @@ -100,7 +100,7 @@ func (k *K8sutil) CreateNodeInitDaemonset() error {
_, err = k.Kclient.ExtensionsV1beta1().DaemonSets(k.InitDaemonsetNamespace).Create(daemonset)

} else {
logrus.Infof("Daemonset %s already exist, skipping creation ...", ds)
logrus.Infof("Daemonset %s/%s already exist, skipping creation ...", ds.Namespace, ds.Name)
}

return err
Expand Down
2 changes: 1 addition & 1 deletion pkg/k8sutil/k8sutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func (k *K8sutil) CreateKubernetesCustomResourceDefinition() error {
panic(err)
}
} else {
logrus.Infof("SKIPPING: already exists %#v\n", crd.ObjectMeta.Name)
logrus.Infof("SKIPPING: already exists %#v", crd.ObjectMeta.Name)
}

return nil
Expand Down

0 comments on commit a559882

Please sign in to comment.