File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,7 @@ trap "clean_up" EXIT
107107mkdir -p " $TMP_DIR "
108108cp -a " $SERVICE_CONTROLLER_SOURCE_PATH /config" " $TMP_DIR "
109109
110- # remove crd/common from bases to prevent inclusion of AdoptedResource CRD from being generated in the bundle directory
111- sed -i.orig ' /^bases:$/d' " $tmp_kustomize_config_dir /crd/kustomization.yaml"
110+ # remove crd/common from resources to prevent inclusion of AdoptedResource CRD from being generated in the bundle directory
112111sed -i.orig ' /- common$/d' " $tmp_kustomize_config_dir /crd/kustomization.yaml"
113112
114113# prepare bundle generate arguments
Original file line number Diff line number Diff line change 11apiVersion: kustomize.config.k8s.io/v1beta1
22kind: Kustomization
3- bases:
4- - common
53resources:
4+ - common
65{ {- range .CRDNames } }
76 - bases/{ { $.APIGroup } }_{ { . } }.yaml
87{ {- end } }
Original file line number Diff line number Diff line change 1212#commonLabels:
1313# someName: someValue
1414
15- bases :
15+ resources :
1616- ../crd
1717- ../rbac
1818- ../controller
You can’t perform that action at this time.
0 commit comments