Documentation ¶
Index ¶
- func GenerateClusterRoleManifest(t *testing.T, ctx *framework.TestCtx, namespace, id, deployDir string, ...) error
- func NewFakeAppDeployment(ns, name string, options *NewFakeAppDeploymentOptions) *appsv1.Deployment
- func NewFakeHPA(ns, name string, options *NewFakeHPAOptions) *autoscalingv1.HorizontalPodAutoscaler
- func WaitForFuncOnFakeAppScaling(t *testing.T, client framework.FrameworkClient, ...) error
- func WaitForFuncOnWatermarkPodAutoscaler(t *testing.T, client framework.FrameworkClient, namespace, name string, ...) error
- type GenerateClusterRoleManifestOptions
- type NewFakeAppDeploymentOptions
- type NewFakeHPAOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateClusterRoleManifest ¶
func GenerateClusterRoleManifest(t *testing.T, ctx *framework.TestCtx, namespace, id, deployDir string, options GenerateClusterRoleManifestOptions) error
GenerateClusterRoleManifest creates a temporary manifest yaml by combining all standard namespaced resource manifests in deployDir.
func NewFakeAppDeployment ¶
func NewFakeAppDeployment(ns, name string, options *NewFakeAppDeploymentOptions) *appsv1.Deployment
NewFakeAppDeployment return new fake application deployment
func NewFakeHPA ¶
func NewFakeHPA(ns, name string, options *NewFakeHPAOptions) *autoscalingv1.HorizontalPodAutoscaler
NewFakeHPA return new fake application deployment
func WaitForFuncOnFakeAppScaling ¶
func WaitForFuncOnFakeAppScaling(t *testing.T, client framework.FrameworkClient, namespace, name, fakeAppName string, f func(dd *datadoghqv1alpha1.WatermarkPodAutoscaler, fakeApp *v1.Deployment) (bool, error), retryInterval, timeout time.Duration) error
WaitForFuncOnFakeAppScaling used to wait for autoscaling the fake up with the desired replicas
func WaitForFuncOnWatermarkPodAutoscaler ¶
func WaitForFuncOnWatermarkPodAutoscaler(t *testing.T, client framework.FrameworkClient, namespace, name string, f func(dd *datadoghqv1alpha1.WatermarkPodAutoscaler) (bool, error), retryInterval, timeout time.Duration) error
WaitForFuncOnWatermarkPodAutoscaler used to wait a valid condition on a WatermarkPodAutoscaler
Types ¶
type GenerateClusterRoleManifestOptions ¶
type GenerateClusterRoleManifestOptions struct { CleanupTimeout time.Duration CleanupRetryInterval time.Duration }
GenerateClusterRoleManifestOptions use to provide options the GenerateClusterRoleManifest method
Click to show internal directories.
Click to hide internal directories.