Skip to content

Commit 30fb077

Browse files
authored
Add kustomization files for each CRD (#2061)
At the root of each CRD directory, there is a kustomization file. Replicate this into the individual directories, so that they can be referenced directly by overlays. This keeps the "default" reference of `config/base/.../crd` to be the standard CRD for compatibility with existing overlays. The kustomizeconfig.yaml file is not used, and is deleted. This is part of the feature-gated API functionality. Signed-off-by: Todd Short <tshort@redhat.com>
1 parent 475e797 commit 30fb077

File tree

7 files changed

+14
-32
lines changed

7 files changed

+14
-32
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
resources:
2+
- olm.operatorframework.io_clustercatalogs.yaml
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# This kustomization.yaml is not intended to be run by itself,
2-
# since it depends on service name and namespace that are out of this kustomize package.
3-
# It should be run by config/default
1+
# This kustomization picks the standard CRD by default
2+
# If the experimental CRD is desired, select that directory explicitly
43
resources:
5-
- standard/olm.operatorframework.io_clustercatalogs.yaml
6-
#+kubebuilder:scaffold:crdkustomizeresource
4+
- standard
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
resources:
2+
- olm.operatorframework.io_clustercatalogs.yaml
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
resources:
2+
- olm.operatorframework.io_clusterextensions.yaml
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
# This kustomization.yaml is not intended to be run by itself,
2-
# since it depends on service name and namespace that are out of this kustomize package.
3-
# It should be run by config/default
1+
# This kustomization picks the standard CRD by default
2+
# If the experimental CRD is desired, select that directory explicitly
43
resources:
5-
- standard/olm.operatorframework.io_clusterextensions.yaml
6-
7-
# the following config is for teaching kustomize how to do kustomization for CRDs.
8-
configurations:
9-
- kustomizeconfig.yaml
4+
- standard

config/base/operator-controller/crd/kustomizeconfig.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
resources:
2+
- olm.operatorframework.io_clusterextensions.yaml

0 commit comments

Comments
 (0)