mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Use glog instead of fmt
This commit is contained in:
parent
4797c8df8f
commit
f2e92776bc
@ -125,7 +125,7 @@ func verifyAndAddNodeId(
|
|||||||
if val, ok := existingDriverMap[csiDriverName]; ok {
|
if val, ok := existingDriverMap[csiDriverName]; ok {
|
||||||
if val == csiDriverNodeId {
|
if val == csiDriverNodeId {
|
||||||
// Value already exists in node annotation, nothing more to do
|
// Value already exists in node annotation, nothing more to do
|
||||||
glog.V(1).Infof(
|
glog.V(2).Infof(
|
||||||
"The key value {%q: %q} alredy eixst in node %q annotation, no need to update: %v",
|
"The key value {%q: %q} alredy eixst in node %q annotation, no need to update: %v",
|
||||||
csiDriverName,
|
csiDriverName,
|
||||||
csiDriverNodeId,
|
csiDriverNodeId,
|
||||||
@ -153,7 +153,7 @@ func verifyAndAddNodeId(
|
|||||||
string(jsonObj))
|
string(jsonObj))
|
||||||
_, updateErr := k8sNodesClient.Update(result)
|
_, updateErr := k8sNodesClient.Update(result)
|
||||||
if updateErr == nil {
|
if updateErr == nil {
|
||||||
fmt.Printf(
|
glog.V(2).Infof(
|
||||||
"Updated node %q successfully for CSI driver %q and CSI node name %q",
|
"Updated node %q successfully for CSI driver %q and CSI node name %q",
|
||||||
k8sNodeName,
|
k8sNodeName,
|
||||||
csiDriverName,
|
csiDriverName,
|
||||||
@ -194,7 +194,7 @@ func verifyAndDeleteNodeId(
|
|||||||
existingDriverMap := map[string]string{}
|
existingDriverMap := map[string]string{}
|
||||||
if previousAnnotationValue == "" {
|
if previousAnnotationValue == "" {
|
||||||
// Value already exists in node annotation, nothing more to do
|
// Value already exists in node annotation, nothing more to do
|
||||||
glog.V(1).Infof(
|
glog.V(2).Infof(
|
||||||
"The key %q does not exist in node %q annotation, no need to cleanup.",
|
"The key %q does not exist in node %q annotation, no need to cleanup.",
|
||||||
csiDriverName,
|
csiDriverName,
|
||||||
annotationKey)
|
annotationKey)
|
||||||
@ -212,7 +212,7 @@ func verifyAndDeleteNodeId(
|
|||||||
|
|
||||||
if _, ok := existingDriverMap[csiDriverName]; !ok {
|
if _, ok := existingDriverMap[csiDriverName]; !ok {
|
||||||
// Value already exists in node annotation, nothing more to do
|
// Value already exists in node annotation, nothing more to do
|
||||||
glog.V(1).Infof(
|
glog.V(2).Infof(
|
||||||
"The key %q does not eixst in node %q annotation, no need to cleanup: %v",
|
"The key %q does not eixst in node %q annotation, no need to cleanup: %v",
|
||||||
csiDriverName,
|
csiDriverName,
|
||||||
annotationKey,
|
annotationKey,
|
||||||
|
Loading…
Reference in New Issue
Block a user