Skip to content

Commit 941034d

Browse files
authored
Fixed the definition of exportTo field in VirtualService to array (rather than string). (#558)
Signed-off-by: Tanya <[email protected]>
1 parent f896f2e commit 941034d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nca/Parsers/IstioTrafficResourcesYamlParser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def parse_virtual_service(self, vs_resource, vs_file_name):
155155
vs_spec = vs_resource['spec']
156156
self.check_fields_validity(vs_spec, f'VirtualService {vs.full_name()}',
157157
{'hosts': [0, list], 'gateways': [0, list], 'http': 0, 'tls': 3, 'tcp': 3,
158-
'exportTo': [3, str]})
158+
'exportTo': [3, list]})
159159
hosts = vs_spec.get('hosts')
160160
for host in hosts or []:
161161
host_dfa = self.parse_host_value(host, vs_resource)

0 commit comments

Comments
 (0)