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: greeter
image: quay.io/weaveworks/helloworld:master-a000001
args:
- -msg=Ahoy
ports:
- containerPort: 80
- name: sidecar
image: weaveworks/sidecar:master-a000001
args:
- -addr=:8080
ports:
- containerPort: 8080
`,
"locked-service-deploy.yaml": `apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
flux.weave.works/locked: "true"
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
`,
"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
`,
}
View Source
var FilesUpdated = 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: greeter
image: quay.io/weaveworks/helloworld:master-a000001
args:
- -msg=Ahoy2
ports:
- containerPort: 80
- name: sidecar
image: weaveworks/sidecar:master-a000002
args:
- -addr=:8080
ports:
- containerPort: 8080
`,
}
Functions ¶
func ServiceMap ¶
func ServiceMap(dir string) map[flux.ResourceID][]string
ServiceMap ... given a base path, construct the map representing the services given in the test data.
func WriteTestFiles ¶
WriteTestFiles ... given a directory, create files in it, based on predetermined file content
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.