File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
experimental/helm/scripts Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,12 @@ COMPONENT="cert-manager"
1111VERSION=" v1.16.1"
1212REPO=" https://charts.jetstack.io"
1313TEMPLATES_DIR=" $CHART_DIR /templates/external/${COMPONENT} "
14+ CRDS_DIR=" $CHART_DIR /crds"
1415NAMESPACE=" cert-manager"
1516
1617rm -rf " $TEMPLATES_DIR "
1718mkdir -p " $TEMPLATES_DIR "
19+ mkdir -p " $CRDS_DIR "
1820
1921TEMP_DIR=$( mktemp -d)
2022cd " $TEMP_DIR "
@@ -31,12 +33,12 @@ helm template "$COMPONENT" "$COMPONENT" \
3133 --set startupapicheck.enabled=false \
3234 --output-dir .
3335
34- cp -r " $COMPONENT /templates/" * " $TEMPLATES_DIR / "
35-
36- [ -d " $COMPONENT /crds " ] && {
37- mkdir -p " $TEMPLATES_DIR /crds "
38- cp -r " $COMPONENT /crds/ " * " $TEMPLATES_DIR /crds/ "
39- }
36+ for file in " $COMPONENT /templates/" * .yaml ; do
37+ if [ -f " $file " ] && [[ ! " $( basename " $file " ) " == crds.yaml ]] ; then
38+ cp " $file " " $TEMPLATES_DIR / "
39+ fi
40+ done
41+ cat " $COMPONENT /templates/crds.yaml " > " $CRDS_DIR /cert-manager-crds.yaml "
4042
4143python3 " $SCRIPT_DIR /patch-templates.py" " $TEMPLATES_DIR " " $COMPONENT "
4244
Original file line number Diff line number Diff line change @@ -11,10 +11,12 @@ COMPONENT="spark-operator"
1111VERSION=" 2.2.0"
1212REPO=" https://kubeflow.github.io/spark-operator"
1313TEMPLATES_DIR=" $CHART_DIR /templates/external/${COMPONENT} "
14+ CRDS_DIR=" $CHART_DIR /crds"
1415NAMESPACE=" kubeflow"
1516
1617rm -rf " $TEMPLATES_DIR "
1718mkdir -p " $TEMPLATES_DIR "
19+ mkdir -p " $CRDS_DIR "
1820
1921TEMP_DIR=$( mktemp -d)
2022cd " $TEMP_DIR "
@@ -33,8 +35,7 @@ helm template "$COMPONENT" "$COMPONENT" \
3335cp -r " $COMPONENT /templates/" * " $TEMPLATES_DIR /"
3436
3537[ -d " $COMPONENT /crds" ] && {
36- mkdir -p " $TEMPLATES_DIR /crds"
37- cp -r " $COMPONENT /crds/" * " $TEMPLATES_DIR /crds/"
38+ cp -r " $COMPONENT /crds/" * " $CRDS_DIR /"
3839}
3940
4041python3 " $SCRIPT_DIR /patch-templates.py" " $TEMPLATES_DIR " " $COMPONENT "
You can’t perform that action at this time.
0 commit comments