mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-02-06 01:06:27 +00:00
Compare commits
5 Commits
versioning
...
v0.2.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c24a103fda | ||
|
|
8b975ff0cc | ||
|
|
e245d541b2 | ||
|
|
f03f083c1a | ||
|
|
d68c6c68f6 |
@@ -3,7 +3,7 @@ set -e
|
|||||||
|
|
||||||
if [ -e $1 ]; then
|
if [ -e $1 ]; then
|
||||||
echo "Please pass version in the first argument"
|
echo "Please pass version in the first argument"
|
||||||
echo "Example: $0 v0.0.2"
|
echo "Example: $0 0.2.0"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -12,8 +12,14 @@ talos_version=$(awk '/^version:/ {print $2}' packages/core/installer/images/talo
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
sed -i "/^TAG / s|=.*|= ${version}|" \
|
sed -i "/^TAG / s|=.*|= v${version}|" \
|
||||||
packages/apps/http-cache/Makefile \
|
packages/apps/http-cache/Makefile \
|
||||||
packages/apps/kubernetes/Makefile \
|
packages/apps/kubernetes/Makefile \
|
||||||
packages/core/installer/Makefile \
|
packages/core/installer/Makefile \
|
||||||
packages/system/dashboard/Makefile
|
packages/system/dashboard/Makefile
|
||||||
|
|
||||||
|
sed -i "/^VERSION / s|=.*|= ${version}|" \
|
||||||
|
packages/core/Makefile \
|
||||||
|
packages/system/Makefile
|
||||||
|
make -C packages/core fix-chartnames
|
||||||
|
make -C packages/system fix-chartnames
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ spec:
|
|||||||
serviceAccountName: cozystack
|
serviceAccountName: cozystack
|
||||||
containers:
|
containers:
|
||||||
- name: cozystack
|
- name: cozystack
|
||||||
image: "ghcr.io/aenix-io/cozystack/cozystack:v0.1.0"
|
image: "ghcr.io/aenix-io/cozystack/cozystack:v0.2.0"
|
||||||
env:
|
env:
|
||||||
- name: KUBERNETES_SERVICE_HOST
|
- name: KUBERNETES_SERVICE_HOST
|
||||||
value: localhost
|
value: localhost
|
||||||
@@ -89,7 +89,7 @@ spec:
|
|||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.name
|
fieldPath: metadata.name
|
||||||
- name: darkhttpd
|
- name: darkhttpd
|
||||||
image: "ghcr.io/aenix-io/cozystack/cozystack:v0.1.0"
|
image: "ghcr.io/aenix-io/cozystack/cozystack:v0.2.0"
|
||||||
command:
|
command:
|
||||||
- /usr/bin/darkhttpd
|
- /usr/bin/darkhttpd
|
||||||
- /cozystack/assets
|
- /cozystack/assets
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"containerimage.config.digest": "sha256:318fd8d0d6f6127387042f6ad150e87023d1961c7c5059dd5324188a54b0ab4e",
|
"containerimage.config.digest": "sha256:0487fc50bb5f870720b05e947185424a400fad38b682af8f1ca4b418ed3c5b4b",
|
||||||
"containerimage.digest": "sha256:e3cf145238e6e45f7f13b9acaea445c94ff29f76a34ba9fa50828401a5a3cc68"
|
"containerimage.digest": "sha256:be12f3834be0e2f129685f682fab83c871610985fc43668ce6a294c9de603798"
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"containerimage.config.digest": "sha256:ee8968be63c7c45621ec45f3687211e0875acb24e8d9784e8d2ebcbf46a3538c",
|
"containerimage.config.digest": "sha256:43d0bfd01c5e364ba961f1e3dc2c7ccd7fd4ca65bd26bc8c4a5298d7ff2c9f4f",
|
||||||
"containerimage.digest": "sha256:16c3c07e74212585786dc1f1ae31d3ab90a575014806193e8e37d1d7751cb084"
|
"containerimage.digest": "sha256:908b3c186bee86f1c9476317eb6582d07f19776b291aa068e5642f8fd08fa9e7"
|
||||||
}
|
}
|
||||||
@@ -16,7 +16,7 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.1.0
|
version: 0.2.0
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{{- range $name := .Values.databases }}
|
{{- range $name := .Values.databases }}
|
||||||
{{ $dnsName := replace "_" "-" $name }}
|
{{ $dnsName := replace "_" "-" $name }}
|
||||||
---
|
---
|
||||||
apiVersion: mariadb.mmontes.io/v1alpha1
|
apiVersion: k8s.mariadb.com/v1alpha1
|
||||||
kind: Database
|
kind: Database
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $.Release.Name }}-{{ $dnsName }}
|
name: {{ $.Release.Name }}-{{ $dnsName }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
apiVersion: mariadb.mmontes.io/v1alpha1
|
apiVersion: k8s.mariadb.com/v1alpha1
|
||||||
kind: MariaDB
|
kind: MariaDB
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}
|
name: {{ .Release.Name }}
|
||||||
@@ -35,8 +35,9 @@ spec:
|
|||||||
# automaticFailover: true
|
# automaticFailover: true
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
|
enabled: true
|
||||||
exporter:
|
exporter:
|
||||||
image: prom/mysqld-exporter:v0.14.0
|
image: prom/mysqld-exporter:v0.15.1
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 50m
|
cpu: 50m
|
||||||
@@ -53,14 +54,10 @@ spec:
|
|||||||
name: {{ .Release.Name }}-my-cnf
|
name: {{ .Release.Name }}-my-cnf
|
||||||
key: config
|
key: config
|
||||||
|
|
||||||
volumeClaimTemplate:
|
storage:
|
||||||
resources:
|
size: {{ .Values.size }}
|
||||||
requests:
|
resizeInUseVolumes: true
|
||||||
storage: {{ .Values.size }}
|
waitForVolumeResize: true
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{- if .Values.external }}
|
{{- if .Values.external }}
|
||||||
primaryService:
|
primaryService:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
{{ if not (eq $name "root") }}
|
{{ if not (eq $name "root") }}
|
||||||
{{ $dnsName := replace "_" "-" $name }}
|
{{ $dnsName := replace "_" "-" $name }}
|
||||||
---
|
---
|
||||||
apiVersion: mariadb.mmontes.io/v1alpha1
|
apiVersion: k8s.mariadb.com/v1alpha1
|
||||||
kind: User
|
kind: User
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $.Release.Name }}-{{ $dnsName }}
|
name: {{ $.Release.Name }}-{{ $dnsName }}
|
||||||
@@ -15,7 +15,7 @@ spec:
|
|||||||
key: {{ $name }}-password
|
key: {{ $name }}-password
|
||||||
maxUserConnections: {{ $u.maxUserConnections }}
|
maxUserConnections: {{ $u.maxUserConnections }}
|
||||||
---
|
---
|
||||||
apiVersion: mariadb.mmontes.io/v1alpha1
|
apiVersion: k8s.mariadb.com/v1alpha1
|
||||||
kind: Grant
|
kind: Grant
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $.Release.Name }}-{{ $dnsName }}
|
name: {{ $.Release.Name }}-{{ $dnsName }}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
http-cache 0.1.0 HEAD
|
http-cache 0.1.0 HEAD
|
||||||
kubernetes 0.1.0 HEAD
|
kubernetes 0.1.0 HEAD
|
||||||
mysql 0.1.0 HEAD
|
mysql 0.1.0 f642698
|
||||||
|
mysql 0.2.0 HEAD
|
||||||
postgres 0.1.0 HEAD
|
postgres 0.1.0 HEAD
|
||||||
rabbitmq 0.1.0 HEAD
|
rabbitmq 0.1.0 HEAD
|
||||||
redis 0.1.1 HEAD
|
redis 0.1.1 HEAD
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
|
VERSION := 0.2.0
|
||||||
|
|
||||||
gen: fix-chartnames
|
gen: fix-chartnames
|
||||||
|
|
||||||
fix-chartnames:
|
fix-chartnames:
|
||||||
find . -name Chart.yaml -maxdepth 2 | awk -F/ '{print $$2}' | while read i; do printf "name: cozy-%s\nversion: 1.0.0\n" "$$i" > "$$i/Chart.yaml"; done
|
find . -name Chart.yaml -maxdepth 2 | awk -F/ '{print $$2}' | while read i; do printf "name: cozy-%s\nversion: $(VERSION)\n" "$$i" > "$$i/Chart.yaml"; done
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-fluxcd
|
name: cozy-fluxcd
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-installer
|
name: cozy-installer
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"containerimage.config.digest": "sha256:ec8a4983a663f06a1503507482667a206e83e0d8d3663dff60ced9221855d6b0",
|
"containerimage.config.digest": "sha256:326a169fb5d4277a5c3b0359e0c885b31d1360b58475bbc316be1971c710cd8d",
|
||||||
"containerimage.digest": "sha256:abb7b2fbc1f143c922f2a35afc4423a74b2b63c0bddfe620750613ed835aa861"
|
"containerimage.digest": "sha256:a608bdb75b3e06f6365f5f0b3fea82ac93c564d11f316f17e3d46e8a497a321d"
|
||||||
}
|
}
|
||||||
@@ -1 +1 @@
|
|||||||
ghcr.io/aenix-io/cozystack/cozystack:v0.1.0
|
ghcr.io/aenix-io/cozystack/cozystack:v0.2.0
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"containerimage.config.digest": "sha256:b869a6324f9c0e6d1dd48eee67cbe3842ee14efd59bdde477736ad2f90568ff7",
|
"containerimage.config.digest": "sha256:dc584f743bb73e04dcbebca7ab4f602f2c067190fd9609c3fd84412e83c20445",
|
||||||
"containerimage.digest": "sha256:c30b237c5fa4fbbe47e1aba56e8f99569fe865620aa1953f31fc373794123cd7"
|
"containerimage.digest": "sha256:39ab0bf769b269a8082eeb31a9672e39caa61dd342ba2157b954c642f54a32ff"
|
||||||
}
|
}
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-platform
|
name: cozy-platform
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -14,6 +14,8 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/* Add extra namespaces */}}
|
||||||
|
{{- $_ := set $namespaces "cozy-public" false }}
|
||||||
{{- $_ := set $namespaces "cozy-fluxcd" false }}
|
{{- $_ := set $namespaces "cozy-fluxcd" false }}
|
||||||
|
|
||||||
{{- range $namespace, $privileged := $namespaces }}
|
{{- range $namespace, $privileged := $namespaces }}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
OUT=../../_out/repos/system
|
OUT=../../_out/repos/system
|
||||||
|
VERSION := 0.2.0
|
||||||
|
|
||||||
gen: fix-chartnames
|
gen: fix-chartnames
|
||||||
|
|
||||||
@@ -9,4 +10,4 @@ repo: fix-chartnames
|
|||||||
cd "$(OUT)" && helm repo index .
|
cd "$(OUT)" && helm repo index .
|
||||||
|
|
||||||
fix-chartnames:
|
fix-chartnames:
|
||||||
find . -name Chart.yaml -maxdepth 2 | awk -F/ '{print $$2}' | while read i; do printf "name: cozy-%s\nversion: 1.0.0\n" "$$i" > "$$i/Chart.yaml"; done
|
find . -name Chart.yaml -maxdepth 2 | awk -F/ '{print $$2}' | while read i; do printf "name: cozy-%s\nversion: $(VERSION)\n" "$$i" > "$$i/Chart.yaml"; done
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-capi-operator
|
name: cozy-capi-operator
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-capi-providers
|
name: cozy-capi-providers
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-cert-manager-issuers
|
name: cozy-cert-manager-issuers
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-cert-manager
|
name: cozy-cert-manager
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-cilium
|
name: cozy-cilium
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-dashboard
|
name: cozy-dashboard
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"containerimage.config.digest": "sha256:c4bfb560aaa8f9bae1da00fa4b49b3e1fc993606902e47c155238f2b002fadce",
|
"containerimage.config.digest": "sha256:89b67f6def744d8f497fd07e2743f1ff6f808983f4a5914cce62dbc8b045f9c4",
|
||||||
"containerimage.digest": "sha256:974cbeedb328e71aeb2b45970ebc1bcbbdcbdc0ed034a9d3d37924530f66b938"
|
"containerimage.digest": "sha256:76b47055b4559a20362248ba1f684d41d2299e752665f09d606d5d07fd7c8c32"
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"containerimage.config.digest": "sha256:992221768278b67a64b52d4e8bc847f18c8e4be746ac7197be9bbfd4fd092b24",
|
"containerimage.config.digest": "sha256:8e9b42041ea86be05df5106bd7d3f881dda920a34a5f95b30c6affa8575275cf",
|
||||||
"containerimage.digest": "sha256:6fb48ec9b50422bdd843584cd4db6ee07618ce535fde23903560d2529e4da31a"
|
"containerimage.digest": "sha256:0a41fe424f7a042f5442152c2fc196622fd49426c958ff17b15b5b9060c8d86b"
|
||||||
}
|
}
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-grafana-oncall
|
name: cozy-grafana-oncall
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-grafana-operator
|
name: cozy-grafana-operator
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-ingress-nginx
|
name: cozy-ingress-nginx
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-kamaji-etcd
|
name: cozy-kamaji-etcd
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-kamaji
|
name: cozy-kamaji
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-kubeovn
|
name: cozy-kubeovn
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-kubevirt-cdi-operator
|
name: cozy-kubevirt-cdi-operator
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-kubevirt-cdi
|
name: cozy-kubevirt-cdi
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-kubevirt-csi-node
|
name: cozy-kubevirt-csi-node
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-kubevirt-operator
|
name: cozy-kubevirt-operator
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-kubevirt
|
name: cozy-kubevirt
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-linstor
|
name: cozy-linstor
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-mariadb-operator
|
name: cozy-mariadb-operator
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-metallb
|
name: cozy-metallb
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-monitoring
|
name: cozy-monitoring
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-piraeus-operator
|
name: cozy-piraeus-operator
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-postgres-operator
|
name: cozy-postgres-operator
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-rabbitmq-operator
|
name: cozy-rabbitmq-operator
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-redis-operator
|
name: cozy-redis-operator
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-telepresence
|
name: cozy-telepresence
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
name: cozy-victoria-metrics-operator
|
name: cozy-victoria-metrics-operator
|
||||||
version: 1.0.0
|
version: 0.2.0
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
VERSION=2
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
BUNDLE=$(set -x; kubectl get configmap -n cozy-system cozystack -o 'go-template={{index .data "bundle-name"}}')
|
||||||
|
VERSION=2
|
||||||
|
|
||||||
run_migrations() {
|
run_migrations() {
|
||||||
if ! kubectl get configmap -n cozy-system cozystack-version; then
|
if ! kubectl get configmap -n cozy-system cozystack-version; then
|
||||||
kubectl create configmap -n cozy-system cozystack-version --from-literal=version="$VERSION" --dry-run=client -o yaml | kubectl create -f-
|
kubectl create configmap -n cozy-system cozystack-version --from-literal=version="$VERSION" --dry-run=client -o yaml | kubectl create -f-
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
current_version=$(kubectl get configmap -n cozy-system cozystack-version -o jsonpath='{.data.version}') || true
|
current_version=$(kubectl get configmap -n cozy-system cozystack-version -o jsonpath='{.data.version}') || true
|
||||||
until [ "$current_version" = "$VERSION" ]; do
|
until [ "$current_version" = "$VERSION" ]; do
|
||||||
@@ -20,11 +23,10 @@ flux_is_ok() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_basic_charts() {
|
install_basic_charts() {
|
||||||
bundle=$(kubectl get configmap -n cozy-system cozystack -o 'go-template={{index .data "bundle-name"}}')
|
if [ "$BUNDLE" = "paas-full" ] || [ "$BUNDLE" = "distro-full" ]; then
|
||||||
if [ "$bundle" = "full-paas" ] || [ "$bundle" = "full-distro" ]; then
|
|
||||||
make -C packages/system/cilium apply
|
make -C packages/system/cilium apply
|
||||||
fi
|
fi
|
||||||
if [ "$bundle" = "full-paas" ]; then
|
if [ "$BUNDLE" = "paas-full" ]; then
|
||||||
make -C packages/system/kubeovn apply
|
make -C packages/system/kubeovn apply
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,5 +14,12 @@ if kubectl get hr -n cozy-fluxcd cozy-fluxcd 2>/dev/null; then
|
|||||||
fi
|
fi
|
||||||
kubectl delete secret -n cozy-fluxcd -l name=fluxcd
|
kubectl delete secret -n cozy-fluxcd -l name=fluxcd
|
||||||
|
|
||||||
|
# Fix kubeovn crds
|
||||||
|
kubeovn_crds=$(kubectl get crd -o name | grep '\.kubeovn\.io$')
|
||||||
|
if [ -n "$kubeovn_crds" ]; then
|
||||||
|
kubectl annotate $kubeovn_crds meta.helm.sh/release-namespace=cozy-kubeovn meta.helm.sh/release-name=kubeovn
|
||||||
|
kubectl label $kubeovn_crds app.kubernetes.io/managed-by=Helm
|
||||||
|
fi
|
||||||
|
|
||||||
# Write version to cozystack-version config
|
# Write version to cozystack-version config
|
||||||
kubectl create configmap -n cozy-system cozystack-version --from-literal=version=2 --dry-run=client -o yaml | kubectl apply -f-
|
kubectl create configmap -n cozy-system cozystack-version --from-literal=version=2 --dry-run=client -o yaml | kubectl apply -f-
|
||||||
|
|||||||
Reference in New Issue
Block a user