Documentation ¶
Index ¶
- func AddAnnotation(t *testing.T, testRunner base.ClusterTestRunner)
- func AddPorts(t *testing.T, testRunner base.ClusterTestRunner)
- func ChangeAddress(t *testing.T, testRunner base.ClusterTestRunner)
- func DebugAnnotatedResources(t *testing.T, testRunner base.ClusterTestRunner)
- func DeployResources(testRunner base.ClusterTestRunner) error
- func RemoveAnnotation(t *testing.T, testRunner base.ClusterTestRunner)
- func RemovePorts(t *testing.T, testRunner base.ClusterTestRunner)
- func RevertAddress(t *testing.T, testRunner base.ClusterTestRunner)
- func SwitchProtocols(t *testing.T, testRunner base.ClusterTestRunner)
- func UndeployResources(testRunner base.ClusterTestRunner) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAnnotation ¶
func AddAnnotation(t *testing.T, testRunner base.ClusterTestRunner)
AddAnnotation adds the default annotations to the nginx deployment as well as for the two services (the one without target and the other that uses a target address). For more info, see: DeployResources
func AddPorts ¶
func AddPorts(t *testing.T, testRunner base.ClusterTestRunner)
AddPorts adds extra ports to already annotated resources
func ChangeAddress ¶
func ChangeAddress(t *testing.T, testRunner base.ClusterTestRunner)
ChangeAddress target address to use not owned service
func DebugAnnotatedResources ¶
func DebugAnnotatedResources(t *testing.T, testRunner base.ClusterTestRunner)
DebugAnnotatedResources prints current status for the exposed resources
func DeployResources ¶
func DeployResources(testRunner base.ClusterTestRunner) error
DeployResources provides common setup for kicking off all annotated resource tests. It deploys a static set of resources: - Deployments - Services.
And it also includes static annotations to the deployed resources.
The default resources and annotations (if true) that will be added to both cluster1 and cluster2 are: deployment/nginx ## cluster1
annotations: skupper.io/proxy: tcp skupper.io/address: nginx-1-dep-web skupper.io/port: 8080:8080,9090:8080
statefulset/nginx ## cluster1
annotations: skupper.io/proxy: tcp skupper.io/address: nginx-1-ss-web
daemonset/nginx ## cluster1
annotations: skupper.io/proxy: tcp skupper.io/address: nginx-1-ds-web
service/nginx-1-svc-exp-notarget ## cluster1
annotations: skupper.io/proxy: tcp
service/nginx-1-svc-target ## cluster1
annotations: skupper.io/proxy: http skupper.io/address: nginx-1-svc-exp-target
deployment/nginx ## cluster2
annotations: skupper.io/proxy: tcp skupper.io/address: nginx-2-dep-web skupper.io/port: 8080:8080,9090:8080
statefulset/nginx ## cluster2
annotations: skupper.io/proxy: tcp skupper.io/address: nginx-2-ss-web
daemonset/nginx ## cluster2
annotations: skupper.io/proxy: tcp skupper.io/address: nginx-2-ds-web
service/nginx-2-svc-exp-notarget ## cluster2
annotations: skupper.io/proxy: tcp
service/nginx-2-svc-target ## cluster2
annotations: skupper.io/proxy: http skupper.io/address: nginx-1-svc-exp-target
func RemoveAnnotation ¶
func RemoveAnnotation(t *testing.T, testRunner base.ClusterTestRunner)
RemoveAnnotation will remove annotation from the nginx deployment as well as from all services with the label "app=nginx"
func RemovePorts ¶
func RemovePorts(t *testing.T, testRunner base.ClusterTestRunner)
RemovePorts remove the extra ports from already annotated resources
func RevertAddress ¶
func RevertAddress(t *testing.T, testRunner base.ClusterTestRunner)
RevertAddress target address to use owned service
func SwitchProtocols ¶
func SwitchProtocols(t *testing.T, testRunner base.ClusterTestRunner)
SwitchProtocols switches the annotated resources protocols from http to tcp and vice versa
func UndeployResources ¶
func UndeployResources(testRunner base.ClusterTestRunner) error
Types ¶
This section is empty.