mirror of
https://github.com/rancher/types.git
synced 2025-07-31 20:55:00 +00:00
Assign ClusterName
This commit is contained in:
parent
2a684648d4
commit
f91d506545
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user