Skip to content

Commit

Permalink
fix: add cert-manager addon yaml (#5064)
Browse files Browse the repository at this point in the history
  • Loading branch information
huyongqii authored Sep 8, 2023
1 parent 305a019 commit 4a9821b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
4 changes: 1 addition & 3 deletions deploy/cert-manager/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ cert-manager github:
https://github.com/cert-manager/cert-manager

How to install:
helm install cert cert-manager
or
kbcli addom enable cert-manager
`kbcli addon enable cert-manager` or `helm install cert ./deploy/cert-manager`
30 changes: 30 additions & 0 deletions deploy/helm/templates/addons/cert-manager-addon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: extensions.kubeblocks.io/v1alpha1
kind: Addon
metadata:
name: cert-manager
labels:
{{- include "kubeblocks.labels" . | nindent 4 }}
"kubeblocks.io/provider": community
{{- if .Values.keepAddons }}
annotations:
helm.sh/resource-policy: keep
{{- end }}
spec:
description: 'cert-manager adds certificates and certificate issuers as resource types in Kubernetes clusters, and simplifies the process of obtaining, renewing and using those certificates. '

type: Helm

helm:
{{- include "kubeblocks.addonChartLocationURL" ( dict "name" "cert-manager" "version" (default .Chart.Version .Values.versionOverride) "values" .Values) | indent 4 }}
{{- include "kubeblocks.addonChartsImage" . | indent 4 }}

installOptions:
{{- if hasPrefix "oci://" .Values.addonChartLocationBase }}
version: {{ default .Chart.Version .Values.versionOverride }}
{{- end }}

installable:
autoInstall: false

defaultInstallValues:
- enabled: true
2 changes: 1 addition & 1 deletion deploy/helm/templates/addons/neon-addon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
helm.sh/resource-policy: keep
{{- end }}
spec:
description: 'Neon is a fully managed serverless PostgreSQL with a generous free tier. Neon separates storage and compute and offers modern developer features such as serverless, branching, bottomless storage, and more. '
description: 'Neon is a fully managed serverless PostgreSQL with a generous free tier. Neon separates storage and compute and offers modern developer features such as serverless, branching, bottomless storage, and more. Before deploying neon, you must execute `kbcli addon enable cert-manager` command to deploy cert-manager.'

type: Helm

Expand Down

0 comments on commit 4a9821b

Please sign in to comment.