Documentation

Index

Constants

const (
	// BookInfoConfig uses "bookinfo.yaml"
	BookInfoConfig    bookInfoConfig = "bookinfo.yaml"
	BookinfoRatingsv2 bookInfoConfig = "bookinfo-ratings-v2.yaml"
	BookinfoDb        bookInfoConfig = "bookinfo-db.yaml"
)

Variables

This section is empty.

Functions

func NewKubeComponent

func NewKubeComponent() (api.Component, error)

NewKubeComponent factory function for the component

Types

type ConfigFile

type ConfigFile string

ConfigFile represents config yaml files for different bookinfo scenarios.

const (
	// NetworkingBookinfoGateway uses "networking/bookinfo-gateway.yaml"
	NetworkingBookinfoGateway ConfigFile = "networking/bookinfo-gateway.yaml"

	// NetworkingDestinationRuleAll uses "networking/destination-rule-all.yaml"
	NetworkingDestinationRuleAll ConfigFile = "networking/destination-rule-all.yaml"

	// NetworkingDestinationRuleAllMtls uses "networking/destination-rule-all-mtls.yaml"
	NetworkingDestinationRuleAllMtls ConfigFile = "networking/destination-rule-all-mtls.yaml"

	// NetworkingVirtualServiceAllV1 uses "networking/virtual-service-all-v1.yaml"
	NetworkingVirtualServiceAllV1 ConfigFile = "networking/virtual-service-all-v1.yaml"

	// NetworkingTcpDbRule uses "networking/virtual-service-ratings-db.yaml"
	NetworkingTCPDbRule ConfigFile = "networking/virtual-service-ratings-db.yaml"

	// MixerRuleRatingsRatelimit uses "policy/mixer-rule-ratings-ratelimit.yaml"
	MixerRuleRatingsRatelimit ConfigFile = "policy/mixer-rule-ratings-ratelimit.yaml"

	// MixerRuleRatingsDenial uses "policy/mixer-rule-ratings-denial.yaml"
	MixerRuleRatingsDenial ConfigFile = "policy/mixer-rule-ratings-denial.yaml"

	// MixerRuleIngressDenial uses "policy/mixer-rule-ingress-denial.yaml"
	MixerRuleIngressDenial ConfigFile = "policy/mixer-rule-ingress-denial.yaml"
)

func GetDestinationRuleConfigFile

func GetDestinationRuleConfigFile(t testing.TB, ctx component.Repository) ConfigFile

func (ConfigFile) LoadOrFail

func (l ConfigFile) LoadOrFail(t testing.TB) string

LoadOrFail loads a Book Info configuration file from the system and returns its contents.

Source Files