Help us shape the future of Go! Take the 2026 Go Developer Survey

singlestep

package
v0.79.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package singlestep provides a scenario to use for Single Step Instrumentation based tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scenario

func Scenario(e config.Env, kubeProvider *kubernetes.Provider, scenarioName string, namespaces []Namespace, opts ...pulumi.ResourceOption) (*componentskube.Workload, error)

Scenario creates a list of namespaces, each containing a list of demo applications. These are dependent on the provided KubernetesAgent deployment.

Types

type App

type App struct {
	// Name is the name of the app, to be used in the deployment and service resources.
	Name string
	// Image is the container image for the app.
	Image string
	// Version is the version tag for the app.
	Version string
	// Port is the HTTP port the app will listen on.
	Port int
	// PodLabels are the Kubernetes labels to apply to the pod spec.
	PodLabels map[string]string
	// PodAnnotations are the Kubernetes annotations to apply to the pod spec.
	PodAnnotations map[string]string
	// PodSecurityContext overrides the pod security context for this app.
	PodSecurityContext *corev1.PodSecurityContextArgs
	// ContainerSecurityContext overrides the main container security context for this app.
	ContainerSecurityContext *corev1.SecurityContextArgs
}

App is a demo application that should be deployed as part of a scenario.

type Namespace

type Namespace struct {
	// Name is the name of the namespace to create.
	Name string
	// Labels are the Kubernetes labels to apply to the namespace.
	Labels map[string]string
	// Annotations are the Kubernetes annotations to apply to the namespace.
	Annotations map[string]string
	// Apps are a list of apps to create inside the namespace.
	Apps []App
}

Namespace is a namespace which should be created as part of a scenario. Within the namespace, a list of apps can optionally be defined.

Jump to

Keyboard shortcuts

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