Skip to content

Commit

Permalink
Move ocs operator kustomize manifests to config/manifets
Browse files Browse the repository at this point in the history
It's the standard location for this. During the removal of the fusion
bundle generation scripts this was missed.

Signed-off-by: Malay Kumar Parida <[email protected]>
  • Loading branch information
malayparida2000 committed Sep 27, 2023
1 parent ebaf35b commit 8a75f6e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
4 changes: 4 additions & 0 deletions config/manifests/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resources:
- ../default
- ../samples
# - ../scorecard
4 changes: 0 additions & 4 deletions config/manifests/ocs-operator/kustomization.yaml

This file was deleted.

7 changes: 2 additions & 5 deletions hack/source-manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,11 @@ function gen_ocs_csv() {
rm -rf $OCS_CSV
rm -rf $ocs_crds_outdir
mkdir -p $ocs_crds_outdir

gen_args="generate kustomize manifests --input-dir config/manifests/ocs-operator --output-dir config/manifests/ocs-operator --package ocs-operator -q"
# shellcheck disable=SC2086
$OPERATOR_SDK $gen_args
$OPERATOR_SDK generate kustomize manifests --package ocs-operator -q
pushd config/manager
$KUSTOMIZE edit set image ocs-dev/ocs-operator="$OCS_IMAGE"
popd
$KUSTOMIZE build config/manifests/ocs-operator | $OPERATOR_SDK generate bundle -q --overwrite=false --output-dir deploy/ocs-operator --kustomize-dir config/manifests/ocs-operator --package ocs-operator --version "$CSV_VERSION" --extra-service-accounts=ocs-metrics-exporter
$KUSTOMIZE build config/manifests | $OPERATOR_SDK generate bundle -q --overwrite=false --output-dir deploy/ocs-operator--package ocs-operator --version "$CSV_VERSION" --extra-service-accounts=ocs-metrics-exporter
mv deploy/ocs-operator/manifests/*clusterserviceversion.yaml $OCS_CSV
cp config/crd/bases/* $ocs_crds_outdir
}
Expand Down

0 comments on commit 8a75f6e

Please sign in to comment.