(t *testing.T, ctx context.Context, ns string, replicas int32)
| 1820 | return err |
| 1821 | } |
| 1822 | |
| 1823 | if replicas == 0 { |
| 1824 | // speedup scale down by killing the pod |
| 1825 | OperatorTryPodForceKill(t, ctx, ns, 10) |
| 1826 | } |
| 1827 | return nil |
| 1828 | } |
| 1829 | |
| 1830 | func ClusterDomainName(t *testing.T, ctx context.Context) (string, error) { |
| 1831 | dns := configv1.DNS{} |
| 1832 | key := ctrl.ObjectKey{ |
| 1833 | Name: "cluster", |
| 1834 | } |
| 1835 | err := TestClient(t).Get(ctx, key, &dns) |
| 1836 | if err != nil { |
| 1837 | return "", err |
| 1838 | } |
| 1839 | return dns.Spec.BaseDomain, nil |
| 1840 | } |
| 1841 |