Skip to content

Commit 23691f6

Browse files
committed
comment out owner references work because its broken
1 parent 571185f commit 23691f6

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

src/pkg/k8s.go

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,14 @@ func (s *JobRunner) getConfigMapObject(identifier string, job opslevel.RunnerJob
127127
ObjectMeta: metav1.ObjectMeta{
128128
Name: identifier,
129129
Namespace: s.jobPodConfig.Namespace,
130-
OwnerReferences: []metav1.OwnerReference{
131-
{
132-
APIVersion: "v1",
133-
Kind: "Pod",
134-
Name: identifier,
135-
},
136-
},
130+
// failed to create configmap REASON: ConfigMap "opslevel-job-3163545-1734383310" is invalid: metadata.ownerReferences.uid: Invalid value: "": uid must not be empty
131+
//OwnerReferences: []metav1.OwnerReference{
132+
// {
133+
// APIVersion: "v1",
134+
// Kind: "Pod",
135+
// Name: identifier,
136+
// },
137+
//},
137138
},
138139
Immutable: opslevel.RefOf(true),
139140
Data: data,
@@ -146,13 +147,13 @@ func (s *JobRunner) getPBDObject(identifier string, selector *metav1.LabelSelect
146147
ObjectMeta: metav1.ObjectMeta{
147148
Name: identifier,
148149
Namespace: s.jobPodConfig.Namespace,
149-
OwnerReferences: []metav1.OwnerReference{
150-
{
151-
APIVersion: "v1",
152-
Kind: "Pod",
153-
Name: identifier,
154-
},
155-
},
150+
//OwnerReferences: []metav1.OwnerReference{
151+
// {
152+
// APIVersion: "v1",
153+
// Kind: "Pod",
154+
// Name: identifier,
155+
// },
156+
//},
156157
},
157158
Spec: policyv1.PodDisruptionBudgetSpec{
158159
MaxUnavailable: &maxUnavailable,

0 commit comments

Comments
 (0)