feat(kubernetes/kubectl): add config getter

This commit is contained in:
Kevin Franklin Kim 2024-07-30 15:38:33 +02:00
parent f2fc1ae9f9
commit 6d26fa2051
No known key found for this signature in database

View File

@ -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)
}