Skip to content

Commit 3c7a736

Browse files
committed
fix: only consider folders when listing services
1 parent 24273b5 commit 3c7a736

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)