Documentation ¶
Index ¶
- func NewService(name string, tweaks ...ServiceTweak) *corev1.Service
- type ServiceTweak
- func TweakAddAppProtocol(appProtocol string) ServiceTweak
- func TweakAddDeletionTimestamp(time time.Time) ServiceTweak
- func TweakAddETP(etpType corev1.ServiceExternalTrafficPolicyType) ServiceTweak
- func TweakAddFinalizers(finalizers ...string) ServiceTweak
- func TweakAddLBClass(loadBalancerClass *string) ServiceTweak
- func TweakAddLBIngress(ip string) ServiceTweak
- func TweakAddPorts(protocol corev1.Protocol, sourcePort, targetPort int) ServiceTweak
- func TweakDualStack() ServiceTweak
- func TweakNamespace(ns string) ServiceTweak
- func TweakSetIPFamilies(families ...corev1.IPFamily) ServiceTweak
- func TweakSetLoadbalancerIP(ip string) ServiceTweak
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(name string, tweaks ...ServiceTweak) *corev1.Service
NewService returns a service type LB in default namespace
Types ¶
type ServiceTweak ¶
ServiceTweak is a func that could be used to modify Service object
func TweakAddAppProtocol ¶
func TweakAddAppProtocol(appProtocol string) ServiceTweak
TweakAddAppProtocol returns a func that changes the AppProtocol a service
func TweakAddDeletionTimestamp ¶
func TweakAddDeletionTimestamp(time time.Time) ServiceTweak
TweakAddDeletionTimestamp returns a func that changes the DeletionTimestamp a service
func TweakAddETP ¶
func TweakAddETP(etpType corev1.ServiceExternalTrafficPolicyType) ServiceTweak
TweakAddETP returns a func that changes the ExternalTrafficPolicyType of a service
func TweakAddFinalizers ¶
func TweakAddFinalizers(finalizers ...string) ServiceTweak
TweakAddFinalizers returns a func that changes the Finalizers a service
func TweakAddLBClass ¶
func TweakAddLBClass(loadBalancerClass *string) ServiceTweak
TweakAddLBClass returns a func that changes the loadbalancerClass a service
func TweakAddLBIngress ¶
func TweakAddLBIngress(ip string) ServiceTweak
TweakAddLBIngress returns a func that changes the Ingress of a service
func TweakAddPorts ¶
func TweakAddPorts(protocol corev1.Protocol, sourcePort, targetPort int) ServiceTweak
TweakAddPorts returns a func that changes the ServicePort of a service
func TweakDualStack ¶
func TweakDualStack() ServiceTweak
func TweakNamespace ¶
func TweakNamespace(ns string) ServiceTweak
TweakNamespace returns a func that changes the namespace of a service
func TweakSetIPFamilies ¶
func TweakSetIPFamilies(families ...corev1.IPFamily) ServiceTweak
TweakSetIPFamilies returns a func that changes the IPFamilies a service
func TweakSetLoadbalancerIP ¶
func TweakSetLoadbalancerIP(ip string) ServiceTweak
TweakSetLoadbalancerIP returns a func that changes the LoadBalancerIP a service