Re-generate extract functions

Kubernetes-commit: a24e8acc32d7c0380a7b2c8a2f500b48891a9987
This commit is contained in:
Joe Betz
2021-03-19 15:28:20 -07:00
committed by Kubernetes Publisher
parent d3fbdeba9a
commit 0fd603dad0
98 changed files with 1176 additions and 98 deletions

View File

@@ -58,8 +58,19 @@ func VolumeAttachment(name string) *VolumeAttachmentApplyConfiguration {
// applied if another fieldManager has updated or force applied any of the previously applied fields.
// Experimental!
func ExtractVolumeAttachment(volumeAttachment *storagev1beta1.VolumeAttachment, fieldManager string) (*VolumeAttachmentApplyConfiguration, error) {
return extractVolumeAttachment(volumeAttachment, fieldManager, "")
}
// ExtractVolumeAttachmentStatus is the same as ExtractVolumeAttachment except
// that it extracts the status subresource applied configuration.
// Experimental!
func ExtractVolumeAttachmentStatus(volumeAttachment *storagev1beta1.VolumeAttachment, fieldManager string) (*VolumeAttachmentApplyConfiguration, error) {
return extractVolumeAttachment(volumeAttachment, fieldManager, "status")
}
func extractVolumeAttachment(volumeAttachment *storagev1beta1.VolumeAttachment, fieldManager string, subresource string) (*VolumeAttachmentApplyConfiguration, error) {
b := &VolumeAttachmentApplyConfiguration{}
err := managedfields.ExtractInto(volumeAttachment, internal.Parser().Type("io.k8s.api.storage.v1beta1.VolumeAttachment"), fieldManager, b)
err := managedfields.ExtractInto(volumeAttachment, internal.Parser().Type("io.k8s.api.storage.v1beta1.VolumeAttachment"), fieldManager, b, subresource)
if err != nil {
return nil, err
}