Skip to content

Commit

Permalink
DX: Use generic Makefile for packages
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Kvapil <[email protected]>
  • Loading branch information
kvaps committed Aug 15, 2024
1 parent 7151424 commit 6a8b06d
Show file tree
Hide file tree
Showing 53 changed files with 95 additions and 39 deletions.
2 changes: 2 additions & 0 deletions packages/apps/bucket/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json -r README.md
2 changes: 2 additions & 0 deletions packages/apps/clickhouse/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json -r README.md
2 changes: 2 additions & 0 deletions packages/apps/ferretdb/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json -r README.md
1 change: 1 addition & 0 deletions packages/apps/http-cache/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
NGINX_CACHE_TAG = v0.1.0

include ../../../scripts/package.mk
include ../../../scripts/common-envs.mk

image: image-nginx
Expand Down
2 changes: 2 additions & 0 deletions packages/apps/kafka/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json -r README.md
1 change: 1 addition & 0 deletions packages/apps/kubernetes/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
UBUNTU_CONTAINER_DISK_TAG = v1.30.1

include ../../../scripts/common-envs.mk
include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json -r README.md
Expand Down
2 changes: 2 additions & 0 deletions packages/apps/mysql/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json -r README.md
2 changes: 2 additions & 0 deletions packages/apps/nats/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json -r README.md
2 changes: 2 additions & 0 deletions packages/apps/postgres/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json -r README.md
2 changes: 2 additions & 0 deletions packages/apps/rabbitmq/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json -r README.md
2 changes: 2 additions & 0 deletions packages/apps/redis/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json -r README.md
2 changes: 2 additions & 0 deletions packages/apps/tcp-balancer/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json.tmp -r README.md
cat values.schema.json.tmp | jq '.properties.httpAndHttps.properties.mode.enum = ["tcp","tcp-with-proxy"]' > values.schema.json
Expand Down
2 changes: 2 additions & 0 deletions packages/apps/tenant/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json -r README.md
2 changes: 2 additions & 0 deletions packages/apps/virtual-machine/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json.tmp -r README.md
cat values.schema.json.tmp | \
Expand Down
2 changes: 2 additions & 0 deletions packages/apps/vpn/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json -r README.md
4 changes: 4 additions & 0 deletions packages/extra/etcd/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
NAME=etcd

include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json -r README.md
4 changes: 4 additions & 0 deletions packages/extra/ingress/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
NAME=ingress

include ../../../scripts/package.mk

update: get-cloudflare-ips

get-cloudflare-ips:
Expand Down
4 changes: 4 additions & 0 deletions packages/extra/monitoring/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
NAME=monitoring

include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json.tmp -r README.md
cat values.schema.json.tmp | \
Expand Down
4 changes: 4 additions & 0 deletions packages/extra/seaweedfs/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
NAME=seaweedfs

include ../../../scripts/package.mk

generate:
readme-generator -v values.yaml -s values.schema.json -r README.md
2 changes: 1 addition & 1 deletion packages/system/capi-operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=capi-operator
export NAMESPACE=cozy-cluster-api

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/capi-providers/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export NAME=capi-providers
export NAMESPACE=cozy-cluster-api

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk
2 changes: 1 addition & 1 deletion packages/system/cert-manager-issuers/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export NAME=cert-manager-issuers
export NAMESPACE=cozy-cert-manager

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk
2 changes: 1 addition & 1 deletion packages/system/cert-manager/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=cert-manager
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/cilium/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export NAME=cilium
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/common-envs.mk
include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/clickhouse-operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=clickhouse-operator
export NAMESPACE=cozy-clickhouse-operator

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/dashboard/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export NAME=dashboard
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/common-envs.mk
include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update: update-chart update-dockerfiles
image: image-dashboard image-kubeapps-apis
Expand Down
2 changes: 1 addition & 1 deletion packages/system/etcd-operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=etcd-operator
export NAMESPACE=cozy-${NAME}

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/fluxcd-operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NAME=fluxcd-operator
NAMESPACE=cozy-fluxcd

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

apply-locally:
helm upgrade -i -n $(NAMESPACE) $(NAME) .
Expand Down
2 changes: 1 addition & 1 deletion packages/system/fluxcd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ NAMESPACE=cozy-$(NAME)
apply-locally:
helm upgrade -i -n $(NAMESPACE) $(NAME) .

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk
4 changes: 4 additions & 0 deletions packages/system/grafana-oncall/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
NAME=grafana-oncall-system

include ../../../scripts/package.mk

update:
rm -rf charts
helm repo add grafana https://grafana.github.io/helm-charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/grafana-operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=grafana-operator
export NAMESPACE=cozy-grafana-operator

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
5 changes: 2 additions & 3 deletions packages/system/ingress-nginx/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export NAME=ingress-nginx
export NAMESPACE=cozy-$(NAME)
NAME=ingress-nginx-system

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/kafka-operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=kafka-operator
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/kamaji/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export NAME=kamaji
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/common-envs.mk
include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/kubeovn/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export NAME=kubeovn
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/common-envs.mk
include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts && mkdir -p charts/kube-ovn
Expand Down
2 changes: 1 addition & 1 deletion packages/system/kubevirt-cdi-operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=kubevirt-cdi-operator
export NAMESPACE=cozy-kubevirt-cdi

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf templates
Expand Down
2 changes: 1 addition & 1 deletion packages/system/kubevirt-cdi/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=kubevirt-cdi
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf templates
Expand Down
2 changes: 1 addition & 1 deletion packages/system/kubevirt-operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=kubevirt-operator
export NAMESPACE=cozy-kubevirt

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf templates
Expand Down
2 changes: 1 addition & 1 deletion packages/system/kubevirt/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=kubevirt
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf templates
Expand Down
2 changes: 1 addition & 1 deletion packages/system/linstor/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export NAME=linstor
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk
2 changes: 1 addition & 1 deletion packages/system/mariadb-operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=mariadb-operator
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/metallb/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=metallb
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/monitoring/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=monitoring
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 2 additions & 0 deletions packages/system/nats/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../../scripts/package.mk

update:
rm -rf charts
helm repo add nats https://nats-io.github.io/k8s/helm/charts/
Expand Down
2 changes: 1 addition & 1 deletion packages/system/objectstorage-controller/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=cosi-controller
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf templates
Expand Down
2 changes: 1 addition & 1 deletion packages/system/piraeus-operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=piraeus-operator
export NAMESPACE=cozy-linstor

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/postgres-operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=postgres-operator
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/rabbitmq-operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=rabbitmq-operator
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf templates/cluster-operator.yml
Expand Down
2 changes: 1 addition & 1 deletion packages/system/redis-operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=redis-operator
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/snapshot-controller/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=snapshot-controller
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/telepresence/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=traffic-manager
export NAMESPACE=cozy-telepresence

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
2 changes: 1 addition & 1 deletion packages/system/victoria-metrics-operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export NAME=victoria-metrics-operator
export NAMESPACE=cozy-$(NAME)

include ../../../scripts/package-system.mk
include ../../../scripts/package.mk

update:
rm -rf charts
Expand Down
Loading

0 comments on commit 6a8b06d

Please sign in to comment.