Skip to content

Commit 30ee8ab

Browse files
author
Nina Bongartz
committed
wip
Signed-off-by: Nina Bongartz <pnink@web.de>
1 parent e724e08 commit 30ee8ab

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

cmd/validation-agent/main.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,10 @@ func main() {
8484
return
8585
}
8686
}
87-
} else {
88-
// One-shot mode: wait for signal (keep container running if validation succeeded)
89-
logger.Info("One-shot validation complete, waiting for shutdown signal")
90-
<-ctx.Done()
91-
logger.Info("Shutting down gracefully")
9287
}
88+
// One-shot mode: validation complete, exit immediately (for init containers)
89+
logger.Info("One-shot validation complete, exiting")
90+
// Exit code 0 (success already handled, failures exit earlier at line 52)
9391
}
9492

9593
func runValidation(args []string, logger logr.Logger) error {

0 commit comments

Comments
 (0)