Documentation ¶
Index ¶
- func ApplyObject(client client.Client, object runtime.Object) error
- func BuildImage(name, tag, fullImageIfNotEmpty string) string
- func FindPort(podName, component string, containers []corev1.Container) int32
- func GetNodeIPs(cli client.Client, namespace string, labels map[string]string) ([]string, error)
- func GetServiceByMeta(cli client.Client, svc *corev1.Service) (*corev1.Service, error)
- func PDAddress(tc *v1alpha1.TidbCluster) string
- func RenderTemplateFunc(tpl *template.Template, model interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyObject ¶
ApplyObject applies k8s object
func BuildImage ¶
BuildImage builds a image URL: ${fixture.Context.HubAddress}/${fixture.Context.DockerRepository}/$name:$tag or returns the fullImageIfNotEmpty if it's not empty
func GetNodeIPs ¶
GetNodeIPs gets the IPs (or addresses) for nodes.
func GetServiceByMeta ¶
GetServiceByMeta gets the service by its meta.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.