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
}
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.
Click to show internal directories.
Click to hide internal directories.