diff --git a/Makefile b/Makefile index 9ac01626..10a78ae7 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,8 @@ repos: make -C packages/system repo make -C packages/apps repo make -C packages/extra repo + mkdir -p _out/logos + cp ./packages/apps/*/logos/*.svg ./packages/extra/*/logos/*.svg _out/logos/ assets: make -C packages/core/installer/ assets diff --git a/packages/apps/clickhouse/.helmignore b/packages/apps/clickhouse/.helmignore new file mode 100644 index 00000000..1ea0ae84 --- /dev/null +++ b/packages/apps/clickhouse/.helmignore @@ -0,0 +1,3 @@ +.helmignore +/logos +/Makefile diff --git a/packages/apps/clickhouse/Chart.yaml b/packages/apps/clickhouse/Chart.yaml index d5ad8600..be47e494 100644 --- a/packages/apps/clickhouse/Chart.yaml +++ b/packages/apps/clickhouse/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: clickhouse description: Managed ClickHouse service -icon: https://cdn.worldvectorlogo.com/logos/clickhouse.svg +icon: /logos/clickhouse.svg # A chart can be either an 'application' or a 'library' chart. # diff --git a/packages/apps/clickhouse/logos/clickhouse.svg b/packages/apps/clickhouse/logos/clickhouse.svg new file mode 100644 index 00000000..f2144b5d --- /dev/null +++ b/packages/apps/clickhouse/logos/clickhouse.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/apps/ferretdb/.helmignore b/packages/apps/ferretdb/.helmignore new file mode 100644 index 00000000..1ea0ae84 --- /dev/null +++ b/packages/apps/ferretdb/.helmignore @@ -0,0 +1,3 @@ +.helmignore +/logos +/Makefile diff --git a/packages/apps/ferretdb/Chart.yaml b/packages/apps/ferretdb/Chart.yaml index 6d35a52b..2b7c86e5 100644 --- a/packages/apps/ferretdb/Chart.yaml +++ b/packages/apps/ferretdb/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: ferretdb description: Managed FerretDB service -icon: ferretdb.svg +icon: /logos/ferretdb.svg # A chart can be either an 'application' or a 'library' chart. # diff --git a/packages/apps/ferretdb/ferretdb.svg b/packages/apps/ferretdb/logos/ferretdb.svg similarity index 100% rename from packages/apps/ferretdb/ferretdb.svg rename to packages/apps/ferretdb/logos/ferretdb.svg diff --git a/packages/apps/http-cache/.helmignore b/packages/apps/http-cache/.helmignore index 0e8a0eb3..1ea0ae84 100644 --- a/packages/apps/http-cache/.helmignore +++ b/packages/apps/http-cache/.helmignore @@ -1,23 +1,3 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ +.helmignore +/logos +/Makefile diff --git a/packages/apps/http-cache/Chart.yaml b/packages/apps/http-cache/Chart.yaml index 716252ae..eb17a386 100644 --- a/packages/apps/http-cache/Chart.yaml +++ b/packages/apps/http-cache/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: http-cache description: Layer7 load balacner and caching service -icon: https://www.svgrepo.com/show/373924/nginx.svg +icon: /logos/nginx.svg # A chart can be either an 'application' or a 'library' chart. # diff --git a/packages/apps/http-cache/logos/nginx.svg b/packages/apps/http-cache/logos/nginx.svg new file mode 100644 index 00000000..27062a83 --- /dev/null +++ b/packages/apps/http-cache/logos/nginx.svg @@ -0,0 +1,2 @@ + +file_type_nginx \ No newline at end of file diff --git a/packages/apps/kafka/.helmignore b/packages/apps/kafka/.helmignore new file mode 100644 index 00000000..1ea0ae84 --- /dev/null +++ b/packages/apps/kafka/.helmignore @@ -0,0 +1,3 @@ +.helmignore +/logos +/Makefile diff --git a/packages/apps/kafka/Chart.yaml b/packages/apps/kafka/Chart.yaml index 78be0ce6..193e8d7e 100644 --- a/packages/apps/kafka/Chart.yaml +++ b/packages/apps/kafka/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: kafka description: Managed Kafka service -icon: https://upload.wikimedia.org/wikipedia/commons/0/05/Apache_kafka.svg +icon: /logos/kafka.svg # A chart can be either an 'application' or a 'library' chart. # diff --git a/packages/apps/kafka/logos/kafka.svg b/packages/apps/kafka/logos/kafka.svg new file mode 100644 index 00000000..305d8764 --- /dev/null +++ b/packages/apps/kafka/logos/kafka.svg @@ -0,0 +1 @@ + diff --git a/packages/apps/kubernetes/.helmignore b/packages/apps/kubernetes/.helmignore index 0e8a0eb3..1ea0ae84 100644 --- a/packages/apps/kubernetes/.helmignore +++ b/packages/apps/kubernetes/.helmignore @@ -1,23 +1,3 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ +.helmignore +/logos +/Makefile diff --git a/packages/apps/kubernetes/Chart.yaml b/packages/apps/kubernetes/Chart.yaml index cd846685..30811454 100644 --- a/packages/apps/kubernetes/Chart.yaml +++ b/packages/apps/kubernetes/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: kubernetes description: Managed Kubernetes service -icon: https://upload.wikimedia.org/wikipedia/commons/thumb/3/39/Kubernetes_logo_without_workmark.svg/723px-Kubernetes_logo_without_workmark.svg.png +icon: /logos/kubernetes.svg # A chart can be either an 'application' or a 'library' chart. # diff --git a/packages/apps/kubernetes/logos/kubernetes.svg b/packages/apps/kubernetes/logos/kubernetes.svg new file mode 100644 index 00000000..bedd3b88 --- /dev/null +++ b/packages/apps/kubernetes/logos/kubernetes.svg @@ -0,0 +1,84 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/packages/apps/mysql/.helmignore b/packages/apps/mysql/.helmignore index 0e8a0eb3..1ea0ae84 100644 --- a/packages/apps/mysql/.helmignore +++ b/packages/apps/mysql/.helmignore @@ -1,23 +1,3 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ +.helmignore +/logos +/Makefile diff --git a/packages/apps/mysql/Chart.yaml b/packages/apps/mysql/Chart.yaml index 25f3132d..07321d2a 100644 --- a/packages/apps/mysql/Chart.yaml +++ b/packages/apps/mysql/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: mysql description: Managed MariaDB service -icon: https://static-00.iconduck.com/assets.00/mariadb-icon-512x340-txozryr2.png +icon: /logos/mariadb.svg # A chart can be either an 'application' or a 'library' chart. # diff --git a/packages/apps/mysql/logos/mariadb.svg b/packages/apps/mysql/logos/mariadb.svg new file mode 100644 index 00000000..82ff6f87 --- /dev/null +++ b/packages/apps/mysql/logos/mariadb.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/apps/postgres/.helmignore b/packages/apps/postgres/.helmignore index 0e8a0eb3..1ea0ae84 100644 --- a/packages/apps/postgres/.helmignore +++ b/packages/apps/postgres/.helmignore @@ -1,23 +1,3 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ +.helmignore +/logos +/Makefile diff --git a/packages/apps/postgres/Chart.yaml b/packages/apps/postgres/Chart.yaml index eb9ab8cc..0bc35560 100644 --- a/packages/apps/postgres/Chart.yaml +++ b/packages/apps/postgres/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: postgres description: Managed PostgreSQL service -icon: https://cdn-icons-png.flaticon.com/512/5968/5968342.png +icon: /logos/postgres.svg # A chart can be either an 'application' or a 'library' chart. # diff --git a/packages/apps/postgres/logos/postgres.svg b/packages/apps/postgres/logos/postgres.svg new file mode 100644 index 00000000..d98e3659 --- /dev/null +++ b/packages/apps/postgres/logos/postgres.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/apps/rabbitmq/.helmignore b/packages/apps/rabbitmq/.helmignore index 0e8a0eb3..1ea0ae84 100644 --- a/packages/apps/rabbitmq/.helmignore +++ b/packages/apps/rabbitmq/.helmignore @@ -1,23 +1,3 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ +.helmignore +/logos +/Makefile diff --git a/packages/apps/rabbitmq/Chart.yaml b/packages/apps/rabbitmq/Chart.yaml index f8f02830..2c43a6b6 100644 --- a/packages/apps/rabbitmq/Chart.yaml +++ b/packages/apps/rabbitmq/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: rabbitmq description: Managed RabbitMQ service -icon: https://static-00.iconduck.com/assets.00/rabbitmq-icon-484x512-s9lfaapn.png +icon: /logos/rabbitmq.svg # A chart can be either an 'application' or a 'library' chart. # diff --git a/packages/apps/rabbitmq/logos/rabbitmq.svg b/packages/apps/rabbitmq/logos/rabbitmq.svg new file mode 100644 index 00000000..ab4c8693 --- /dev/null +++ b/packages/apps/rabbitmq/logos/rabbitmq.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/packages/apps/redis/.helmignore b/packages/apps/redis/.helmignore index 0e8a0eb3..1ea0ae84 100644 --- a/packages/apps/redis/.helmignore +++ b/packages/apps/redis/.helmignore @@ -1,23 +1,3 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ +.helmignore +/logos +/Makefile diff --git a/packages/apps/redis/Chart.yaml b/packages/apps/redis/Chart.yaml index 3159738e..8daa1619 100644 --- a/packages/apps/redis/Chart.yaml +++ b/packages/apps/redis/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: redis description: Managed Redis service -icon: https://cdn4.iconfinder.com/data/icons/redis-2/1451/Untitled-2-512.png +icon: /logos/redis.svg # A chart can be either an 'application' or a 'library' chart. # diff --git a/packages/apps/redis/logos/redis.svg b/packages/apps/redis/logos/redis.svg new file mode 100644 index 00000000..ed312206 --- /dev/null +++ b/packages/apps/redis/logos/redis.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/packages/apps/tcp-balancer/.helmignore b/packages/apps/tcp-balancer/.helmignore index 0e8a0eb3..1ea0ae84 100644 --- a/packages/apps/tcp-balancer/.helmignore +++ b/packages/apps/tcp-balancer/.helmignore @@ -1,23 +1,3 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ +.helmignore +/logos +/Makefile diff --git a/packages/apps/tcp-balancer/Chart.yaml b/packages/apps/tcp-balancer/Chart.yaml index 8f3a6551..c4e9744f 100644 --- a/packages/apps/tcp-balancer/Chart.yaml +++ b/packages/apps/tcp-balancer/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: tcp-balancer description: Layer4 load balancer service -icon: https://cdn.icon-icons.com/icons2/2699/PNG/512/haproxy_logo_icon_171017.png +icon: /logos/haproxy.svg # A chart can be either an 'application' or a 'library' chart. # diff --git a/packages/apps/tcp-balancer/logos/haproxy.svg b/packages/apps/tcp-balancer/logos/haproxy.svg new file mode 100644 index 00000000..e2e54609 --- /dev/null +++ b/packages/apps/tcp-balancer/logos/haproxy.svg @@ -0,0 +1,165 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/apps/tenant/.helmignore b/packages/apps/tenant/.helmignore new file mode 100644 index 00000000..1ea0ae84 --- /dev/null +++ b/packages/apps/tenant/.helmignore @@ -0,0 +1,3 @@ +.helmignore +/logos +/Makefile diff --git a/packages/apps/tenant/Chart.yaml b/packages/apps/tenant/Chart.yaml index 9a866e0f..5f531c11 100644 --- a/packages/apps/tenant/Chart.yaml +++ b/packages/apps/tenant/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: tenant description: Separated tenant namespace -icon: https://upload.wikimedia.org/wikipedia/commons/0/04/User_icon_1.svg +icon: /logos/tenant.svg type: application version: 1.2.0 diff --git a/packages/apps/tenant/logos/tenant.svg b/packages/apps/tenant/logos/tenant.svg new file mode 100644 index 00000000..ea647590 --- /dev/null +++ b/packages/apps/tenant/logos/tenant.svg @@ -0,0 +1,351 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/apps/virtual-machine/.helmignore b/packages/apps/virtual-machine/.helmignore index 0e8a0eb3..1ea0ae84 100644 --- a/packages/apps/virtual-machine/.helmignore +++ b/packages/apps/virtual-machine/.helmignore @@ -1,23 +1,3 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ +.helmignore +/logos +/Makefile diff --git a/packages/apps/virtual-machine/Chart.yaml b/packages/apps/virtual-machine/Chart.yaml index 1e2a3c5a..4699d936 100644 --- a/packages/apps/virtual-machine/Chart.yaml +++ b/packages/apps/virtual-machine/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 #name: Virtual Machine name: virtual-machine description: Virtual machine instance -icon: https://www.svgrepo.com/show/448273/azure-vms.svg +icon: /logos/vm.svg # A chart can be either an 'application' or a 'library' chart. # diff --git a/packages/apps/virtual-machine/logos/vm.svg b/packages/apps/virtual-machine/logos/vm.svg new file mode 100644 index 00000000..78911027 --- /dev/null +++ b/packages/apps/virtual-machine/logos/vm.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/packages/apps/vpn/.helmignore b/packages/apps/vpn/.helmignore index 0e8a0eb3..1ea0ae84 100644 --- a/packages/apps/vpn/.helmignore +++ b/packages/apps/vpn/.helmignore @@ -1,23 +1,3 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ +.helmignore +/logos +/Makefile diff --git a/packages/apps/vpn/Chart.yaml b/packages/apps/vpn/Chart.yaml index f19008c9..b40fe8b2 100644 --- a/packages/apps/vpn/Chart.yaml +++ b/packages/apps/vpn/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: vpn description: Managed VPN service -icon: https://upload.wikimedia.org/wikipedia/commons/thumb/6/60/Outline_VPN_icon.png/600px-Outline_VPN_icon.png +icon: /logos/outline.svg # A chart can be either an 'application' or a 'library' chart. # diff --git a/packages/apps/vpn/logos/outline.svg b/packages/apps/vpn/logos/outline.svg new file mode 100644 index 00000000..b4af2c6d --- /dev/null +++ b/packages/apps/vpn/logos/outline.svg @@ -0,0 +1,64 @@ + + + + + + + Outline web assets + + + + + + + Outline web assets + + + + diff --git a/packages/core/installer/images/cozystack/Dockerfile b/packages/core/installer/images/cozystack/Dockerfile index 7c9652b3..19878805 100644 --- a/packages/core/installer/images/cozystack/Dockerfile +++ b/packages/core/installer/images/cozystack/Dockerfile @@ -33,6 +33,7 @@ COPY scripts /cozystack/scripts COPY --from=builder /src/packages/core /cozystack/packages/core COPY --from=builder /src/packages/system /cozystack/packages/system COPY --from=builder /src/_out/repos /cozystack/assets/repos +COPY --from=builder /src/_out/logos /cozystack/assets/logos COPY --from=k8s-await-election-builder /k8s-await-election /usr/bin/k8s-await-election COPY dashboards /cozystack/assets/dashboards diff --git a/packages/extra/etcd/.helmignore b/packages/extra/etcd/.helmignore new file mode 100644 index 00000000..1ea0ae84 --- /dev/null +++ b/packages/extra/etcd/.helmignore @@ -0,0 +1,3 @@ +.helmignore +/logos +/Makefile diff --git a/packages/extra/etcd/Chart.yaml b/packages/extra/etcd/Chart.yaml index 76d426a9..dc79f3f5 100644 --- a/packages/extra/etcd/Chart.yaml +++ b/packages/extra/etcd/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: etcd description: Storage for Kubernetes clusters -icon: https://www.svgrepo.com/show/353714/etcd.svg +icon: /logos/etcd.svg type: application version: 2.1.0 diff --git a/packages/extra/etcd/logos/etcd.svg b/packages/extra/etcd/logos/etcd.svg new file mode 100644 index 00000000..2d5b9fa9 --- /dev/null +++ b/packages/extra/etcd/logos/etcd.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/packages/extra/ingress/.helmignore b/packages/extra/ingress/.helmignore new file mode 100644 index 00000000..1ea0ae84 --- /dev/null +++ b/packages/extra/ingress/.helmignore @@ -0,0 +1,3 @@ +.helmignore +/logos +/Makefile diff --git a/packages/extra/ingress/Chart.yaml b/packages/extra/ingress/Chart.yaml index b646aedb..664a41c5 100644 --- a/packages/extra/ingress/Chart.yaml +++ b/packages/extra/ingress/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: ingress description: NGINX Ingress Controller -icon: https://docs.nginx.com/nginx-ingress-controller/images/icons/NGINX-Ingress-Controller-product-icon.svg +icon: /logos/ingress-nginx.svg type: application version: 1.2.0 diff --git a/packages/extra/ingress/logos/ingress-nginx.svg b/packages/extra/ingress/logos/ingress-nginx.svg new file mode 100644 index 00000000..52d351c0 --- /dev/null +++ b/packages/extra/ingress/logos/ingress-nginx.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/extra/monitoring/.helmignore b/packages/extra/monitoring/.helmignore new file mode 100644 index 00000000..1ea0ae84 --- /dev/null +++ b/packages/extra/monitoring/.helmignore @@ -0,0 +1,3 @@ +.helmignore +/logos +/Makefile diff --git a/packages/extra/monitoring/Chart.yaml b/packages/extra/monitoring/Chart.yaml index 0c28c1bf..0dfcd509 100644 --- a/packages/extra/monitoring/Chart.yaml +++ b/packages/extra/monitoring/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: monitoring description: Monitoring and observability stack -icon: https://www.svgrepo.com/download/184787/analytics-laptop.svg +icon: /logos/monitoring.svg type: application version: 1.1.0 diff --git a/packages/extra/monitoring/logos/monitoring.svg b/packages/extra/monitoring/logos/monitoring.svg new file mode 100644 index 00000000..1b5a27bf --- /dev/null +++ b/packages/extra/monitoring/logos/monitoring.svg @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/system/dashboard/.helmignore b/packages/system/dashboard/.helmignore index 43b1c5aa..fd9deb8f 100644 --- a/packages/system/dashboard/.helmignore +++ b/packages/system/dashboard/.helmignore @@ -1,3 +1,4 @@ hack .gitkeep images/*/* +/patches diff --git a/packages/system/dashboard/Makefile b/packages/system/dashboard/Makefile index d17d36aa..b628f3c8 100644 --- a/packages/system/dashboard/Makefile +++ b/packages/system/dashboard/Makefile @@ -15,6 +15,7 @@ update-chart: rm -rf charts/kubeapps/charts/postgresql/ ln -s ../../images charts/kubeapps/images sed -i 's/.cluster.local//g' charts/kubeapps/templates/kubeappsapis/deployment.yaml + patch --no-backup-if-mismatch charts/kubeapps/templates/frontend/configmap.yaml < patches/logos.patch update-dockerfiles: tag=$$(git ls-remote --tags --sort="v:refname" https://github.com/vmware-tanzu/kubeapps | awk -F'[/^]' 'END{print $$3}') && \ diff --git a/packages/system/dashboard/charts/kubeapps/templates/frontend/configmap.yaml b/packages/system/dashboard/charts/kubeapps/templates/frontend/configmap.yaml index d43f521c..955e5fb9 100644 --- a/packages/system/dashboard/charts/kubeapps/templates/frontend/configmap.yaml +++ b/packages/system/dashboard/charts/kubeapps/templates/frontend/configmap.yaml @@ -136,4 +136,10 @@ data: proxy_pass {{ printf "http://%s:%d" (include "kubeapps.dashboard.fullname" .) (int .Values.dashboard.service.ports.http) }}; } {{- end }} + + location /logos { + # Add the Authorization header if exists + add_header Authorization $http_authorization; + proxy_pass http://cozystack.cozy-system.svc:80; + } } diff --git a/packages/system/dashboard/patches/logos.patch b/packages/system/dashboard/patches/logos.patch new file mode 100644 index 00000000..e00492db --- /dev/null +++ b/packages/system/dashboard/patches/logos.patch @@ -0,0 +1,15 @@ +diff --git a/packages/system/dashboard/charts/kubeapps/templates/frontend/configmap.yaml b/packages/system/dashboard/charts/kubeapps/templates/frontend/configmap.yaml +index d43f521..31ff7d5 100644 +--- a/packages/system/dashboard/charts/kubeapps/templates/frontend/configmap.yaml ++++ b/packages/system/dashboard/charts/kubeapps/templates/frontend/configmap.yaml +@@ -136,4 +136,10 @@ data: + proxy_pass {{ printf "http://%s:%d" (include "kubeapps.dashboard.fullname" .) (int .Values.dashboard.service.ports.http) }}; + } + {{- end }} ++ ++ location /logos { ++ # Add the Authorization header if exists ++ add_header Authorization $http_authorization; ++ proxy_pass http://cozystack.cozy-system.svc:80; ++ } + }