mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-26 23:24:32 +00:00
Re-generate extract functions
Kubernetes-commit: a24e8acc32d7c0380a7b2c8a2f500b48891a9987
This commit is contained in:
committed by
Kubernetes Publisher
parent
d3fbdeba9a
commit
0fd603dad0
@@ -57,8 +57,19 @@ func CSIDriver(name string) *CSIDriverApplyConfiguration {
|
||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||
// Experimental!
|
||||
func ExtractCSIDriver(cSIDriver *storagev1beta1.CSIDriver, fieldManager string) (*CSIDriverApplyConfiguration, error) {
|
||||
return extractCSIDriver(cSIDriver, fieldManager, "")
|
||||
}
|
||||
|
||||
// ExtractCSIDriverStatus is the same as ExtractCSIDriver except
|
||||
// that it extracts the status subresource applied configuration.
|
||||
// Experimental!
|
||||
func ExtractCSIDriverStatus(cSIDriver *storagev1beta1.CSIDriver, fieldManager string) (*CSIDriverApplyConfiguration, error) {
|
||||
return extractCSIDriver(cSIDriver, fieldManager, "status")
|
||||
}
|
||||
|
||||
func extractCSIDriver(cSIDriver *storagev1beta1.CSIDriver, fieldManager string, subresource string) (*CSIDriverApplyConfiguration, error) {
|
||||
b := &CSIDriverApplyConfiguration{}
|
||||
err := managedfields.ExtractInto(cSIDriver, internal.Parser().Type("io.k8s.api.storage.v1beta1.CSIDriver"), fieldManager, b)
|
||||
err := managedfields.ExtractInto(cSIDriver, internal.Parser().Type("io.k8s.api.storage.v1beta1.CSIDriver"), fieldManager, b, subresource)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user