You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by ea...@apache.org on 2020/09/17 17:38:08 UTC

[incubator-sdap-nexus] branch bug_fixes updated: Add flag to disable crd creation

This is an automated email from the ASF dual-hosted git repository.

eamonford pushed a commit to branch bug_fixes
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git


The following commit(s) were added to refs/heads/bug_fixes by this push:
     new 3bda8ee  Add flag to disable crd creation
3bda8ee is described below

commit 3bda8ee213be341a3bcd665e3339e171d8524b9e
Author: Eamon Ford <ea...@gmail.com>
AuthorDate: Thu Sep 17 10:37:49 2020 -0700

    Add flag to disable crd creation
---
 helm/{crds => templates}/gitbasedconfig-crd.yml | 3 ++-
 helm/values.yaml                                | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/helm/crds/gitbasedconfig-crd.yml b/helm/templates/gitbasedconfig-crd.yml
similarity index 92%
rename from helm/crds/gitbasedconfig-crd.yml
rename to helm/templates/gitbasedconfig-crd.yml
index 6143752..8c1dd4c 100644
--- a/helm/crds/gitbasedconfig-crd.yml
+++ b/helm/templates/gitbasedconfig-crd.yml
@@ -1,3 +1,4 @@
+{{ if .Values.ingestion.collections.createCrd }}
 apiVersion: apiextensions.k8s.io/v1beta1
 kind: CustomResourceDefinition
 metadata:
@@ -31,4 +32,4 @@ spec:
           type: string
         config-map:
           type: string
-
+{{ end }}
diff --git a/helm/values.yaml b/helm/values.yaml
index b2e1a91..8f1efda 100644
--- a/helm/values.yaml
+++ b/helm/values.yaml
@@ -75,6 +75,7 @@ ingestion:
   ## ref: https://github.com/apache/incubator-sdap-ingester/tree/dev/collection_manager#the-collections-configuration-file
   ## Either localDir should be set, or the git options, but not both.
   collections:
+    createCrd: True
 
     ## Load the Collections Config file from a local path
     ## This is a future option that is not yet supported!