File tree Expand file tree Collapse file tree 4 files changed +11
-13
lines changed Expand file tree Collapse file tree 4 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Create a CR:
20
20
21
21
```
22
22
kubectl create -f - << EOF
23
- apiVersion: hello.k8s.io /v1alpha1
23
+ apiVersion: hello.example.com /v1alpha1
24
24
kind: Hello
25
25
metadata:
26
26
name: hello1
44
44
resources:
45
45
requests:
46
46
storage: 10Mi
47
- dataSource :
48
- apiGroup: hello.k8s.io
47
+ dataSourceRef :
48
+ apiGroup: hello.example.com
49
49
kind: Hello
50
50
name: hello1
51
51
EOF
Original file line number Diff line number Diff line change 1
1
apiVersion : apiextensions.k8s.io/v1
2
2
kind : CustomResourceDefinition
3
3
metadata :
4
- name : hellos.hello.k8s.io
5
- annotations :
6
- api-approved.kubernetes.io : unapproved
4
+ name : hellos.hello.example.com
7
5
spec :
8
- group : hello.k8s.io
6
+ group : hello.example.com
9
7
names :
10
8
kind : Hello
11
9
listKind : HelloList
Original file line number Diff line number Diff line change 27
27
resources : [storageclasses]
28
28
verbs : [get, list, watch]
29
29
30
- - apiGroups : [hello.k8s.io ]
30
+ - apiGroups : [hello.example.com ]
31
31
resources : [hellos]
32
32
verbs : [get, list, watch]
33
33
---
@@ -61,11 +61,11 @@ spec:
61
61
serviceAccount : hello-account
62
62
containers :
63
63
- name : hello
64
- image : k8s.gcr.io/sig-storage/hello-populator:v0.1 .0
64
+ image : k8s.gcr.io/sig-storage/hello-populator:v1.0 .0
65
65
imagePullPolicy : IfNotPresent
66
66
args :
67
67
- --mode=controller
68
- - --image-name=k8s.gcr.io/sig-storage/hello-populator:v0.1 .0
68
+ - --image-name=k8s.gcr.io/sig-storage/hello-populator:v1.0 .0
69
69
- --http-endpoint=:8080
70
70
ports :
71
71
- containerPort : 8080
@@ -77,5 +77,5 @@ apiVersion: populator.storage.k8s.io/v1beta1
77
77
metadata :
78
78
name : hello-populator
79
79
sourceKind :
80
- group : hello.k8s.io
80
+ group : hello.example.com
81
81
kind : Hello
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ import (
32
32
)
33
33
34
34
const (
35
- prefix = "hello.k8s.io "
35
+ prefix = "hello.example.com "
36
36
mountPath = "/mnt"
37
37
devicePath = "/dev/block"
38
38
)
@@ -77,7 +77,7 @@ func main() {
77
77
switch mode {
78
78
case "controller" :
79
79
const (
80
- groupName = "hello.k8s.io "
80
+ groupName = "hello.example.com "
81
81
apiVersion = "v1alpha1"
82
82
kind = "Hello"
83
83
resource = "hellos"
You can’t perform that action at this time.
0 commit comments