Skip to content

Commit a349292

Browse files
dansemedok8s-ci-robot
authored andcommitted
Update Program.cs (#240)
1 parent 9f1669b commit a349292

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/patch/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ private static void Main(string[] args)
2020
var name = pod.Metadata.Name;
2121
PrintLabels(pod);
2222

23-
var newlables = new Dictionary<string, string>(pod.Metadata.Labels)
23+
var newlabels = new Dictionary<string, string>(pod.Metadata.Labels)
2424
{
2525
["test"] = "test"
2626
};
2727
var patch = new JsonPatchDocument<V1Pod>();
28-
patch.Replace(e => e.Metadata.Labels, newlables);
28+
patch.Replace(e => e.Metadata.Labels, newlabels);
2929
client.PatchNamespacedPod(new V1Patch(patch), name, "default");
3030

3131
PrintLabels(client.ReadNamespacedPod(name, "default"));

0 commit comments

Comments
 (0)