stylecop fix followup, enforce SA1503 (#432)
* enforce SA1503 * fix spacing * fix SA1413 * fix spacing * fix SA1013
This commit is contained in:
@@ -20,10 +20,7 @@ namespace patch
|
||||
var name = pod.Metadata.Name;
|
||||
PrintLabels(pod);
|
||||
|
||||
var newlabels = new Dictionary<string, string>(pod.Metadata.Labels)
|
||||
{
|
||||
["test"] = "test"
|
||||
};
|
||||
var newlabels = new Dictionary<string, string>(pod.Metadata.Labels) { ["test"] = "test" };
|
||||
var patch = new JsonPatchDocument<V1Pod>();
|
||||
patch.Replace(e => e.Metadata.Labels, newlabels);
|
||||
client.PatchNamespacedPod(new V1Patch(patch), name, "default");
|
||||
@@ -38,6 +35,7 @@ namespace patch
|
||||
{
|
||||
Console.WriteLine($"{k} : {v}");
|
||||
}
|
||||
|
||||
Console.WriteLine("=-=-=-=-=-=-=-=-=-=-=");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user