Skip to content

Commit 47d21c6

Browse files
authored
[dev] Fix blowtorch (#18436)
1 parent 9b4cc85 commit 47d21c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dev/blowtorch/pkg/dart/injector.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ func Inject(cfg *rest.Config, namespace, targetService string, options ...Inject
133133

134134
renamedSpec := oldService.Spec.DeepCopy()
135135
renamedSpec.ClusterIP = ""
136+
renamedSpec.ClusterIPs = []string{}
136137
renamedMeta := oldService.ObjectMeta.DeepCopy()
137138
renamedMeta.Name = fmt.Sprintf(fmtOriginalService, oldService.Name)
138139
renamedMeta.ResourceVersion = ""
@@ -162,6 +163,7 @@ func Inject(cfg *rest.Config, namespace, targetService string, options ...Inject
162163

163164
newSpec := oldService.Spec.DeepCopy()
164165
newSpec.ClusterIP = ""
166+
newSpec.ClusterIPs = []string{}
165167
newSpec.Selector = labels
166168
newMeta := oldService.ObjectMeta.DeepCopy()
167169
if newMeta.Labels == nil {
@@ -333,6 +335,8 @@ func Remove(cfg *rest.Config, namespace, targetService string) error {
333335
GracePeriodSeconds: &gracePeriod,
334336
})
335337
if err != nil {
338+
339+
log.Info("tried to: proxy deployment deleted")
336340
return err
337341
}
338342
log.WithField("name", pdp).Info("proxy deployment deleted")

0 commit comments

Comments
 (0)