File tree Expand file tree Collapse file tree
helm/commons-operator/crds Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ compile-chart: version crds config
3232
3333chart-clean :
3434 rm -rf " deploy/helm/${OPERATOR_NAME} /configs"
35- rm -rf " deploy/helm/${OPERATOR_NAME} /crds"
3635
3736version :
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.
4748crds :
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
5152chart-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
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments