You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flux2/cmd/flux/testdata
Max Jonas Werner 3e80c5809e
Fix `flux trace` for HRs from `OCIRepository`s
Before:
```
$ flux -n default trace pod default-podinfo-585856f49c-4jl4m
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x40 pc=0x10618da70]

goroutine 1 [running]:
main.traceHelm({0x106dd7b28, 0x14000201490}, {0x12f34c0d8, 0x14000783100}, {{0x1400071e130?, 0x1061e7795?}, {0x1400071e109?, 0x1000d9c84?}}, 0x140006a6030)
	/home/runner/work/flux2/flux2/cmd/flux/trace.go:404 +0x2f0
main.traceObject({0x106dd7b28, 0x14000201490}, {0x12f34c0d8, 0x14000783100}, 0x140006a6030)
	/home/runner/work/flux2/flux2/cmd/flux/trace.go:134 +0x11c
main.traceObjects({0x106dd7b28, 0x14000201490}, {0x12f34c0d8, 0x14000783100}, {0x140006a6040, 0x1, 0x0?})
	/home/runner/work/flux2/flux2/cmd/flux/trace.go:112 +0x74
main.traceCmdRun(0x14000592800?, {0x140003aea80, 0x2, 0x4})
	/home/runner/work/flux2/flux2/cmd/flux/trace.go:107 +0x180
github.com/spf13/cobra.(*Command).execute(0x108341980, {0x140003aea40, 0x4, 0x4})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:985 +0x834
github.com/spf13/cobra.(*Command).ExecuteC(0x108329280)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117 +0x344
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041
main.main()
	/home/runner/work/flux2/flux2/cmd/flux/main.go:189 +0x78
```

After:

```
 $ ~/dev/flux/flux2/bin/flux -n default trace pod default-podinfo-585856f49c-4jl4m

Object:         Pod/default-podinfo-585856f49c-4jl4m
Namespace:      default
Status:         Managed by Flux
---
HelmRelease:    podinfo
Namespace:      flux-system
Target:         default
Revision:       6.8.0+2360bdf32ddc
Status:         Last reconciled at 2025-05-14 16:10:37 +0200 CEST
Message:        Helm install succeeded for release default/default-podinfo.v1 with chart podinfo@6.8.0+2360bdf32ddc
---
OCIRepository:   podinfo
Namespace:       flux-system
URL:             oci://ghcr.io/stefanprodan/charts/podinfo
Tag:             6.8.0
Revision:        6.8.0@sha256:2360bdf32ddc50c05f8e128118173343b0a012a338daf145b16e0da9c80081a4
Status:          Last reconciled at 2025-05-14 16:09:17 +0200 CEST
Message:         stored artifact for digest '6.8.0@sha256:2360bdf32ddc50c05f8e128118173343b0a012a338daf145b16e0da9c80081a4'
```

Signed-off-by: Max Jonas Werner <max@coppersoft.com>
1 month ago
..
build-kustomization Recursively build and diff Kustomizations 9 months ago
check Update Kubernetes min supported version to 1.30 4 months ago
cluster_info prevent flux install from overriding bootrapped cluster 2 years ago
create_hr Add support for creating HR with .spec.ChartRef 1 year ago
create_secret [RFC-007] Flux cmd support for GitHub provider: This commit includes the following changes - 4 months ago
create_source_chart Add `(create|delete|export) source chart` commands 1 year ago
create_source_git [RFC-007] Flux cmd support for GitHub provider: This commit includes the following changes - 4 months ago
create_source_helm Update Helm Source APIs to v1 (GA) 1 year ago
debug_helmrelease Fix command debug hr not taking targetPath into account 3 months ago
debug_kustomization Add links to status docs in `flux debug` commands 6 months ago
diff-artifact feat: diff artifact capability added 3 years ago
diff-kustomization Recursively build and diff Kustomizations 9 months ago
envsubst Add `flux envsubst` command 1 year ago
export Promote `bucket` commands to GA 9 months ago
get Add label selector flag to get cmd 2 years ago
helmrelease Update HelmRelease golden file with new message 2 years ago
image Fix create command always using imageRepositoryType 5 months ago
kustomization fix golden file 5 months ago
logs Add unit tests for flux logs 3 years ago
oci Add flags for issuer/subject OCI signature verification 1 year ago
trace Fix `flux trace` for HRs from `OCIRepository`s 1 month ago
tree Update GitRepository Receiver, and Kustomization to v1 2 years ago