mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-21 22:41:33 +00:00
20 lines
768 B
Makefile
20 lines
768 B
Makefile
NAME=kubevirt-cdi-operator
|
|
NAMESPACE=cozy-kubevirt-cdi
|
|
|
|
show:
|
|
helm template --dry-run=server -n $(NAMESPACE) $(NAME) .
|
|
|
|
apply:
|
|
helm upgrade -i -n $(NAMESPACE) $(NAME) .
|
|
|
|
diff:
|
|
helm diff upgrade --allow-unreleased --normalize-manifests -n $(NAMESPACE) $(NAME) .
|
|
|
|
update:
|
|
rm -rf templates
|
|
mkdir templates
|
|
export VERSION=$$(basename $$(curl -s -w %{redirect_url} https://github.com/kubevirt/containerized-data-importer/releases/latest)) && \
|
|
wget https://github.com/kubevirt/containerized-data-importer/releases/download/$$VERSION/cdi-operator.yaml -O templates/cdi-operator.yaml
|
|
sed -i 's/namespace: cdi/namespace: cozy-kubevirt-cdi/g' templates/cdi-operator.yaml
|
|
awk -i inplace -v RS="---" '!/kind: Namespace/{printf "%s", $$0 RS}' templates/cdi-operator.yaml
|