resourcebuilder

package
v0.0.0-...-571d2a1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFakeDependency

func BuildFakeDependency(namespace string, source string, destinations []string) *admiralApi.Dependency

func BuildFakeDeployment

func BuildFakeDeployment(name, assetAlias, appName, env, namespace string) *k8sAppsV1.Deployment

func BuildFakeHeadlessService

func BuildFakeHeadlessService(name, assetAlias, appName, namespace string) *corev1.Service

func BuildFakeRollout

func BuildFakeRollout(name, assetAlias, appName, env, namespace string) *argov1alpha1.Rollout

func BuildFakeService

func BuildFakeService(name, assetAlias, appName, namespace string) *corev1.Service

func CreateFakeDependency

func CreateFakeDependency(client clientset.Interface, namespace string, source string, destinations []string)

func CreateFakeDeployment

func CreateFakeDeployment(client kubernetes.Interface, name string, appNamePrefix, namespace string, cluster string, env string)

func CreateFakeRollout

func CreateFakeRollout(client argoclientset.Interface, name string, app string, namespace string, cluster string, env string)

func CreateFakeService

func CreateFakeService(client kubernetes.Interface, name string, appName string, namespace string)

func CreateFakeTrafficConfig

func CreateFakeTrafficConfig(client admiralclientset.Interface, assetAlias string, env string, revision string, trafficConfigNamespace string)

func CreateFakeTrafficConfigsInNNamespaceNClusters

func CreateFakeTrafficConfigsInNNamespaceNClusters(
	client admiralclientset.Interface,
	trafficConfigNamespace string,
	noOfClusters int,
	noOfNamespaces int,
	clusterPrefix string,
	namespacePrefix string,
	workloadName string,
	env string,
	revision string,
) map[string]time.Time

func CreateNFakeDependencies

func CreateNFakeDependencies(
	client clientset.Interface,
	noOfClusters int,
	noOfNamespaces int,
	namespacePrefix string,
	workloadName string,
	maxDependencyNetwork int,
)

func CreateNFakeDeployments

func CreateNFakeDeployments(client kubernetes.Interface, deploymentNamePrefix string, appNamePrefix string, namespace string, cluster string, env string, noOfDeployments int)

func CreateNFakeDeploymentsInNNamespace

func CreateNFakeDeploymentsInNNamespace(client kubernetes.Interface, deploymentNamePrefix string,
	appNamePrefix string, namespace string, cluster string, env string, noOfDeployments int, noOfNamespace int,
)

func CreateNFakeRollouts

func CreateNFakeRollouts(client argoclientset.Interface, rolloutNamePrefix string, appNamePrefix string, namespace string, cluster string, env string, noOfrollouts int)

Creates fake rollouts in N number of namespaces, one deployment per namespace.

func CreateNFakeRolloutsInNNamespace

func CreateNFakeRolloutsInNNamespace(client argoclientset.Interface, rolloutNamePrefix string,
	appNamePrefix string, namespace string, cluster string, env string, noOfrollouts int, noOfNamespace int,
)

func CreateNFakeServices

func CreateNFakeServices(client kubernetes.Interface, serviceNamePrefix string, appName string, namespace string, noOfServices int)

func CreateNFakeServicesInNNamespace

func CreateNFakeServicesInNNamespace(client kubernetes.Interface, serviceNamePrefix string, appName string, namespace string, noOfServices int, noOfNamesapces int)

func CreateNRemoteClusterSecret

func CreateNRemoteClusterSecret(client kubernetes.Interface, n int, clusterNamePrefix string, namespace string)

func CreateRemoteClusterSecret

func CreateRemoteClusterSecret(clusterName string, namespace string) *corev1.Secret

func GetFakeTrafficConfig

func GetFakeTrafficConfig(assetAlias string, env string, revision string, trafficConfigNamespace string) *admiralv1.TrafficConfig

func GetPreloadedTrafficConfig

func GetPreloadedTrafficConfig() *admiralv1.TrafficConfig

Types

This section is empty.

Jump to

Keyboard shortcuts

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