Documentation ¶
Index ¶
- func AnnotateService(ctx context.Context, client kubernetes.Interface, service *v1.Service, ...) error
- func PatchService(ctx context.Context, client kubernetes.Interface, service *v1.Service, ...) error
- func PatchServiceExternalTrafficPolicy(ctx context.Context, client kubernetes.Interface, service *v1.Service, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnnotateService ¶
func AnnotateService( ctx context.Context, client kubernetes.Interface, service *v1.Service, kv ...string, ) error
AnnotateService takes a list of key/value pairs and applies them as annotations using JSON patch (https://jsonpatch.com/).
func PatchService ¶
func PatchService( ctx context.Context, client kubernetes.Interface, service *v1.Service, operations []map[string]any, ) error
PatchServices applies the given patch operations on the given service
func PatchServiceExternalTrafficPolicy ¶
func PatchServiceExternalTrafficPolicy( ctx context.Context, client kubernetes.Interface, service *v1.Service, policy v1.ServiceExternalTrafficPolicy, ) error
PatchServiceExternalTrafficPolicy patches the external traffic policy of the given service
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.