Skip to content

Commit

Permalink
Remove old flink-app-hash selector from generic service (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwylde authored Aug 4, 2020
1 parent 7f9f891 commit d377eb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/controller/flinkapplication/flink_state_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,8 @@ func (s *FlinkStateMachine) updateGenericService(ctx context.Context, app *v1bet
if service.Spec.Selector[flink.PodDeploymentSelector] != selector {
// the service hasn't yet been updated
service.Spec.Selector[flink.PodDeploymentSelector] = selector
// remove the old app hash selector if it's still present
delete(service.Spec.Selector, flink.FlinkAppHash)
err = s.k8Cluster.UpdateK8Object(ctx, service)
if err != nil {
return err
Expand Down

0 comments on commit d377eb1

Please sign in to comment.