mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-02-06 01:06:27 +00:00
20 lines
744 B
Makefile
20 lines
744 B
Makefile
NAME=kubevirt-operator
|
|
NAMESPACE=cozy-kubevirt
|
|
|
|
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 RELEASE=$$(curl https://storage.googleapis.com/kubevirt-prow/release/kubevirt/kubevirt/stable.txt) && \
|
|
wget https://github.com/kubevirt/kubevirt/releases/download/$${RELEASE}/kubevirt-operator.yaml -O templates/kubevirt-operator.yaml && \
|
|
sed -i 's/namespace: kubevirt/namespace: cozy-kubevirt/g' templates/kubevirt-operator.yaml
|
|
awk -i inplace -v RS="---" '!/kind: Namespace/{printf "%s", $$0 RS}' templates/kubevirt-operator.yaml
|