You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// We cant use the "resource.Get" method, because exutil.client will trim the output, removing spaces and newlines that could be important in a configuration.
34
+
dataMap, err:=cm.GetDataMap()
35
+
36
+
iferr!=nil {
37
+
return"", err
38
+
}
39
+
40
+
data, ok:=dataMap[key]
41
+
if!ok {
42
+
return"", fmt.Errorf("Key %s does not exist in the .data in Configmap -n %s %s",
43
+
key, cm.GetNamespace(), cm.GetName())
44
+
}
45
+
46
+
returndata, nil
47
+
}
48
+
30
49
// GetDataMap returns the valus in the .data field as a map[string][string]
0 commit comments