Skip to content

Commit 5347d79

Browse files
authored
Merge pull request #19 from mkimuram/issue/15
hello-populator: update deploy.yaml to use published v0.1.0 image
2 parents 6a7310a + c9c054b commit 5347d79

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

example/hello-populator/README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,6 @@ This example demonstrates an extremely simple populator implementation.
88
Install kubernetes 1.17 or later, and enable the AnyVolumeDataSource
99
feature gate.
1010

11-
Build the image from code:
12-
13-
`make all`
14-
15-
Make sure you have a repo you can push to, and set the variable
16-
17-
`YOUR_REPO=...`
18-
19-
Push the image to your repo:
20-
21-
```
22-
docker tag hello-populator:latest ${YOUR_REPO}/hello-populator:latest
23-
docker push ${YOUR_REPO}/hello-populator:latest
24-
```
25-
2611
Install the CRD:
2712

2813
`kubectl apply -f crd.yaml`
@@ -101,3 +86,20 @@ Wait for the job to complete:
10186
Get the logs from the job to verify that it worked:
10287

10388
`kubectl logs job/job1`
89+
90+
### To build the image from code:
91+
92+
`make all`
93+
94+
Make sure you have a repo you can push to, and set the variable
95+
96+
`YOUR_REPO=...`
97+
98+
Push the image to your repo:
99+
100+
```
101+
docker tag hello-populator:latest ${YOUR_REPO}/hello-populator:latest
102+
docker push ${YOUR_REPO}/hello-populator:latest
103+
```
104+
105+
To use the image, update deploy.yaml before installing the controller.

example/hello-populator/deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ spec:
6161
serviceAccount: hello-account
6262
containers:
6363
- name: hello
64-
image: hello-populator:latest
64+
image: k8s.gcr.io/sig-storage/hello-populator:v0.1.0
6565
imagePullPolicy: IfNotPresent
6666
args:
6767
- --mode=controller
68-
- --image-name=hello-populator:latest
68+
- --image-name=k8s.gcr.io/sig-storage/hello-populator:v0.1.0
6969
---
7070
kind: VolumePopulator
7171
apiVersion: populator.storage.k8s.io/v1alpha1

0 commit comments

Comments
 (0)