mirror of
https://github.com/foomo/posh-providers.git
synced 2025-10-16 12:35:41 +00:00
feat(kubernetes/kubectl): add config getter
This commit is contained in:
parent
f2fc1ae9f9
commit
6d26fa2051
@ -80,6 +80,10 @@ func New(l log.Logger, cache cache.Cache, opts ...Option) (*Kubectl, error) {
|
||||
// ~ Public methods
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
||||
func (k *Kubectl) Config() Config {
|
||||
return k.cfg
|
||||
}
|
||||
|
||||
func (k *Kubectl) Cluster(name string) *Cluster {
|
||||
return NewCluster(k, name)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user