mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-21 13:41:18 +00:00
<img width="1675" alt="Screenshot 2024-12-23 at 13 40 30" src="https://github.com/user-attachments/assets/cc123697-4efd-4a4f-909c-793cec8d91bd" /> <img width="1673" alt="Screenshot 2024-12-23 at 13 40 45" src="https://github.com/user-attachments/assets/3be63e8d-9ee6-487d-90d0-3583dc968dfc" /> Signed-off-by: Andrei Kvapil <kvapss@gmail.com> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new `pluginConfig` section in the Kubeapps dashboard configuration for managing a broader range of applications. - **Bug Fixes** - Enhanced URL generation logic to ensure proper encoding of package identifiers. - **Chores** - Updated image digests in the configuration for both the dashboard and kubeappsapis sections. - Removed unnecessary patch application steps from the build process. - Upgraded the Go version used for building the application. - Updated the application version for the tenant package from `1.6.3` to `1.6.4`. - Added a new version `1.6.4 HEAD` for the tenant package. - Adjusted RBAC configuration to streamline permissions and enhance group-based access management. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Andrei Kvapil <kvapss@gmail.com> Co-authored-by: klinch0 <68821526+klinch0@users.noreply.github.com>
68 lines
3.1 KiB
Makefile
68 lines
3.1 KiB
Makefile
export NAME=dashboard
|
|
export NAMESPACE=cozy-$(NAME)
|
|
|
|
include ../../../scripts/common-envs.mk
|
|
include ../../../scripts/package.mk
|
|
|
|
update: update-chart update-dockerfiles
|
|
image: image-dashboard image-kubeapps-apis
|
|
|
|
update-chart:
|
|
rm -rf charts
|
|
helm repo add bitnami https://charts.bitnami.com/bitnami
|
|
helm repo update bitnami
|
|
helm pull bitnami/kubeapps --untar --untardir charts
|
|
rm -rf charts/kubeapps/charts/postgresql/
|
|
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}') && \
|
|
wget https://github.com/vmware-tanzu/kubeapps/raw/$${tag}/cmd/kubeapps-apis/Dockerfile -O images/kubeapps-apis/Dockerfile && \
|
|
patch --no-backup-if-mismatch images/kubeapps-apis/Dockerfile < images/kubeapps-apis/dockerfile.diff && \
|
|
node_image=$$(wget -O- https://github.com/vmware-tanzu/kubeapps/raw/main/dashboard/Dockerfile | awk '/FROM bitnami\/node/ {print $$2}') && \
|
|
sed -i "s|FROM .* AS build|FROM $${node_image} AS build|" images/dashboard/Dockerfile && \
|
|
version=$$(echo "$$tag" | sed 's/^v//') && \
|
|
sed -i "s/ARG VERSION=.*/ARG VERSION=$${version}/" images/dashboard/Dockerfile
|
|
|
|
image-dashboard: update-version
|
|
docker buildx build images/dashboard \
|
|
--provenance false \
|
|
--tag $(REGISTRY)/dashboard:$(call settag,$(TAG)) \
|
|
--cache-from type=registry,ref=$(REGISTRY)/dashboard:latest \
|
|
--cache-to type=inline \
|
|
--metadata-file images/dashboard.json \
|
|
--push=$(PUSH) \
|
|
--load=$(LOAD)
|
|
REGISTRY="$(REGISTRY)" \
|
|
yq -i '.kubeapps.dashboard.image.registry = strenv(REGISTRY)' values.yaml
|
|
REPOSITORY="dashboard" \
|
|
yq -i '.kubeapps.dashboard.image.repository = strenv(REPOSITORY)' values.yaml
|
|
TAG="$(call settag,$(TAG))" \
|
|
yq -i '.kubeapps.dashboard.image.tag = strenv(TAG)' values.yaml
|
|
DIGEST=$$(yq e '."containerimage.digest"' images/dashboard.json -o json -r) \
|
|
yq -i '.kubeapps.dashboard.image.digest = strenv(DIGEST)' values.yaml
|
|
rm -f images/dashboard.json
|
|
|
|
image-kubeapps-apis: update-version
|
|
docker buildx build images/kubeapps-apis \
|
|
--provenance false \
|
|
--tag $(REGISTRY)/kubeapps-apis:$(call settag,$(TAG)) \
|
|
--cache-from type=registry,ref=$(REGISTRY)/kubeapps-apis:latest \
|
|
--cache-to type=inline \
|
|
--metadata-file images/kubeapps-apis.json \
|
|
--push=$(PUSH) \
|
|
--load=$(LOAD)
|
|
REGISTRY="$(REGISTRY)" \
|
|
yq -i '.kubeapps.kubeappsapis.image.registry = strenv(REGISTRY)' values.yaml
|
|
REPOSITORY="kubeapps-apis" \
|
|
yq -i '.kubeapps.kubeappsapis.image.repository = strenv(REPOSITORY)' values.yaml
|
|
TAG="$(call settag,$(TAG))" \
|
|
yq -i '.kubeapps.kubeappsapis.image.tag = strenv(TAG)' values.yaml
|
|
DIGEST=$$(yq e '."containerimage.digest"' images/kubeapps-apis.json -o json -r) \
|
|
yq -i '.kubeapps.kubeappsapis.image.digest = strenv(DIGEST)' values.yaml
|
|
rm -f images/kubeapps-apis.json
|
|
|
|
update-version:
|
|
sed -i "s|\(\"appVersion\":\).*|\1 \"$(TAG)\",|g" ./charts/kubeapps/templates/dashboard/configmap.yaml
|