Skip to content

Commit

Permalink
[dev] Fix blowtorch (gitpod-io#18436)
Browse files Browse the repository at this point in the history
  • Loading branch information
geropl authored Aug 4, 2023
1 parent 9b4cc85 commit 47d21c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dev/blowtorch/pkg/dart/injector.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ func Inject(cfg *rest.Config, namespace, targetService string, options ...Inject

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

newSpec := oldService.Spec.DeepCopy()
newSpec.ClusterIP = ""
newSpec.ClusterIPs = []string{}
newSpec.Selector = labels
newMeta := oldService.ObjectMeta.DeepCopy()
if newMeta.Labels == nil {
Expand Down Expand Up @@ -333,6 +335,8 @@ func Remove(cfg *rest.Config, namespace, targetService string) error {
GracePeriodSeconds: &gracePeriod,
})
if err != nil {

log.Info("tried to: proxy deployment deleted")
return err
}
log.WithField("name", pdp).Info("proxy deployment deleted")
Expand Down

0 comments on commit 47d21c6

Please sign in to comment.