1
0
mirror of https://github.com/rancher/types.git synced 2025-07-31 20:55:00 +00:00

Assign ClusterName

This commit is contained in:
Darren Shepherd 2017-11-28 20:59:54 -07:00
parent 2a684648d4
commit f91d506545

View File

@ -95,7 +95,8 @@ func (c *ClusterContext) StartAndWait() error {
func NewWorkloadContext(clusterConfig, config rest.Config, clusterName string) (*WorkloadContext, error) {
var err error
context := &WorkloadContext{
RESTConfig: config,
RESTConfig: config,
ClusterName: clusterName,
}
context.Cluster, err = NewClusterContext(clusterConfig)