mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 18:18:41 +00:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced new HelmRelease configurations for cert-manager, monitoring agents, and Victoria Metrics Operator in Kubernetes. - Added resource specifications for `vmselect` in the VMCluster configuration. - Enhanced resource management for `vmselect` with defined limits and requests for memory and CPU. - **Bug Fixes** - Adjusted resource limits for Redis failover memory allocation. - **Documentation** - Updated README and release notes for various components, enhancing clarity and usability. - **Chores** - Updated image versions across multiple components for consistency and performance improvements. - Modified migration scripts to facilitate transitions and manage resources effectively. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Andrei Kvapil <kvapss@gmail.com>
16 lines
993 B
Bash
Executable File
16 lines
993 B
Bash
Executable File
#!/bin/sh
|
|
# Migration 5 --> 6
|
|
|
|
# Fix tenant-kubernetes PVCs
|
|
kubectl get secret -l kamaji.clastix.io/project=kamaji,kamaji.clastix.io/component=admin-kubeconfig -A --output=go-template='{{ range .items }}{{ printf "%s %s %s %s\n" .metadata.namespace .metadata.name (index .metadata.labels "kamaji.clastix.io/name") (index .data "super-admin.conf") }}{{ end }}' | while read NAMESPACE NAME CLUSTER CONFIGB64; do
|
|
config=$(mktemp)
|
|
echo "$CONFIGB64" | base64 -d > "$config"
|
|
kubectl get pv --kubeconfig="$config" --output=go-template='{{ range .items }}{{ printf "%s\n" .metadata.name }}{{ end }}' | while read PVC; do
|
|
(set -x; kubectl label pvc --overwrite -n "$NAMESPACE" "$PVC" "cluster.x-k8s.io/cluster-name=$CLUSTER")
|
|
(set -x; kubectl label dv --overwrite -n "$NAMESPACE" "$PVC" "cluster.x-k8s.io/cluster-name=$CLUSTER")
|
|
done
|
|
rm -f "$config"
|
|
done
|
|
|
|
kubectl create configmap -n cozy-system cozystack-version --from-literal=version=6 --dry-run=client -o yaml | kubectl apply -f-
|