Skip to content

Commit d0d3604

Browse files
committed
Registry Pod Controller Flag
Sets the marketplace pod's ownerreference to have `controller: true` to prevent forceful node drain. Signed-off-by: Daniel Franz <[email protected]>
1 parent 4634317 commit d0d3604

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/controller/registry/reconciler/configmap.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (s *configMapCatalogSourceDecorator) Pod(image string) *corev1.Pod {
105105
pod := Pod(s.CatalogSource, "configmap-registry-server", image, "", s.Labels(), s.Annotations(), 5, 5, s.runAsUser)
106106
pod.Spec.ServiceAccountName = s.GetName() + ConfigMapServerPostfix
107107
pod.Spec.Containers[0].Command = []string{"configmap-server", "-c", s.Spec.ConfigMap, "-n", s.GetNamespace()}
108-
ownerutil.AddOwner(pod, s.CatalogSource, false, false)
108+
ownerutil.AddOwner(pod, s.CatalogSource, false, true)
109109
return pod
110110
}
111111

pkg/controller/registry/reconciler/grpc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (s *grpcCatalogSourceDecorator) ServiceAccount() *corev1.ServiceAccount {
124124

125125
func (s *grpcCatalogSourceDecorator) Pod(saName string) *corev1.Pod {
126126
pod := Pod(s.CatalogSource, "registry-server", s.Spec.Image, saName, s.Labels(), s.Annotations(), 5, 10, s.createPodAsUser)
127-
ownerutil.AddOwner(pod, s.CatalogSource, false, false)
127+
ownerutil.AddOwner(pod, s.CatalogSource, false, true)
128128
return pod
129129
}
130130

0 commit comments

Comments
 (0)