Documentation
¶
Index ¶
- func FindDataPlaneReplicaSetNewerThan(t *testing.T, ctx context.Context, cli client.Client, creationTime time.Time, ...) *appsv1.ReplicaSet
- func GetEnvValueFromByName(envs []corev1.EnvVar, name string) *corev1.EnvVarSource
- func URLForService(ctx context.Context, cluster clusters.Cluster, nsn types.NamespacedName, ...) (*url.URL, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindDataPlaneReplicaSetNewerThan ¶
func FindDataPlaneReplicaSetNewerThan( t *testing.T, ctx context.Context, cli client.Client, creationTime time.Time, namespace string, dp *operatorv1beta1.DataPlane, ) *appsv1.ReplicaSet
FindDataPlaneReplicaSetNewerThan finds a ReplicaSet created after or at the specified time. This helper logs detailed information about ReplicaSets found to help with debugging timestamp issues.
It will return nil if no ReplicaSet is found or if there's an error listing ReplicaSets. If multiple ReplicaSets are found that were created after or at the specified time, it will fail the test immediately with t.FailNow(). It succeed when exactly 1 matching ReplicaSet is found.
func GetEnvValueFromByName ¶
func GetEnvValueFromByName(envs []corev1.EnvVar, name string) *corev1.EnvVarSource
GetEnvValueFromByName returns the corresponding ValueFrom pointer of LAST item with given name. returns nil if the name not appeared.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.