utils

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package utils container testing helper to deploy a fake app and a fake hpa

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

type NewFakeAppDeploymentOptions

type NewFakeAppDeploymentOptions struct {
	Image       string
	Replicas    int32
	Labels      map[string]string
	Annotations map[string]string
}

NewFakeAppDeploymentOptions options struct for NewFakeAppDeployment function

type NewFakeHPAOptions

type NewFakeHPAOptions struct {
	Labels         map[string]string
	Annotations    map[string]string
	DeploymentName string
	MinReplicas    *int32
	MaxReplicas    *int32
}

NewFakeHPAOptions options struct for NewFakeHPA function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL