File tree Expand file tree Collapse file tree 2 files changed +19
-17
lines changed
Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -8,21 +8,6 @@ This example demonstrates an extremely simple populator implementation.
88Install kubernetes 1.17 or later, and enable the AnyVolumeDataSource
99feature 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-
2611Install the CRD:
2712
2813` kubectl apply -f crd.yaml `
@@ -101,3 +86,20 @@ Wait for the job to complete:
10186Get 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.
Original file line number Diff line number Diff 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---
7070kind : VolumePopulator
7171apiVersion : populator.storage.k8s.io/v1alpha1
You can’t perform that action at this time.
0 commit comments