package rc
import "k8s.io/kubernetes/test/e2e/framework/rc"
Index ¶
- func ByNameContainer(name string, replicas int32, labels map[string]string, c v1.Container, gracePeriod *int64) *v1.ReplicationController
- func DeleteRCAndWaitForGC(ctx context.Context, c clientset.Interface, ns, name string) error
- func RunRC(ctx context.Context, config testutils.RCConfig) error
- func ScaleRC(ctx context.Context, clientset clientset.Interface, scalesGetter scaleclient.ScalesGetter, ns, name string, size uint, wait bool) error
Functions ¶
func ByNameContainer ¶
func ByNameContainer(name string, replicas int32, labels map[string]string, c v1.Container, gracePeriod *int64) *v1.ReplicationController
ByNameContainer returns a ReplicationController with specified name and container
func DeleteRCAndWaitForGC ¶
DeleteRCAndWaitForGC deletes only the Replication Controller and waits for GC to delete the pods.
func RunRC ¶
RunRC Launches (and verifies correctness) of a Replication Controller and will wait for all pods it spawns to become "Running".
func ScaleRC ¶
func ScaleRC(ctx context.Context, clientset clientset.Interface, scalesGetter scaleclient.ScalesGetter, ns, name string, size uint, wait bool) error
ScaleRC scales Replication Controller to be desired size.
Source Files ¶
rc_utils.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 5 hours ago –
Tools for package owners.