var kindReplicationController … var kindExtensionsReplicaSet … var kindAppsReplicaSet … var kindExtensionsDeployment … var kindAppsDeployment … var kindExtensionsDaemonSet … var kindBatchJob … // GetRuntimeObjectForKind returns a runtime.Object based on its GroupKind, // namespace and name. func GetRuntimeObjectForKind(ctx context.Context, c clientset.Interface, kind schema.GroupKind, ns, name string) (runtime.Object, error) { … } // GetSelectorFromRuntimeObject returns the labels for the given object. func GetSelectorFromRuntimeObject(obj runtime.Object) (labels.Selector, error) { … } // GetReplicasFromRuntimeObject returns the number of replicas for the given // object. func GetReplicasFromRuntimeObject(obj runtime.Object) (int32, error) { … }