From 3a6214f11314ed5ccf41cd1678457f3473f3cc4c Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 30 Nov 2026 16:51:52 +0500 Subject: [PATCH] uralkal: pass explicit true to Vector require-healthy --- ci/security/verify-service-logs.py | 10 ++++++++++ infrastructure/vector/base/statefulset.yaml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ci/security/verify-service-logs.py b/ci/security/verify-service-logs.py index 13d0edf..95c0dc2 100644 --- a/ci/security/verify-service-logs.py +++ b/ci/security/verify-service-logs.py @@ -86,5 +86,15 @@ path = root / 'vector-check.yaml' path.write_text(yaml.safe_dump(vector, sort_keys=False)) subprocess.run([args.vector_bin, 'validate', '--skip-healthchecks', str(path)], env=env, check=True) subprocess.run([args.vector_bin, 'test', str(path)], env=env, check=True) +# Exercise the actual pod argv, stopping at a deliberately missing config before any listeners/sinks start. +statefulset = next(d for d in yaml.safe_load_all((repo / 'infrastructure/vector/base/statefulset.yaml').read_text()) if d.get('kind') == 'StatefulSet') +container = next(c for c in statefulset['spec']['template']['spec']['containers'] if c['name'] == 'vector') +startup_args = list(container['args']) +missing_config = root / 'missing-vector-startup-config.yaml' +startup_args[startup_args.index('--config') + 1] = str(missing_config) +startup = subprocess.run([args.vector_bin, *startup_args], env=env, text=True, capture_output=True, timeout=10) +assert startup.returncode != 0 and str(missing_config) in startup.stdout + startup.stderr, \ + 'Vector pod arguments were rejected before config loading: ' + startup.stdout + startup.stderr +print('Vector pod CLI arguments accepted') temporary.cleanup() print('All local service-log checks passed. Live MinIO/Vault/registry delivery is not tested.') diff --git a/infrastructure/vector/base/statefulset.yaml b/infrastructure/vector/base/statefulset.yaml index ef1738d..997b5bc 100644 --- a/infrastructure/vector/base/statefulset.yaml +++ b/infrastructure/vector/base/statefulset.yaml @@ -52,7 +52,7 @@ spec: containers: - name: vector image: timberio/vector:0.56.0-debian - args: ["--config", "/etc/vector/vector.yaml", "--require-healthy"] + args: ["--config", "/etc/vector/vector.yaml", "--require-healthy", "true"] env: - {name: VECTOR_LOG, value: info} - {name: AWS_EC2_METADATA_DISABLED, value: "true"}