Skip to content

Commit cd8c75c

Browse files
committed
chore: Move crds.yaml file
1 parent 4d7e7f2 commit cd8c75c

3 files changed

Lines changed: 2106 additions & 2105 deletions

File tree

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ config:
4444
cp -r deploy/config-spec/* "deploy/helm/${OPERATOR_NAME}/configs";\
4545
fi
4646

47+
48+
# We generate a crds.yaml, so that the effect of code changes are visible.
49+
# The operator will take care of the CRD rollout itself.
4750
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"
51+
mkdir -p extra
52+
cargo run --bin stackable-"${OPERATOR_NAME}" -- crd > extra/crds.yaml
5053

5154
chart-lint: compile-chart
5255
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

0 commit comments

Comments
 (0)