Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Files = map[string]string{
"helloworld-deploy.yaml": `apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: helloworld
spec:
minReadySeconds: 1
replicas: 5
template:
metadata:
labels:
name: helloworld
spec:
containers:
- name: helloworld
image: quay.io/weaveworks/helloworld:master-a000001
args:
- -msg=Ahoy
ports:
- containerPort: 80
- name: sidecar
image: quay.io/weaveworks/sidecar:master-a000002
args:
- -addr=:8080
ports:
- containerPort: 8080
`,
"helloworld-svc.yaml": `apiVersion: v1
kind: Service
metadata:
name: helloworld
spec:
ports:
- port: 80
selector:
name: helloworld
`,
"locked-service-deploy.yaml": `apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: locked-service
spec:
minReadySeconds: 1
replicas: 5
template:
metadata:
labels:
name: locked-service
spec:
containers:
- name: locked-service
image: quay.io/weaveworks/locked-service:1
args:
- -msg=Ahoy
ports:
- containerPort: 80
`,
"locked-service-svc.yaml": `apiVersion: v1
kind: Service
metadata:
name: locked-service
spec:
ports:
- port: 80
selector:
name: locked-service
`,
"test-service-deploy.yaml": `apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: test-service
spec:
minReadySeconds: 1
replicas: 5
template:
metadata:
labels:
name: test-service
spec:
containers:
- name: test-service
image: quay.io/weaveworks/test-service:1
args:
- -msg=Ahoy
ports:
- containerPort: 80
`,
"test-service-svc.yaml": `apiVersion: v1
kind: Service
metadata:
name: test-service
spec:
ports:
- port: 80
selector:
name: test-service
`,
}
Functions ¶
func ServiceMap ¶
Given a base path, construct the map representing the services given in the test data.
func WriteTestFiles ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.