Skip to content

Commit

Permalink
chore: additional check in validate charts script (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisingal authored Oct 30, 2024
1 parent ddb7f0d commit cfc2018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate-charts/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def check_helm_template(doc):
with open(filepath, 'r') as fd:
docs = yaml.safe_load_all(fd)
for doc in docs:
if doc['kind'] in ['Deployment', 'StatefulSet', 'Job', 'CronJob']:
if doc is not None and doc['kind'] is not None and doc['kind'] in ['Deployment', 'StatefulSet', 'Job', 'CronJob']:
if not check_helm_template(doc):
validated = False

Expand Down

0 comments on commit cfc2018

Please sign in to comment.