func ExtractReplicaSet(replicaSet *apiappsv1.ReplicaSet, fieldManager string) (*ReplicaSetApplyConfiguration, error) {
	return extractReplicaSet(replicaSet, fieldManager, "")
}
ExtractReplicaSet extracts the applied configuration owned by fieldManager from
replicaSet. If no managedFields are found in replicaSet for fieldManager, a
ReplicaSetApplyConfiguration is returned with only the Name, Namespace (if applicable),
APIVersion and Kind populated. It is possible that no managed fields were found for because other
field managers have taken ownership of all the fields previously owned by fieldManager, or because
the fieldManager never owned fields any fields.
replicaSet must be a unmodified ReplicaSet API object that was retrieved from the Kubernetes API.
ExtractReplicaSet provides a way to perform a extract/modify-in-place/apply workflow.
Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
applied if another fieldManager has updated or force applied any of the previously applied fields.
Experimental!
package v1
import (
	apiappsv1 "k8s.io/api/apps/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	types "k8s.io/apimachinery/pkg/types"
	managedfields "k8s.io/apimachinery/pkg/util/managedfields"
	internal "k8s.io/client-go/applyconfigurations/internal"
	v1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
type ReplicaSetApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *ReplicaSetSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *ReplicaSetStatusApplyConfiguration `json:"status,omitempty"`
}
func ReplicaSet(name, namespace string) *ReplicaSetApplyConfiguration {
	b := &ReplicaSetApplyConfiguration{}
	b.WithName(name)
	b.WithNamespace(namespace)
	b.WithKind("ReplicaSet")
	b.WithAPIVersion("apps/v1")
	return b
}