Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support Reconciliation Tracing #454

Merged
merged 38 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
bc5f0e9
view list done
free6om Oct 9, 2024
d507344
chore: auto update cli doc changes
free6om Oct 9, 2024
445193d
view watch WIP
free6om Oct 9, 2024
68733d9
Merge branch 'support/reconciliation-view' of github.com:apecloud/kbc…
free6om Oct 9, 2024
890fd77
chore: auto update cli doc changes
free6om Oct 9, 2024
2d90746
view watch WIP
free6om Oct 10, 2024
4c19228
Merge branch 'support/reconciliation-view' of github.com:apecloud/kbc…
free6om Oct 10, 2024
34eec50
view watch WIP: TUI main framework, summary, latest change, object tr…
free6om Oct 11, 2024
3c7944c
align object tree with changes
free6om Oct 12, 2024
5cb94cc
show selected change
free6om Oct 12, 2024
df68508
watch done
free6om Oct 12, 2024
c18fb4a
create done
free6om Oct 12, 2024
0a95588
update&delete done
free6om Oct 12, 2024
5230eb3
chore: auto update cli doc changes
free6om Oct 12, 2024
beec45c
Merge branch 'main' into support/reconciliation-view
free6om Oct 12, 2024
99d75a0
nil check and show locale description
free6om Oct 12, 2024
0af5368
viewport
free6om Oct 12, 2024
4322ce3
licence
free6om Oct 12, 2024
722fdda
fix lint error
free6om Oct 12, 2024
a8fa44d
refine border
free6om Oct 13, 2024
0862ba8
refine border
free6om Oct 13, 2024
30e7bba
rename view to trace
free6om Oct 15, 2024
55a71f3
chore: auto update cli doc changes
free6om Oct 15, 2024
0ed6908
Merge branch 'main' into support/reconciliation-view
free6om Oct 15, 2024
01613dd
Merge branch 'support/reconciliation-view' of github.com:apecloud/kbc…
free6om Oct 21, 2024
3502150
format latest change
free6om Oct 23, 2024
76f4fe2
calculate pos by m.x/yStep
free6om Oct 23, 2024
21c6322
style refine and object tree mouse motion supported
free6om Oct 23, 2024
b8d084b
fix root node can't be selected issue
free6om Oct 24, 2024
67d38cd
fix missing block in changes graph
free6om Oct 24, 2024
3377d10
remove mockState()
free6om Oct 24, 2024
d17a965
support HighlightLine()
free6om Oct 24, 2024
79ca5e3
fix view range zoom out after mouse clicked
free6om Oct 25, 2024
7583a96
color change by type
free6om Oct 25, 2024
dcc9719
Merge branch 'main' into support/reconciliation-view
free6om Nov 26, 2024
a99fd51
remove embeded apis
free6om Nov 26, 2024
65edb38
update go.mod
free6om Nov 26, 2024
80adc7b
fix broken ut
free6om Nov 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/user_docs/cli/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,17 @@ Report kubeblocks or cluster info.
* [kbcli report kubeblocks](kbcli_report_kubeblocks.md) - Report KubeBlocks information, including deployments, events, logs, etc.


## [trace](kbcli_trace.md)

trace management command

* [kbcli trace create](kbcli_trace_create.md) - create a trace.
* [kbcli trace delete](kbcli_trace_delete.md) - Delete a trace.
* [kbcli trace list](kbcli_trace_list.md) - list all traces.
* [kbcli trace update](kbcli_trace_update.md) - update a trace.
* [kbcli trace watch](kbcli_trace_watch.md) - watch a trace.


## [version](kbcli_version.md)

Print the version information, include kubernetes, KubeBlocks and kbcli version.
Expand Down
1 change: 1 addition & 0 deletions docs/user_docs/cli/kbcli.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ kbcli [flags]
* [kbcli playground](kbcli_playground.md) - Bootstrap or destroy a playground KubeBlocks in local host or cloud.
* [kbcli plugin](kbcli_plugin.md) - Provides utilities for interacting with plugins.
* [kbcli report](kbcli_report.md) - Report kubeblocks or cluster info.
* [kbcli trace](kbcli_trace.md) - trace management command
* [kbcli version](kbcli_version.md) - Print the version information, include kubernetes, KubeBlocks and kbcli version.

#### Go Back to [CLI Overview](cli.md) Homepage.
Expand Down
26 changes: 23 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ go 1.22.4

