servicecatalog

package
Version: v0.0.0-...-1b19c93 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppBrokerUpgradeTest

type AppBrokerUpgradeTest struct {
	ServiceCatalogInterface clientset.Interface
	K8sInterface            kubernetes.Interface
	BUInterface             bu.Interface
	AppBrokerInterface      appBroker.Interface
	AppConnectorInterface   appConnector.Interface
}

AppBrokerUpgradeTest tests the Helm Broker business logic after Kyma upgrade phase

func NewAppBrokerUpgradeTest

func NewAppBrokerUpgradeTest(scCli clientset.Interface,
	k8sCli kubernetes.Interface,
	buCli bu.Interface,
	abCli appBroker.Interface,
	acCli appConnector.Interface) *AppBrokerUpgradeTest

NewAppBrokerUpgradeTest returns new instance of the AppBrokerUpgradeTest

func (*AppBrokerUpgradeTest) CreateResources

func (ut *AppBrokerUpgradeTest) CreateResources(stop <-chan struct{}, log logrus.FieldLogger, namespace string) error

CreateResources creates resources needed for e2e upgrade test

func (*AppBrokerUpgradeTest) TestResources

func (ut *AppBrokerUpgradeTest) TestResources(stop <-chan struct{}, log logrus.FieldLogger, namespace string) error

TestResources tests resources after upgrade

type Application

type Application struct {
	Status appOpr.ApplicationStatus
}

type Deployment

type Deployment struct {
	Status     map[string]int32             `json:"status"`
	Conditions []appsV1.DeploymentCondition `json:"conditions"`
}

type HelmBrokerUpgradeConflictTest

type HelmBrokerUpgradeConflictTest struct {
	ServiceCatalogInterface clientset.Interface
	K8sInterface            kubernetes.Interface
	BUInterface             bu.Interface
	// contains filtered or unexported fields
}

HelmBrokerUpgradeConflictTest tests the Helm Broker business logic after Kyma upgrade phase

func NewHelmBrokerConflictTest

func NewHelmBrokerConflictTest(aInjector *injector.Addons, k8sCli kubernetes.Interface, scCli clientset.Interface, buCli bu.Interface) *HelmBrokerUpgradeConflictTest

NewHelmBrokerTest returns new instance of the HelmBrokerUpgradeConflictTest

func (*HelmBrokerUpgradeConflictTest) CreateResources

func (ut *HelmBrokerUpgradeConflictTest) CreateResources(stop <-chan struct{}, log logrus.FieldLogger, namespace string) error

CreateResources creates resources needed for e2e upgrade test

func (*HelmBrokerUpgradeConflictTest) TestResources

func (ut *HelmBrokerUpgradeConflictTest) TestResources(stop <-chan struct{}, log logrus.FieldLogger, namespace string) error

TestResources tests resources after upgrade

type HelmBrokerUpgradeTest

type HelmBrokerUpgradeTest struct {
	ServiceCatalogInterface clientset.Interface
	K8sInterface            kubernetes.Interface
	BUInterface             bu.Interface
	// contains filtered or unexported fields
}

HelmBrokerUpgradeTest tests the Helm Broker business logic after Kyma upgrade phase

func NewHelmBrokerTest

func NewHelmBrokerTest(aInjector *injector.Addons, k8sCli kubernetes.Interface, scCli clientset.Interface, buCli bu.Interface) *HelmBrokerUpgradeTest

NewHelmBrokerTest returns new instance of the HelmBrokerUpgradeTest

func (*HelmBrokerUpgradeTest) CreateResources

func (ut *HelmBrokerUpgradeTest) CreateResources(stop <-chan struct{}, log logrus.FieldLogger, namespace string) error

CreateResources creates resources needed for e2e upgrade test

func (*HelmBrokerUpgradeTest) TestResources

func (ut *HelmBrokerUpgradeTest) TestResources(stop <-chan struct{}, log logrus.FieldLogger, namespace string) error

TestResources tests resources after upgrade

type Log

type Log struct {
	Message string
}

type Pod

type Pod struct {
	ContainersStatus map[string]string
	Conditions       []coreV1.PodCondition
}

