Skip to content
Snippets Groups Projects
Unverified Commit 2c588d56 authored by Donnie Adams's avatar Donnie Adams Committed by GitHub
Browse files

Add default fields in Job (#173)

With the new version of wrangler, default fields are added. This poses
an issue when Apply is called again because these default fields won't
exist on the next call. This causes wrangler to think that something has
changed.

In this fix, default fields are added to the Job to prevent this issue.
parent a1b06570
No related branches found
No related tags found
No related merge requests found
......@@ -178,10 +178,11 @@ func New(plan *upgradeapiv1.Plan, node *corev1.Node, controllerName string) *bat
Name: "pod-info",
VolumeSource: corev1.VolumeSource{
DownwardAPI: &corev1.DownwardAPIVolumeSource{
DefaultMode: &[]int32{420}[0],
Items: []corev1.DownwardAPIVolumeFile{{
Path: "labels", FieldRef: &corev1.ObjectFieldSelector{FieldPath: "metadata.labels"},
Path: "labels", FieldRef: &corev1.ObjectFieldSelector{FieldPath: "metadata.labels", APIVersion: "v1"},
}, {
Path: "annotations", FieldRef: &corev1.ObjectFieldSelector{FieldPath: "metadata.annotations"},
Path: "annotations", FieldRef: &corev1.ObjectFieldSelector{FieldPath: "metadata.annotations", APIVersion: "v1"},
}},
},
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment