Documentation ¶
Index ¶
- func MergePatchBytes(old, cur interface{}) ([]byte, error)
- func PatchServiceLoadBalancerStatus(client coreclient.CoreV1Interface, svc *corev1.Service, ...) error
- func PatchServiceObjectMetadata(client coreclient.CoreV1Interface, svc *corev1.Service, ...) error
- func StrategicMergePatchBytes(old, cur, refStruct interface{}) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergePatchBytes ¶
MergePatchBytes returns a patch between the old and new object using a strategic merge patch. Note: refStruct is a empty struct of the type which the patch is being generated for.
func PatchServiceLoadBalancerStatus ¶
func PatchServiceLoadBalancerStatus(client coreclient.CoreV1Interface, svc *corev1.Service, newStatus corev1.LoadBalancerStatus) error
PatchServiceLoadBalancerStatus patches the given service's LoadBalancerStatus based on new service's load-balancer status.
func PatchServiceObjectMetadata ¶
func PatchServiceObjectMetadata(client coreclient.CoreV1Interface, svc *corev1.Service, newObjectMetadata metav1.ObjectMeta) error
PatchServiceObjectMetadata patches the given service's metadata based on new service metadata.
func StrategicMergePatchBytes ¶
StrategicMergePatchBytes returns a patch between the old and new object using a strategic merge patch. Note: refStruct is a empty struct of the type which the patch is being generated for.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.