mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-21 16:41:17 +00:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Introduced a new variable `$host` for improved configuration management. - Added a `valuesFrom` section to the `dashboard` release, allowing external value sourcing. - Enhanced Keycloak integration with new client scopes, roles, and configurations for Kubeapps. - Added support for custom pod specifications and environment variables in Redis configurations. - Introduced a new Kubernetes configuration file for managing access to resources via Role and Secret. - Updated image versions across various components to ensure compatibility and leverage new features. - **Bug Fixes** - Implemented error handling to ensure required configurations are present. - Improved handling of request headers for the `/logos` endpoint in Nginx configuration. - Adjusted security context configurations to enhance deployment security. - **Documentation** - Updated configuration files to reflect new dependencies and structures for better clarity. - Enhanced README documentation with upgrade instructions and security defaults. - Expanded notes on handling persistent volumes and data migration during upgrades. These enhancements improve the overall functionality and reliability of the platform. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
64 lines
1.8 KiB
YAML
64 lines
1.8 KiB
YAML
{{- $cozyConfig := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }}
|
|
{{- $bundleName := index $cozyConfig.data "bundle-name" }}
|
|
{{- $bundle := tpl (.Files.Get (printf "bundles/%s.yaml" $bundleName)) . | fromYaml }}
|
|
{{- $host := "example.org" }}
|
|
{{- $host := "example.org" }}
|
|
{{- if $cozyConfig.data }}
|
|
{{- if hasKey $cozyConfig.data "root-host" }}
|
|
{{- $host = index $cozyConfig.data "root-host" }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- $tenantRoot := list }}
|
|
{{- if .Capabilities.APIVersions.Has "helm.toolkit.fluxcd.io/v2" }}
|
|
{{- $tenantRoot = lookup "helm.toolkit.fluxcd.io/v2" "HelmRelease" "tenant-root" "tenant-root" }}
|
|
{{- end }}
|
|
{{- if and $tenantRoot $tenantRoot.spec $tenantRoot.spec.values $tenantRoot.spec.values.host }}
|
|
{{- $host = $tenantRoot.spec.values.host }}
|
|
{{- else }}
|
|
{{- end }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
annotations:
|
|
helm.sh/resource-policy: keep
|
|
namespace.cozystack.io/etcd: tenant-root
|
|
namespace.cozystack.io/monitoring: tenant-root
|
|
namespace.cozystack.io/ingress: tenant-root
|
|
namespace.cozystack.io/seaweedfs: tenant-root
|
|
namespace.cozystack.io/host: "{{ $host }}"
|
|
name: tenant-root
|
|
---
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: tenant-root
|
|
namespace: tenant-root
|
|
labels:
|
|
cozystack.io/ui: "true"
|
|
spec:
|
|
interval: 1m
|
|
releaseName: tenant-root
|
|
install:
|
|
remediation:
|
|
retries: -1
|
|
upgrade:
|
|
remediation:
|
|
retries: -1
|
|
chart:
|
|
spec:
|
|
chart: tenant
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: cozystack-apps
|
|
namespace: cozy-public
|
|
values:
|
|
host: "{{ $host }}"
|
|
dependsOn:
|
|
{{- range $x := $bundle.releases }}
|
|
{{- if has $x.name (list "cilium" "kubeovn") }}
|
|
- name: {{ $x.name }}
|
|
namespace: {{ $x.namespace }}
|
|
{{- end }}
|
|
{{- end }}
|