Skip to content

Commit 7add4c8

Browse files
Merge pull request #27 from Kpler/fix/exclude-namespaces-yaml-for-gitops-validation
fix: only consider folders when listing services
2 parents 24273b5 + 3c7a736 commit 7add4c8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

kp_pre_commit_hooks/gitops-values-validation.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ def main():
125125

126126
# Iterate over direct subdirectories inside GITOPS_DIR
127127
for service_path in GITOPS_DIR.glob("*/*"):
128+
if not service_path.is_dir():
129+
continue
130+
128131
chart_file = service_path / "Chart.yaml"
129132
value_file = service_path / "values.yaml"
130133
if not (chart_file.is_file() and value_file.is_file()):

0 commit comments

Comments
 (0)