Skip to content

Commit 0fda655

Browse files
author
Eric Stroczynski
authored
(c-r v0.2.0) *: CR name format change (#1811)
1 parent 922f52f commit 0fda655

31 files changed

+72
-71
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ $ kubectl create -f deploy/operator.yaml
9494

9595
# Create an AppService CR
9696
# The default controller will watch for AppService objects and create a pod for each CR
97-
$ kubectl create -f deploy/crds/app_v1alpha1_appservice_cr.yaml
97+
$ kubectl create -f deploy/crds/app.example.com_v1alpha1_appservice_cr.yaml
9898

9999
# Verify that a pod is created
100100
$ kubectl get pod -l app=example-appservice
@@ -120,7 +120,7 @@ Spec:
120120
Size: 3
121121

122122
# Cleanup
123-
$ kubectl delete -f deploy/crds/app_v1alpha1_appservice_cr.yaml
123+
$ kubectl delete -f deploy/crds/app.example.com_v1alpha1_appservice_cr.yaml
124124
$ kubectl delete -f deploy/operator.yaml
125125
$ kubectl delete -f deploy/role.yaml
126126
$ kubectl delete -f deploy/role_binding.yaml

ci/tests/e2e-ansible.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ test_operator() {
6161
fi
6262

6363
# create CR
64-
kubectl create -f deploy/crds/ansible_v1alpha1_memcached_cr.yaml
64+
kubectl create -f deploy/crds/ansible.example.com_v1alpha1_memcached_cr.yaml
6565
if ! timeout 20s bash -c -- 'until kubectl get deployment -l app=memcached | grep memcached; do sleep 1; done';
6666
then
6767
echo FAIL: operator failed to create memcached Deployment
@@ -84,7 +84,7 @@ test_operator() {
8484
kubectl create configmap deleteme
8585
trap_add 'kubectl delete --ignore-not-found configmap deleteme' EXIT
8686

87-
kubectl delete -f ${OPERATORDIR}/deploy/crds/ansible_v1alpha1_memcached_cr.yaml --wait=true
87+
kubectl delete -f ${OPERATORDIR}/deploy/crds/ansible.example.com_v1alpha1_memcached_cr.yaml --wait=true
8888
# if the finalizer did not delete the configmap...
8989
if kubectl get configmap deleteme 2> /dev/null;
9090
then

ci/tests/e2e-helm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ test_operator() {
6969
fi
7070

7171
# create CR
72-
kubectl create -f deploy/crds/helm_v1alpha1_nginx_cr.yaml
73-
trap_add 'kubectl delete --ignore-not-found -f ${OPERATORDIR}/deploy/crds/helm_v1alpha1_nginx_cr.yaml' EXIT
72+
kubectl create -f deploy/crds/helm.example.com_v1alpha1_nginx_cr.yaml
73+
trap_add 'kubectl delete --ignore-not-found -f ${OPERATORDIR}/deploy/crds/helm.example.com_v1alpha1_nginx_cr.yaml' EXIT
7474
if ! timeout 1m bash -c -- 'until kubectl get nginxes.helm.example.com example-nginx -o jsonpath="{..status.deployedRelease.name}" | grep "example-nginx"; do sleep 1; done';
7575
then
7676
kubectl logs deployment/nginx-operator
@@ -113,7 +113,7 @@ test_operator() {
113113
exit 1
114114
fi
115115

116-
kubectl delete -f deploy/crds/helm_v1alpha1_nginx_cr.yaml --wait=true
116+
kubectl delete -f deploy/crds/helm.example.com_v1alpha1_nginx_cr.yaml --wait=true
117117
kubectl logs deployment/nginx-operator | grep "Uninstalled release" | grep "${release_name}"
118118
}
119119

ci/tests/scorecard-subcommand.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ set -ex
1010
# the test framework directory has all the manifests needed to run the cluster
1111
pushd test/test-framework
1212
commandoutput="$(operator-sdk scorecard \
13-
--cr-manifest deploy/crds/cache_v1alpha1_memcached_cr.yaml \
14-
--cr-manifest deploy/crds/cache_v1alpha1_memcachedrs_cr.yaml \
13+
--cr-manifest deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml \
14+
--cr-manifest deploy/crds/cache.example.com_v1alpha1_memcachedrs_cr.yaml \
1515
--init-timeout 60 \
1616
--csv-path "$CSV_PATH" \
1717
--verbose \

cmd/operator-sdk/add/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Example:
6666
├── zz_generated.deepcopy.go
6767
├── zz_generated.openapi.go
6868
$ tree deploy/crds
69-
├── deploy/crds/app_v1alpha1_appservice_cr.yaml
69+
├── deploy/crds/app.example.com_v1alpha1_appservice_cr.yaml
7070
├── deploy/crds/app.example.com_appservices_crd.yaml
7171
`,
7272
RunE: apiRun,

cmd/operator-sdk/add/crd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func newAddCRDCmd() *cobra.Command {
3636
Long: `The operator-sdk add crd command will create a Custom Resource Definition (CRD) and the Custom Resource (CR) files for the specified api-version and kind.
3737
3838
Generated CRD filename: <project-name>/deploy/crds/<full group>_<resource>_crd.yaml
39-
Generated CR filename: <project-name>/deploy/crds/<group>_<version>_<kind>_cr.yaml
39+
Generated CR filename: <project-name>/deploy/crds/<full group>_<version>_<kind>_cr.yaml
4040
4141
<project-name>/deploy path must already exist
4242
--api-version and --kind are required flags to generate the new operator application.

cmd/operator-sdk/generate/openapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Example:
4040
└── v1alpha1
4141
├── zz_generated.openapi.go
4242
$ tree deploy/crds
43-
├── deploy/crds/app_v1alpha1_appservice_cr.yaml
43+
├── deploy/crds/app.example.com_v1alpha1_appservice_cr.yaml
4444
├── deploy/crds/app.example.com_appservices_crd.yaml
4545
`,
4646
RunE: openAPIFunc,

doc/ansible/user-guide.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,18 +305,18 @@ INFO[0000] operator-sdk Version: 0.0.5+git
305305

306306
### Create a Memcached CR
307307

308-
Modify `deploy/crds/cache_v1alpha1_memcached_cr.yaml` as shown and create a `Memcached` custom resource:
308+
Modify `deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml` as shown and create a `Memcached` custom resource:
309309

310310
```sh
311-
$ cat deploy/crds/cache_v1alpha1_memcached_cr.yaml
311+
$ cat deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml
312312
apiVersion: "cache.example.com/v1alpha1"
313313
kind: "Memcached"
314314
metadata:
315315
name: "example-memcached"
316316
spec:
317317
size: 3
318318
319-
$ kubectl apply -f deploy/crds/cache_v1alpha1_memcached_cr.yaml
319+
$ kubectl apply -f deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml
320320
```
321321

322322
Ensure that the memcached-operator creates the deployment for the CR:
@@ -371,15 +371,15 @@ Change the `spec.size` field in the memcached CR from 3 to 4 and apply the
371371
change:
372372

373373
```sh
374-
$ cat deploy/crds/cache_v1alpha1_memcached_cr.yaml
374+
$ cat deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml
375375
apiVersion: "cache.example.com/v1alpha1"
376376
kind: "Memcached"
377377
metadata:
378378
name: "example-memcached"
379379
spec:
380380
size: 4
381381
382-
$ kubectl apply -f deploy/crds/cache_v1alpha1_memcached_cr.yaml
382+
$ kubectl apply -f deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml
383383
```
384384

385385
Confirm that the operator changes the deployment size:
@@ -395,7 +395,7 @@ example-memcached 4 4 4 4 5m
395395
Clean up the resources:
396396

397397
```sh
398-
$ kubectl delete -f deploy/crds/cache_v1alpha1_memcached_cr.yaml
398+
$ kubectl delete -f deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml
399399
$ kubectl delete -f deploy/operator.yaml
400400
$ kubectl delete -f deploy/role_binding.yaml
401401
$ kubectl delete -f deploy/role.yaml

doc/helm/dev/developer_guide.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ INFO[0000] Created deploy/role.yaml
3838
INFO[0000] Created deploy/role_binding.yaml
3939
INFO[0000] Created deploy/operator.yaml
4040
INFO[0000] Created deploy/crds/foo.example.com_foos_crd.yaml
41-
INFO[0000] Created deploy/crds/foo_v1alpha1_foo_cr.yaml
41+
INFO[0000] Created deploy/crds/foo.example.com_v1alpha1_foo_cr.yaml
4242
INFO[0000] Created helm-charts/foo/
4343
INFO[0000] Run git init ...
4444
Initialized empty Git repository in /home/user/go/src/github.com/operator-framework/foo-operator/.git/
@@ -302,7 +302,7 @@ INFO[0000] operator-sdk Version: v0.2.0+git
302302

303303
Now that the operator is watching resource `Foo` for events, the creation of a
304304
Custom Resource will trigger our Helm chart to be executed. Take a look at
305-
`deploy/crds/foo_v1alpha1_foo_cr.yaml`. Our chart does not have a `size` value,
305+
`deploy/crds/foo.example.com_v1alpha1_foo_cr.yaml`. Our chart does not have a `size` value,
306306
so let's remove it. Your CR file should look like the following:
307307

308308
```yaml
@@ -322,7 +322,7 @@ Create a Custom Resource instance of Foo with default var `state` set to
322322
`present`:
323323

324324
```sh
325-
$ kubectl apply -f deploy/crds/foo_v1alpha1_foo_cr.yaml
325+
$ kubectl apply -f deploy/crds/foo.example.com_v1alpha1_foo_cr.yaml
326326
foo.foo.example.com/example-foo created
327327
```
328328

@@ -353,7 +353,7 @@ replicaset.apps/example-foo-4f8ay4vfr99ulx905hax3j6x1-9dfd67fc6 1 1
353353
354354
```
355355

356-
Modify `deploy/crds/foo_v1alpha1_foo_cr.yaml` to set `replicaCount` to `2`:
356+
Modify `deploy/crds/foo.example.com_v1alpha1_foo_cr.yaml` to set `replicaCount` to `2`:
357357

358358
```yaml
359359
apiVersion: "foo.example.com/v1alpha1"
@@ -368,7 +368,7 @@ spec:
368368
Apply the changes to Kubernetes and confirm that the deployment has 2 replicas:
369369

370370
```sh
371-
$ kubectl apply -f deploy/crds/foo_v1alpha1_foo_cr.yaml
371+
$ kubectl apply -f deploy/crds/foo.example.com_v1alpha1_foo_cr.yaml
372372
foo.foo.example.com/example-foo configured
373373
374374
$ kubectl get deployment -l app.kubernetes.io/instance=${RELEASE_NAME}

doc/helm/user-guide.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ value called `replicaCount` and it is set to `1` by default. If we want to have
118118
2 nginx instances in our deployment, we would need to make sure our CR spec
119119
contained `replicaCount: 2`.
120120

121-
Update `deploy/crds/helm_v1alpha1_nginx_cr.yaml` to look like the following:
121+
Update `deploy/crds/helm.example.com_v1alpha1_nginx_cr.yaml` to look like the following:
122122

123123
```yaml
124124
apiVersion: helm.example.com/v1alpha1
@@ -130,7 +130,7 @@ spec:
130130
```
131131

132132
Similarly, we see that the default service port is set to `80`, but we would
133-
like to use `8080`, so we'll again update `deploy/crds/helm_v1alpha1_nginx_cr.yaml`
133+
like to use `8080`, so we'll again update `deploy/crds/helm.example.com_v1alpha1_nginx_cr.yaml`
134134
by adding the service port override:
135135

136136
```yaml
@@ -247,7 +247,7 @@ INFO[0000] operator-sdk Version: v0.2.0+git
247247
Apply the nginx CR that we modified earlier:
248248

249249
```sh
250-
kubectl apply -f deploy/crds/helm_v1alpha1_nginx_cr.yaml
250+
kubectl apply -f deploy/crds/helm.example.com_v1alpha1_nginx_cr.yaml
251251
```
252252

253253
Ensure that the nginx-operator creates the deployment for the CR:
@@ -281,15 +281,15 @@ Change the `spec.replicaCount` field from 2 to 3, remove the `spec.service`
281281
field, and apply the change:
282282

283283
```sh
284-
$ cat deploy/crds/helm_v1alpha1_nginx_cr.yaml
284+
$ cat deploy/crds/helm.example.com_v1alpha1_nginx_cr.yaml
285285
apiVersion: "helm.example.com/v1alpha1"
286286
kind: "Nginx"
287287
metadata:
288288
name: "example-nginx"
289289
spec:
290290
replicaCount: 3
291291
292-
$ kubectl apply -f deploy/crds/helm_v1alpha1_nginx_cr.yaml
292+
$ kubectl apply -f deploy/crds/helm.example.com_v1alpha1_nginx_cr.yaml
293293
```
294294

295295
Confirm that the operator changes the deployment size:
@@ -313,7 +313,7 @@ example-nginx-b9phnoz9spckcrua7ihrbkrt1 ClusterIP 10.96.26.3 <none>
313313
Clean up the resources:
314314

315315
```sh
316-
kubectl delete -f deploy/crds/helm_v1alpha1_nginx_cr.yaml
316+
kubectl delete -f deploy/crds/helm.example.com_v1alpha1_nginx_cr.yaml
317317
kubectl delete -f deploy/operator.yaml
318318
kubectl delete -f deploy/role_binding.yaml
319319
kubectl delete -f deploy/role.yaml

doc/migration/v0.1.0-migration-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ For any updates made to the following manifests in the old project, copy over th
284284
- `tmp/build/Dockerfile` to `build/Dockerfile`
285285
- There is no tmp directory in the new project layout
286286
- RBAC rules updates from `deploy/rbac.yaml` to `deploy/role.yaml` and `deploy/role_binding.yaml`
287-
- `deploy/cr.yaml` to `deploy/crds/<group>_<version>_<kind>_cr.yaml`
287+
- `deploy/cr.yaml` to `deploy/crds/<full group>_<version>_<kind>_cr.yaml`
288288
- `deploy/crd.yaml` to `deploy/crds/<group>_<version>_<kind>_crd.yaml`
289289
290290
### Copy user defined dependencies

doc/proposals/helm-operator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The resulting structure will be:
8888
| |
8989
| |-- crds
9090
| | <full group>_<resource>_crd.yaml
91-
| | <gvk>_cr.yaml
91+
| | <full group>_<version>_<kind>_cr.yaml
9292
```
9393

9494
The SDK CLI will use the presence of the `helm-charts` directory to detect a `helm` type project.

doc/proposals/improved-scorecard-config.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ scorecard:
7070
- name: Basic Tests
7171
basic:
7272
cr-manifest:
73-
- "deploy/crds/cache_v1alpha1_memcached_cr.yaml"
74-
- "deploy/crds/cache_v1alpha1_memcachedrs_cr.yaml"
73+
- "deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml"
74+
- "deploy/crds/cache.example.com_v1alpha1_memcachedrs_cr.yaml"
7575
init-timeout: 60
7676
csv-path: "deploy/olm-catalog/memcached-operator/0.0.3/memcached-operator.v0.0.3.clusterserviceversion.yaml"
7777
proxy-image: "scorecard-proxy"
7878
proxy-pull-policy: "Never"
7979
- name: OLM Tests
8080
olm:
8181
cr-manifest:
82-
- "deploy/crds/cache_v1alpha1_memcached_cr.yaml"
83-
- "deploy/crds/cache_v1alpha1_memcachedrs_cr.yaml"
82+
- "deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml"
83+
- "deploy/crds/cache.example.com_v1alpha1_memcachedrs_cr.yaml"
8484
init-timeout: 60
8585
csv-path: "deploy/olm-catalog/memcached-operator/0.0.3/memcached-operator.v0.0.3.clusterserviceversion.yaml"
8686
proxy-image: "scorecard-proxy"

doc/sdk-cli-reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ INFO[0000] Created pkg/apis/app/v1alpha1/appservice_types.go
344344
INFO[0000] Created pkg/apis/addtoscheme_app_v1alpha1.go
345345
INFO[0000] Created pkg/apis/app/v1alpha1/register.go
346346
INFO[0000] Created pkg/apis/app/v1alpha1/doc.go
347-
INFO[0000] Created deploy/crds/app_v1alpha1_appservice_cr.yaml
347+
INFO[0000] Created deploy/crds/app.example.com_v1alpha1_appservice_cr.yaml
348348
INFO[0000] Created deploy/crds/app.example.com_appservices_crd.yaml
349349
INFO[0001] Running deepcopy code-generation for Custom Resource group versions: [app:[v1alpha1], ]
350350
INFO[0002] Code-generation complete.
@@ -387,7 +387,7 @@ Generates the CRD and the CR files for the specified api-version and kind.
387387
$ operator-sdk add crd --api-version app.example.com/v1alpha1 --kind AppService
388388
Generating custom resource definition (CRD) files
389389
Created deploy/crds/app.example.com_appservices_crd.yaml
390-
Created deploy/crds/app_v1alpha1_appservice_cr.yaml
390+
Created deploy/crds/app.example.com_v1alpha1_appservice_cr.yaml
391391
```
392392

393393
## run
@@ -452,7 +452,7 @@ Run scorecard tests on an operator
452452
### Example
453453

454454
```console
455-
$ operator-sdk scorecard --cr-manifest deploy/crds/cache_v1alpha1_memcached_cr.yaml --csv-path deploy/olm-catalog/memcached-operator/0.0.2/memcached-operator.v0.0.2.clusterserviceversion.yaml
455+
$ operator-sdk scorecard --cr-manifest deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml --csv-path deploy/olm-catalog/memcached-operator/0.0.2/memcached-operator.v0.0.2.clusterserviceversion.yaml
456456
Basic Operator:
457457
Spec Block Exists: 1/1 points
458458
Status Block Exist: 1/1 points

doc/test-framework/scorecard.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,20 @@ To run the tests, simply run the `scorecard` subcommand from your project root w
3737
use. For example:
3838

3939
```console
40-
$ operator-sdk scorecard --cr-manifest deploy/crds/app_operator_cr.yaml --csv-path deploy/app_operator-0.0.2.yaml
40+
$ operator-sdk scorecard --cr-manifest deploy/crds/app.example.com_operator_cr.yaml --csv-path deploy/app_operator-0.0.2.yaml
4141
```
4242

4343
## Config File
4444

4545
The scorecard supports the use of a config file instead of or in addition to flags for configuration. By default, the scorecard will look
4646
for a file called `.osdk-scorecard` with either a `.yaml`, `.json`, or `.toml` file extension. You can also
4747
specify a different config file with the `--config` flag. The configuration options in the config file match the flags.
48-
For instance, for the flags `--cr-manifest "deploy/crds/cache_v1alpha1_memcached_cr.yaml" --cr-manifest "deploy/crds/cache_v1alpha1_memcached2_cr.yaml" --init-timeout 60 --csv-path "deploy/olm-catalog/memcached-operator/0.0.2/memcached-operator.v0.0.2.clusterserviceversion.yaml"`, the corresponding yaml config file would contain:
48+
For instance, for the flags `--cr-manifest "deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml" --cr-manifest "deploy/crds/cache.example.com_v1alpha1_memcached2_cr.yaml" --init-timeout 60 --csv-path "deploy/olm-catalog/memcached-operator/0.0.2/memcached-operator.v0.0.2.clusterserviceversion.yaml"`, the corresponding yaml config file would contain:
4949

5050
```yaml
5151
cr-manifest:
52-
- "deploy/crds/cache_v1alpha1_memcached_cr.yaml"
53-
- "deploy/crds/cache_v1alpha1_memcached2_cr.yaml"
52+
- "deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml"
53+
- "deploy/crds/cache.example.com_v1alpha1_memcached2_cr.yaml"
5454
init-timeout: 60
5555
csv-path: "deploy/olm-catalog/memcached-operator/0.0.2/memcached-operator.v0.0.2.clusterserviceversion.yaml"
5656
```

doc/user-guide.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,18 +291,18 @@ You can use a specific kubeconfig via the flag `--kubeconfig=<path/to/kubeconfig
291291

292292
## Create a Memcached CR
293293

294-
Create the example `Memcached` CR that was generated at `deploy/crds/cache_v1alpha1_memcached_cr.yaml`:
294+
Create the example `Memcached` CR that was generated at `deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml`:
295295

296296
```sh
297-
$ cat deploy/crds/cache_v1alpha1_memcached_cr.yaml
297+
$ cat deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml
298298
apiVersion: "cache.example.com/v1alpha1"
299299
kind: "Memcached"
300300
metadata:
301301
name: "example-memcached"
302302
spec:
303303
size: 3
304304

305-
$ kubectl apply -f deploy/crds/cache_v1alpha1_memcached_cr.yaml
305+
$ kubectl apply -f deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml
306306
```
307307

308308
Ensure that the memcached-operator creates the deployment for the CR:
@@ -352,15 +352,15 @@ status:
352352
Change the `spec.size` field in the memcached CR from 3 to 4 and apply the change:
353353

354354
```sh
355-
$ cat deploy/crds/cache_v1alpha1_memcached_cr.yaml
355+
$ cat deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml
356356
apiVersion: "cache.example.com/v1alpha1"
357357
kind: "Memcached"
358358
metadata:
359359
name: "example-memcached"
360360
spec:
361361
size: 4
362362

363-
$ kubectl apply -f deploy/crds/cache_v1alpha1_memcached_cr.yaml
363+
$ kubectl apply -f deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml
364364
```
365365

366366
Confirm that the operator changes the deployment size:
@@ -376,7 +376,7 @@ example-memcached 4 4 4 4 5m
376376
Clean up the resources:
377377

378378
```sh
379-
$ kubectl delete -f deploy/crds/cache_v1alpha1_memcached_cr.yaml
379+
$ kubectl delete -f deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml
380380
$ kubectl delete -f deploy/operator.yaml
381381
$ kubectl delete -f deploy/role_binding.yaml
382382
$ kubectl delete -f deploy/role.yaml

doc/user/olm-catalog/generating-a-csv.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Operator SDK projects have an expected [project layout][doc-project-layout]. In
1212

1313
* Roles: `role.yaml`
1414
* Deployments: `operator.yaml`
15-
* Custom Resources (CR's): `crds/<group>_<version>_<kind>_cr.yaml`
15+
* Custom Resources (CR's): `crds/<full group>_<version>_<kind>_cr.yaml`
1616
* Custom Resource Definitions (CRD's): `crds/<full group>_<resource>_crd.yaml`.
1717

1818
`gen-csv` reads these files and adds their data to a CSV in an alternate form.

0 commit comments

Comments
 (0)