Skip to content

Commit 37fa23f

Browse files
fix: add version to health data
1 parent 227d987 commit 37fa23f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apiconnect_net.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def fish(self):
4848
'v1beta1',
4949
customResource['plural'])
5050
for item in api_response['items']:
51+
version = item['status']['versions']['reconciled']
5152
for condition in item['status']['conditions']:
5253
if condition['type'] == 'Ready':
5354
if condition['status']:
@@ -60,6 +61,7 @@ def fish(self):
6061
health,
6162
labels={
6263
"component": "{}_{}".format(customResource['plural'][:-1], item['metadata']['name']),
64+
"version": version,
6365
**self.health_label
6466
})
6567

0 commit comments

Comments
 (0)