adamant-kite-43734
07/26/2023, 3:28 PMstocky-account-63046
07/27/2023, 10:02 AMmanagement
(the steve api) and rancher
(norman api) will interact with resources in the local / upstream cluster where Rancher is installed. The cluster
store does indeed only manage resources for the cluster in the current context. All stores will cache resources and make them available in a generic way to components.
All three use an instance of the steve
vuex store under the hood.
For extensions that would need access to a cluster like store that live outside of the cluster explorer world and have a cluster context... they would need to have their own store (which would basically inherit everything from the steve
store) and follow the standard route pattern to identify the cluster (usually something like c-cluster...
)
For extensions that don't have a cluster context though.... they would need to make make individual requests and be responsible for cacheing results. The requests could be make via the cluster/request
action , that handles some generic things, but a url would still need to be provided and the response would need storing somewhere.gentle-shoe-14473
07/27/2023, 5:46 PMcluster/request
action was what I needed. I also found an example of what I wanted in the epinio ui repository.