type PodLog

type PodLog struct {
	Level string
	Log   Log
}

type Report

type Report struct {
	Namespace string

	Details  map[string]string   `json:"details"`
	Warnings map[string]string   `json:"warnings"`
	Logs     map[string][]string `json:"logs"`

	Deployments map[string]Deployment `json:"deployments"`
	Pods        map[string]Pod        `json:"pods"`
	Secrets     map[string]Secret     `json:"secrets"`

	ClusterServiceBrokers map[string]ServiceBroker       `json:"cluster_service_brokers"`
	ServiceBrokers        map[string]ServiceBroker       `json:"service_brokers"`
	ClusterServiceClasses map[string]ServiceClass        `json:"cluster_service_classes"`
	ServiceClasses        map[string]ServiceClass        `json:"service_classes"`
	ServiceInstances      map[string]ServiceInstance     `json:"service_instances"`
	ServiceBindings       map[string]ServiceBinding      `json:"service_bindings"`
	ServiceBindingUsages  map[string]ServiceBindingUsage `json:"service_binding_usages"`

	Applications map[string]Application `json:"applications"`
	// contains filtered or unexported fields
}

func NewReport

func NewReport(namespace string, log logrus.FieldLogger) *Report

func (*Report) AddApplicationMappings

func (r *Report) AddApplicationMappings(applicationMappings *appBrk.ApplicationMappingList, err error)

func (*Report) AddApplications

func (r *Report) AddApplications(applications *appOpr.ApplicationList, err error)

func (*Report) AddClusterServiceBrokers

func (r *Report) AddClusterServiceBrokers(clusterServiceBrokers *sc.ClusterServiceBrokerList, err error)

func (*Report) AddClusterServiceClasses

func (r *Report) AddClusterServiceClasses(clusterServiceClasses *sc.ClusterServiceClassList, err error)

func (*Report) AddDeployments

func (r *Report) AddDeployments(deployments *appsV1.DeploymentList, err error)

func (*Report) AddEventActivations

func (r *Report) AddEventActivations(eventActivations *appBrk.EventActivationList, err error)

func (*Report) AddLogs

func (r *Report) AddLogs(name string, logs []string, grepWords []string, err error)

func (*Report) AddPods

func (r *Report) AddPods(pods *coreV1.PodList, err error)

func (*Report) AddSecrets

func (r *Report) AddSecrets(secrets *coreV1.SecretList, err error)

func (*Report) AddServiceBindingUsages

func (r *Report) AddServiceBindingUsages(serviceBindingUsages *sbu.ServiceBindingUsageList, err error)

func (*Report) AddServiceBindings

func (r *Report) AddServiceBindings(serviceBindings *sc.ServiceBindingList, err error)

func (*Report) AddServiceBrokers

func (r *Report) AddServiceBrokers(serviceBrokers *sc.ServiceBrokerList, err error)

func (*Report) AddServiceClasses

func (r *Report) AddServiceClasses(serviceClasses *sc.ServiceClassList, err error)

func (*Report) AddServiceInstances

func (r *Report) AddServiceInstances(serviceInstances *sc.ServiceInstanceList, err error)

func (*Report) Print

func (r *Report) Print()

type Secret

type Secret struct {
	Keys map[string]string
}

type ServiceBinding

type ServiceBinding struct {
	LastOperation              string `json:"last_operation,omitempty"`
	OrphanMitigationInProgress string
	Conditions                 []sc.ServiceBindingCondition
}

type ServiceBindingUsage

type ServiceBindingUsage struct {
	Conditions []sbu.ServiceBindingUsageCondition
}

type ServiceBroker

type ServiceBroker struct {
	Conditions []sc.ServiceBrokerCondition
}

type ServiceClass

type ServiceClass struct {
	ClassName string
	Owners    []string `json:"owners,omitempty"`
}

type ServiceInstance

type ServiceInstance struct {
	LastOperation              string `json:"last_operation,omitempty"`
	ProvisionStatus            string
	DeprovisionStatus          string
	OrphanMitigationInProgress string
	Conditions                 []sc.ServiceInstanceCondition
}

Jump to

Keyboard shortcuts

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