update reaper, scaler, describer for GroupKind
This commit is contained in:
@@ -189,7 +189,7 @@ func RCFromManifest(fileName string) *api.ReplicationController {
|
||||
|
||||
// StopRC stops the rc via kubectl's stop library
|
||||
func StopRC(rc *api.ReplicationController, restClient *client.Client) error {
|
||||
reaper, err := kubectl.ReaperFor("ReplicationController", restClient)
|
||||
reaper, err := kubectl.ReaperFor(api.Kind("ReplicationController"), restClient)
|
||||
if err != nil || reaper == nil {
|
||||
return err
|
||||
}
|
||||
@@ -202,7 +202,7 @@ func StopRC(rc *api.ReplicationController, restClient *client.Client) error {
|
||||
|
||||
// ScaleRC scales the given rc to the given replicas.
|
||||
func ScaleRC(name, ns string, replicas int, restClient *client.Client) (*api.ReplicationController, error) {
|
||||
scaler, err := kubectl.ScalerFor("ReplicationController", restClient)
|
||||
scaler, err := kubectl.ScalerFor(api.Kind("ReplicationController"), restClient)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user