MCPcopy Create free account
hub / github.com/apache/camel-k / ScaleOperator

Function ScaleOperator

e2e/support/test_support.go:1822–1838  ·  view source on GitHub ↗
(t *testing.T, ctx context.Context, ns string, replicas int32)

Source from the content-addressed store, hash-verified

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
1830func 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

Callers 1

TestOperatorIDFilteringFunction · 0.85

Calls 4

TestClientFunction · 0.85
OperatorTryPodForceKillFunction · 0.85
GetMethod · 0.65
UpdateMethod · 0.65

Tested by 1

TestOperatorIDFilteringFunction · 0.68