require (
cuelang.org/go v0.8.0
github.com/76creates/stickers v1.4.0
github.com/Masterminds/semver/v3 v3.3.0
github.com/NimbleMarkets/ntcharts v0.1.2
github.com/apecloud/dbctl v0.0.0-20240827084000-68a1980b1a46
github.com/apecloud/kubeblocks v1.0.0-alpha.11
github.com/apecloud/kubeblocks v1.0.0-beta.1.0.20241126060033-67c88565bfc7
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2
github.com/briandowns/spinner v1.23.0
github.com/chaos-mesh/chaos-mesh/api v0.0.0-20230912020346-a5d89c1c90ad
github.com/charmbracelet/bubbles v0.18.0
github.com/charmbracelet/bubbletea v1.1.1
github.com/charmbracelet/lipgloss v0.13.0
github.com/containerd/stargz-snapshotter/estargz v0.15.1
github.com/containers/common v0.60.2
github.com/docker/go-connections v0.5.0
Expand All @@ -28,6 +33,7 @@ require (
github.com/kubernetes-csi/external-snapshotter/client/v3 v3.0.0
github.com/kubernetes-csi/external-snapshotter/client/v6 v6.2.0
github.com/leaanthony/debme v1.2.1
github.com/lrstanley/bubblezone v0.0.0-20240914071701-b48c55a5e78e
github.com/manifoldco/promptui v0.9.0
github.com/onsi/ginkgo/v2 v2.20.0
github.com/onsi/gomega v1.34.1
Expand All @@ -36,7 +42,7 @@ require (
github.com/replicatedhq/termui/v3 v3.1.1-0.20200811145416-f40076d26851
github.com/replicatedhq/troubleshoot v0.57.0
github.com/robfig/cron/v3 v3.0.1
github.com/sahilm/fuzzy v0.1.0
github.com/sahilm/fuzzy v0.1.1-0.20230530133925-c48e322e2a8f
github.com/sethvargo/go-password v0.2.0
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cast v1.7.0
Expand Down Expand Up @@ -92,8 +98,10 @@ require (
github.com/acomagu/bufpipe v1.0.4 // indirect
github.com/ahmetalpbalkan/go-cursor v0.0.0-20131010032410-8136607ea412 // indirect
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
github.com/andybalholm/brotli v1.0.5 // indirect
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df // indirect
github.com/aws/aws-sdk-go v1.50.8 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
github.com/bhmj/jsonslice v1.1.2 // indirect
Expand All @@ -103,6 +111,8 @@ require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/chai2010/gettext-go v1.0.2 // indirect
github.com/charmbracelet/keygen v0.5.1 // indirect
github.com/charmbracelet/x/ansi v0.2.3 // indirect
github.com/charmbracelet/x/term v0.2.0 // indirect
github.com/chzyer/readline v1.5.1 // indirect
github.com/clbanning/mxj/v2 v2.5.7 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
Expand Down Expand Up @@ -137,8 +147,10 @@ require (
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
github.com/emicklei/proto v1.10.0 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d // indirect
github.com/fasthttp/router v1.4.20 // indirect
github.com/fatih/camelcase v1.0.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
Expand Down Expand Up @@ -213,11 +225,13 @@ require (
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
github.com/lithammer/dedent v1.1.0 // indirect
github.com/longhorn/go-iscsi-helper v0.0.0-20210330030558-49a327fb024e // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.16 // indirect
github.com/miekg/pkcs11 v1.1.1 // indirect
github.com/mistifyio/go-zfs/v3 v3.0.1 // indirect
Expand All @@ -239,9 +253,12 @@ require (
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
github.com/montanaflynn/stats v0.6.6 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/termenv v0.15.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
github.com/nsf/termbox-go v0.0.0-20190121233118-02980233997d // indirect
github.com/nsf/termbox-go v1.1.1 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/opencontainers/runc v1.1.13 // indirect
Expand All @@ -265,6 +282,7 @@ require (
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/savsgio/gotils v0.0.0-20230208104028-c358bd845dee // indirect
github.com/segmentio/ksuid v1.0.4 // indirect
github.com/sergi/go-diff v1.3.1 // indirect
github.com/shirou/gopsutil/v3 v3.24.5 // indirect
Expand All @@ -282,6 +300,8 @@ require (
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/ulikunitz/xz v0.5.12 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v1.50.0 // indirect
github.com/vbatts/tar-split v0.11.5 // indirect
github.com/vmware-tanzu/velero v1.13.2 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
Expand Down
Loading
Loading