Skip to content

Commit

Permalink
salt: fix (once again) Service handling in metalk8s_kubernetes
Browse files Browse the repository at this point in the history
This time, the `externalIPs` field was not properly propagated.
  • Loading branch information
NicolasT committed Sep 30, 2019
1 parent deabd60 commit eecfb18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions salt/_modules/metalk8s_kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1679,6 +1679,8 @@ def __dict_to_service_spec(spec):
spec_obj.ports.append(kube_port)
elif key == 'clusterIP':
spec_obj.cluster_ip = value
elif key == 'externalIPs':
spec_obj.external_i_ps = value
elif hasattr(spec_obj, key):
setattr(spec_obj, key, value)

Expand Down

0 comments on commit eecfb18

Please sign in to comment.