-
Notifications
You must be signed in to change notification settings - Fork 489
Add link generator to DashboardClient #2276
Conversation
Signed-off-by: Sam Foo <[email protected]>
f31c7dd
to
e798af3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for checking this one off the list.
Can you create an issue to add this to an example plugin as well? (in the example plugin repo). I think showing the usage of this will be useful to plugin authors. Also is this worth adding example usage in our Go Plugin storybook doc? |
I'm inclined to say storybook should be for component rather than API documentation. We can add an example plugin and create a page for documenting what DashboardClient can do outside of code comments. |
Where do you see us moving these to? https://reference.octant.dev/?path=/docs/docs-plugins-2-go-plugins--page |
My thought was that having the "how to" plugin guides and component reference in the same place is useful |
That's fine where it is. I'll add sample code in https://github.com/vmware-tanzu/octant-example-plugins |
We can now support Octant 0.24 (latest version). Older versions (up to 0.19) may be supported as well (not tested). By updating the Octant module dependency to v0.24.0, we can also start using the Octant Dashboard client to perform CRUD operations on Antrea CRDs, thus ensuring that the plugin is always using the correct cluster context (see antrea-io#1519). A few other notable things: * We can remove replace directives in the plugin go.mod file (for now?) since K8s dependencies between Antrea and Octant are compatible. * Octant now has a new logging mechanism for plugins but unfortunately it is still buggy so we are not updating our plugin to use it. * The Dashboard client supports a link generator to easily generate links to resources (vmware-archive/octant#2276). Unfortunately I believe that in practice it would make our plugin code more complicated. We can revisit this in the future. Fixes antrea-io#1519 Fixes antrea-io#2315 Fixes antrea-io#2676 Signed-off-by: Antonin Bas <[email protected]>
We can now support Octant 0.24 (latest version). Older versions (up to 0.19) may be supported as well (not tested). By updating the Octant module dependency to v0.24.0, we can also start using the Octant Dashboard client to perform CRUD operations on Antrea CRDs, thus ensuring that the plugin is always using the correct cluster context (see antrea-io#1519). A few other notable things: * We can remove replace directives in the plugin go.mod file (for now?) since K8s dependencies between Antrea and Octant are compatible. * Octant now has a new logging mechanism for plugins but unfortunately it is still buggy so we are not updating our plugin to use it. * The Dashboard client supports a link generator to easily generate links to resources (vmware-archive/octant#2276). Unfortunately I believe that in practice it would make our plugin code more complicated. We can revisit this in the future. Fixes antrea-io#1519 Fixes antrea-io#2315 Fixes antrea-io#2676 Signed-off-by: Antonin Bas <[email protected]>
We can now support Octant 0.24 (latest version). Older versions (up to 0.19) may be supported as well (not tested). By updating the Octant module dependency to v0.24.0, we can also start using the Octant Dashboard client to perform CRUD operations on Antrea CRDs, thus ensuring that the plugin is always using the correct cluster context (see antrea-io#1519). A few other notable things: * We can remove replace directives in the plugin go.mod file (for now?) since K8s dependencies between Antrea and Octant are compatible. * Octant now has a new logging mechanism for plugins but unfortunately it is still buggy so we are not updating our plugin to use it. * The Dashboard client supports a link generator to easily generate links to resources (vmware-archive/octant#2276). Unfortunately I believe that in practice it would make our plugin code more complicated. We can revisit this in the future. Fixes antrea-io#1519 Fixes antrea-io#2315 Fixes antrea-io#2676 Signed-off-by: Antonin Bas <[email protected]>
* Update Antrea Octant plugin to support latest Octant version We can now support Octant 0.24 (latest version). Older versions (up to 0.19) may be supported as well (not tested). By updating the Octant module dependency to v0.24.0, we can also start using the Octant Dashboard client to perform CRUD operations on Antrea CRDs, thus ensuring that the plugin is always using the correct cluster context (see #1519). A few other notable things: * We can remove replace directives in the plugin go.mod file (for now?) since K8s dependencies between Antrea and Octant are compatible. * Octant now has a new logging mechanism for plugins but unfortunately it is still buggy so we are not updating our plugin to use it. * The Dashboard client supports a link generator to easily generate links to resources (vmware-archive/octant#2276). Unfortunately I believe that in practice it would make our plugin code more complicated. We can revisit this in the future. Fixes #1519 Fixes #2315 Fixes #2676 Signed-off-by: Antonin Bas <[email protected]> * Override license detection for github.com/opencontainers/go-digest Signed-off-by: Antonin Bas <[email protected]> * Fix Docker build for Antrea Octant plugin Signed-off-by: Antonin Bas <[email protected]> * More tweaks for license detection Signed-off-by: Antonin Bas <[email protected]>
What this PR does / why we need it:
Usage:
request.DashboardClient.CreateLink(request.Context(), key)
Which issue(s) this PR fixes