class Porkadot::Configs::Kubernetes::Proxy

def proxy_config kubeconfig=nil

def proxy_config kubeconfig=nil
  self.raw.config['clusterCIDR'] = config.k8s.networking.pod_subnet
  if kubeconfig
    self.raw.config['clientConnection']['kubeconfig'] = kubeconfig
  end
  self.raw.config.to_hash.to_yaml
end