util

package
v1.6.0-alpha.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewControllerRef

func NewControllerRef(c *scyllav1.ScyllaCluster) metav1.OwnerReference

NewControllerRef returns an OwnerReference to the provided Cluster Object

func PatchService

func PatchService(ctx context.Context, old, new *corev1.Service, kubeClient kubernetes.Interface) error

PatchService patches the old Service so that it matches the new Service.

Types

type StrategicMergePatchFunc

type StrategicMergePatchFunc func(obj runtime.Object) ([]byte, error)

The StrategicMergePatchFunc type is an adapter to allow the use of ordinary functions as Strategic Merge Patch.

func (StrategicMergePatchFunc) Data

func (f StrategicMergePatchFunc) Data(obj runtime.Object) ([]byte, error)

Data returns the raw data representing the patch.

func (StrategicMergePatchFunc) Type

Type returns PatchType of Strategic Merge Patch

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL