You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/karmadactl/join/join.go
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -107,14 +107,14 @@ type CommandJoinOption struct {
107
107
// more details about running Kubernetes in multiple zones.
108
108
ClusterZones []string
109
109
110
-
// HostAs represents the host cluster username to impersonate for the operation. User could be a regular user or a service account in a namespace
111
-
HostAsstring
110
+
// KarmadaAs represents the username to impersonate for the operation in karmada control plane. User could be a regular user or a service account in a namespace
111
+
KarmadaAsstring
112
112
113
-
// HostAsGroups represents the host cluster group to impersonate for the operation, this flag can be repeated to specify multiple groups
114
-
HostAsGroups []string
113
+
// KarmadaAsGroups represents groups to impersonate for the operation in karmada control plane, this flag can be repeated to specify multiple groups
114
+
KarmadaAsGroups []string
115
115
116
-
// HostAsUID represents the host cluster UID to impersonate for the operation.
117
-
HostAsUIDstring
116
+
// KarmadaAsUID represents the UID to impersonate for the operation in karmada control plane.
117
+
KarmadaAsUIDstring
118
118
119
119
// DryRun tells if run the command in dry-run mode, without making any server requests.
flags.StringVar(&j.ClusterProvider, "cluster-provider", "", "Provider of the joining cluster. The Karmada scheduler can use this information to spread workloads across providers for higher availability.")
160
160
flags.StringVar(&j.ClusterRegion, "cluster-region", "", "The region of the joining cluster. The Karmada scheduler can use this information to spread workloads across regions for higher availability.")
161
161
flags.StringSliceVar(&j.ClusterZones, "cluster-zones", nil, "The zones of the joining cluster. The Karmada scheduler can use this information to spread workloads across zones for higher availability.")
162
-
flags.StringVar(&j.HostAs, "host-as", "",
163
-
"Host cluster username to impersonate for the operation. User could be a regular user or a service account in a namespace.")
0 commit comments