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.
8
8
Install kubernetes 1.17 or later, and enable the AnyVolumeDataSource
9
9
feature gate.
10
10
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
-
26
11
Install the CRD:
27
12
28
13
` kubectl apply -f crd.yaml `
@@ -101,3 +86,20 @@ Wait for the job to complete:
101
86
Get the logs from the job to verify that it worked:
102
87
103
88
` 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:
61
61
serviceAccount : hello-account
62
62
containers :
63
63
- name : hello
64
- image : hello-populator:latest
64
+ image : k8s.gcr.io/sig-storage/ hello-populator:v0.1.0
65
65
imagePullPolicy : IfNotPresent
66
66
args :
67
67
- --mode=controller
68
- - --image-name=hello-populator:latest
68
+ - --image-name=k8s.gcr.io/sig-storage/ hello-populator:v0.1.0
69
69
---
70
70
kind : VolumePopulator
71
71
apiVersion : populator.storage.k8s.io/v1alpha1
You can’t perform that action at this time.
0 commit comments