servicecatalog

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

README

Service Catalog and Service Broker Tests

Overview

This folder contains the tests which check if a given service broker integrates with the Service Catalog. Each of these tests checks if the Cluster service classes contain all services exposed by the broker.

Usage

This section explains how to add a test for another broker and how to run a Service Catalog test on a local machine.

Adding a test for another broker

The test checks if the Service Catalog contains all the necessary service classes. All actions use standard APIs, such as Kubernetes and the Open Service Broker API, for all tests, and only the service broker URL changes.

Running a Service Catalog test on a local machine

Follow these steps to run a Service Catalog test on a local machine:

  1. Run Kyma.
  2. Modify the broker service, using the kubectl edit command:
  • add name: http to the port section
  • add the auth.istio.io/80: NONE annotation
  1. Create an Ingress to expose the service broker. For example:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
 annotations:
   kubernetes.io/ingress.class: istio
 generation: 1
 name: helm-broker-ing
 namespace: kyma-system
spec:
 rules:
 - host: helm-broker.kyma
   http:
     paths:
     - backend:
         serviceName: helm-broker
         servicePort: 80
       path: /.*
  tls:
   - secretName: istio-ingress-certs
  1. Update the /etc/hosts file with a given host value. For example:

127.0.0.1 helm-broker.kyma 5. Create files that look like Secrets:

/var/run/secrets/kubernetes.io/serviceaccount/ca.crt

You can copy the content of the file in any Pod. For example:

kc exec -it helm-broker-6cd7cc8697-c8wks -n kyma-system -- cat /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
  1. Create a secret local file:
  kc describe serviceaccount service-catalog-controller-manager -n kyma-system

It gives you an output which looks like this:

Name:         service-catalog-controller-manager
Namespace:    kyma-system
Labels:       <none>
Annotations:  <none>
Image pull secrets:  <none>
Mountable secrets:   service-catalog-controller-manager-token-jd98k
Tokens:              service-catalog-controller-manager-token-jd98k
Events:  <none>

Get the token value:

kc describe secret service-catalog-controller-manager-token-jd98k -n kyma-system

Rewrite the token value to the /var/run/secrets/kubernetes.io/serviceaccount/token file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvVariable

type EnvVariable struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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