Skip to content

Commit 6efdc03

Browse files
ludydooclaude
andcommitted
Clean up after RoutesCreated field removal
- Remove debug logging documentation that was accidentally added - Fix test indices in central_test.go after RoutesCreated field removal 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0ebeae6 commit 6efdc03

2 files changed

Lines changed: 2 additions & 32 deletions

File tree

docs/development/running-fleet-manager.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -40,36 +40,6 @@ make binary && ./fleet-manager serve \
4040
2>&1 | tee fleet-manager-serve.log
4141
```
4242

43-
## Debug Logging Configuration
44-
45-
Both fleet-manager and fleetshard-sync support configurable debug logging levels using standard glog flags:
46-
47-
- `-v=0` - Basic error and warning messages (default)
48-
- `-v=1` - Include informational messages
49-
- `-v=2` - Include important debug messages (recommended for troubleshooting)
50-
- `-v=3` - Include detailed debug messages
51-
- `-v=4` and higher - Include verbose trace information
52-
53-
**Examples:**
54-
55-
For local development with enhanced debugging:
56-
```bash
57-
make binary && ./fleet-manager serve -v=2 --dataplane-cluster-config-file=...
58-
```
59-
60-
For fleetshard-sync with debug logging:
61-
```bash
62-
./fleetshard -v=3
63-
```
64-
65-
The debug logging added includes detailed information about:
66-
- Central reconciliation flow and decision points
67-
- Secret restoration and validation
68-
- Namespace and resource management
69-
- ArgoCD application deployment
70-
- Pod termination and cleanup processes
71-
- Hash computation and change detection
72-
7343
## Running containerized fleet-manager and fleetshard-sync on a test cluster
7444

7545
A test cluster can be either local or remote. Recommended local clusters are _colima_ for macOS and _kind_ for linux. The easiest way to provision a remote OpenShift cluster is to use StackRox Infra and the infractl tool.

internal/central/pkg/services/central_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ func Test_centralService_RestoreExpiredCentrals(t *testing.T) {
235235
expiredChecked := false
236236
updateQuery := m1.WithQuery(`UPDATE`).WithCallback(
237237
func(s string, nv []driver.NamedValue) {
238-
expiredAt, _ := (nv[11].Value).(*time.Time)
238+
expiredAt, _ := (nv[10].Value).(*time.Time)
239239
assert.Nil(t, expiredAt)
240-
assert.Equal(t, "test-id", nv[12].Value)
240+
assert.Equal(t, "test-id", nv[11].Value)
241241
expiredChecked = true
242242
})
243243
svcErr := centralService.Restore(context.Background(), "test-id")

0 commit comments

Comments
 (0)