Skip to content

Commit

Permalink
INFRA-923: add support for loadbalancer whitelist-flag in GKE.
Browse files Browse the repository at this point in the history
This allows users to control who has direct access to their service in fiaas.yml.
  • Loading branch information
joakim-rishaug committed Aug 12, 2016
1 parent b027a84 commit f4f09ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions k8s/models/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class ServiceSpec(Model):
loadBalancerIP = OnceField(six.text_type)
type = Field(six.text_type, "ClusterIP")
sessionAffinity = Field(six.text_type, "None")
loadBalancerSourceRanges = ListField(six.text_type)


class Service(Model):
Expand Down
2 changes: 2 additions & 0 deletions tests/k8s/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def test_list_field_old(self):
assert model.list_field == [1]
model.list_field = [1, 2]
assert model.list_field == [1, 2]
model.list_field = []
assert model.list_field == []

def test_once_field_new(self):
model = ModelTest(new=True, once_field=1)
Expand Down

0 comments on commit f4f09ab

Please sign in to comment.