Skip to content

Commit f4b7091

Browse files
committed
WIP: pulling in CRDs as files
Signed-off-by: Todd Short <[email protected]>
1 parent 199039a commit f4b7091

7 files changed

+13
-2072
lines changed

Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,16 @@ manifests: $(CONTROLLER_GEN) $(KUSTOMIZE) #EXHELP Generate WebhookConfiguration,
166166
$(KUSTOMIZE) build $(KUSTOMIZE_EXPERIMENTAL_OVERLAY) > $(EXPERIMENTAL_MANIFEST)
167167
$(KUSTOMIZE) build $(KUSTOMIZE_EXPERIMENTAL_E2E_OVERLAY) > $(EXPERIMENTAL_E2E_MANIFEST)
168168

169+
BASE_COPY := helm/olmv1/base
169170
helm-manifests: #EXHELP WIP: Make manifests via helm
170-
helm template olmv1 helm/olmv1 --values helm/standard.yaml > $(STANDARD_MANIFEST)
171-
helm template olmv1 helm/olmv1 --values helm/standard-e2e.yaml > $(STANDARD_E2E_MANIFEST)
172-
helm template olmv1 helm/olmv1 --values helm/experimental.yaml > $(EXPERIMENTAL_MANIFEST)
173-
helm template olmv1 helm/olmv1 --values helm/experimental-e2e.yaml > $(EXPERIMENTAL_E2E_MANIFEST)
171+
rm -rf $(BASE_COPY)
172+
mkdir -p $(BASE_COPY)
173+
cp -r config/base/* $(BASE_COPY)
174+
helm template olmv1 helm/olmv1 --values helm/standard.yaml > $(STANDARD_MANIFEST:.yaml=-helm.yaml)
175+
helm template olmv1 helm/olmv1 --values helm/standard-e2e.yaml > $(STANDARD_E2E_MANIFEST:.yaml=-helm.yaml)
176+
helm template olmv1 helm/olmv1 --values helm/experimental.yaml > $(EXPERIMENTAL_MANIFEST:.yaml=-helm.yaml)
177+
helm template olmv1 helm/olmv1 --values helm/experimental-e2e.yaml > $(EXPERIMENTAL_E2E_MANIFEST:.yaml=-helm.yaml)
178+
rm -rf $(BASE_COPY)
174179

175180
.PHONY: generate
176181
generate: $(CONTROLLER_GEN) #EXHELP Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.

helm/olmv1/crds/experimental.clustercatalog.crd.yaml

Lines changed: 0 additions & 442 deletions
This file was deleted.

helm/olmv1/crds/experimental.clusterextension.crd.yaml

Lines changed: 0 additions & 590 deletions
This file was deleted.

helm/olmv1/crds/standard.clustercatalog.crd.yaml

Lines changed: 0 additions & 442 deletions
This file was deleted.

helm/olmv1/crds/standard.clusterextension.crd.yaml

Lines changed: 0 additions & 590 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{- if .Values.components.catalogd.enabled }}
22
{{- if or (eq .Values.featureSet "standard") (eq .Values.featureSet "standard-e2e") }}
3-
{{ .Files.Get "crds/standard.clustercatalog.crd.yaml" }}
3+
{{ .Files.Get "base/catalogd/crd/standard/olm.operatorframework.io_clustercatalogs.yaml" }}
44
{{- end }}
55
{{- if or (eq .Values.featureSet "experimental") (eq .Values.featureSet "experimental-e2e") }}
6-
{{ .Files.Get "crds/experimental.clustercatalog.crd.yaml" }}
6+
{{ .Files.Get "base/catalogd/crd/experimental/olm.operatorframework.io_clustercatalogs.yaml" }}
77
{{- end }}
88
{{- end }}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{- if .Values.components.operatorController.enabled }}
22
{{- if or (eq .Values.featureSet "standard") (eq .Values.featureSet "standard-e2e") }}
3-
{{ .Files.Get "crds/standard.clusterextension.crd.yaml" }}
3+
{{ .Files.Get "base/operator-controller/crd/standard/olm.operatorframework.io_clusterextensions.yaml" }}
44
{{- end }}
55
{{- if or (eq .Values.featureSet "experimental") (eq .Values.featureSet "experimental-e2e") }}
6-
{{ .Files.Get "crds/experimental.clusterextension.crd.yaml" }}
6+
{{ .Files.Get "base/operator-controller/crd/experimental/olm.operatorframework.io_clusterextensions.yaml" }}
77
{{- end }}
88
{{- end }}

0 commit comments

Comments
 (0)