Migrate the cert-manager #4

Merged
allanger merged 2 commits from refs/pull/4/head into main 2023-02-18 20:41:34 +00:00
4 changed files with 18 additions and 0 deletions

3
bin/migrate.sh Executable file
View File

@ -0,0 +1,3 @@
#kubectl get all,cm,secret,ing,role,clusterrole,rolebindings,clusterrolebindings -l app.kubernetes.io/managed-by=Helm -l app.kubernetes.io/instance=cert-manager -A --no-headers --output custom-columns="POD-NAME":.kind,"NAMESPACE":.metadata.name | while read -r var1 var2; do kubectl annotate $var1 $var2 "meta.helm.sh/release-namespace"="cert-manager" "meta.helm.sh/release-name"="cert-manager" --overwrite; done
kubectl get ValidatingWebhookConfiguration,all,cm,secret,ing,role,clusterrole,rolebindings,clusterrolebindings,MutatingWebhookConfiguration -l app.kubernetes.io/managed-by=Helm -l app.kubernetes.io/instance=cert-manager -A --no-headers --output custom-columns="POD-NAME":.kind,"NAMESPACE":.metadata.name,"ns":.metadata.namespace | while read -r var1 var2 var3; do kubectl annotate $var1 $var2 -n $var3 "meta.helm.sh/release-namespace"="cert-manager" "meta.helm.sh/release-name"="cert-manager"; done

View File

@ -11,5 +11,10 @@ releases:
namespace: kube-system namespace: kube-system
createNamespace: false createNamespace: false
- <<: *cert-manager
installed: true
namespace: cert-manager
createNamespace: false
helmfiles: helmfiles:
- path: {{.Environment.Name }}/helmfile.yaml - path: {{.Environment.Name }}/helmfile.yaml

View File

@ -30,6 +30,13 @@ templates:
values: values:
- common/values.{{ .Release.Name }}.yaml - common/values.{{ .Release.Name }}.yaml
cert-manager: &cert-manager
name: cert-manager
chart: jetstack/cert-manager
version: 1.10.1
inherit:
- template: crd-management-hook
openvpn: &openvpn openvpn: &openvpn
name: openvpn name: openvpn
chart: allanger-charts/openvpn chart: allanger-charts/openvpn

View File

@ -4,3 +4,6 @@ repositories:
url: https://kubernetes-sigs.github.io/metrics-server/ url: https://kubernetes-sigs.github.io/metrics-server/
- name: allanger-charts - name: allanger-charts
url: https://allanger.github.io/allanger-charts url: https://allanger.github.io/allanger-charts
- name: jetstack
url: https://charts.jetstack.io