Skip to content

Commit a08e903

Browse files
committed
chore: Move crds.yaml file
1 parent de5af19 commit a08e903

4 files changed

Lines changed: 714 additions & 887 deletions

File tree

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ compile-chart: version crds config
3232

3333
chart-clean:
3434
rm -rf "deploy/helm/${OPERATOR_NAME}/configs"
35-
rm -rf "deploy/helm/${OPERATOR_NAME}/crds"
3635

3736
version:
3837
cat "deploy/helm/${OPERATOR_NAME}/Chart.yaml" | yq ".version = \"${VERSION}\" | .appVersion = \"${VERSION}\"" > "deploy/helm/${OPERATOR_NAME}/Chart.yaml.new"
@@ -44,9 +43,11 @@ config:
4443
cp -r deploy/config-spec/* "deploy/helm/${OPERATOR_NAME}/configs";\
4544
fi
4645

46+
# We generate a crds.yaml, so that the effect of code changes are visible.
47+
# The operator will take care of the CRD rollout itself.
4748
crds:
48-
mkdir -p deploy/helm/"${OPERATOR_NAME}"/crds
49-
cargo run --bin stackable-"${OPERATOR_NAME}" -- crd | yq eval '.metadata.annotations["helm.sh/resource-policy"]="keep"' - > "deploy/helm/${OPERATOR_NAME}/crds/crds.yaml"
49+
mkdir -p extra
50+
cargo run --bin stackable-"${OPERATOR_NAME}" -- crd > extra/crds.yaml
5051

5152
chart-lint: compile-chart
5253
docker run -it -v $(shell pwd):/build/helm-charts -w /build/helm-charts quay.io/helmpack/chart-testing:v3.5.0 ct lint --config deploy/helm/ct.yaml

deploy/crd/authentication.crd.yaml

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

0 commit comments

Comments
 (0)