Create wrraper for cert-manager

This commit is contained in:
dvirlabs 2026-03-21 20:45:50 +02:00
parent fd1978c0ea
commit 76eead2f33
5 changed files with 11 additions and 1768 deletions

View File

@ -1,25 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cert-manager
namespace: argocd
labels:
env: infra
spec:
project: infra
source:
repoURL: ssh://git@gitea-ssh.dev-tools.svc.cluster.local:2222/dvirlabs/infra.git
targetRevision: HEAD
path: charts/cert-manager
helm:
valueFiles:
- ../../manifests/cert-manager/values.yaml
destination:
server: https://kubernetes.default.svc
namespace: cert-manager
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true

View File

@ -6,11 +6,10 @@ version: 1.0.0
appVersion: "v1.20.0" appVersion: "v1.20.0"
kubeVersion: '>= 1.22.0-0' kubeVersion: '>= 1.22.0-0'
# Dependencies - Local cert-manager chart # Dependencies - Embedded cert-manager chart (in charts/ subdirectory)
dependencies: dependencies:
- name: cert-manager - name: cert-manager
version: "v1.20.0" version: "v1.20.0"
repository: "file://../cert-manager"
alias: certManager alias: certManager
condition: certManager.enabled condition: certManager.enabled

View File

@ -15,7 +15,7 @@ This chart provides a production-ready cert-manager deployment by:
``` ```
cert-manager-stack (wrapper chart) cert-manager-stack (wrapper chart)
├── Dependency: cert-manager (local chart from ../cert-manager) ├── Dependency: cert-manager (embedded in charts/cert-manager/)
│ ├── CRDs (Certificate, ClusterIssuer, etc.) │ ├── CRDs (Certificate, ClusterIssuer, etc.)
│ ├── cert-manager controller │ ├── cert-manager controller
│ ├── cert-manager webhook │ ├── cert-manager webhook
@ -31,6 +31,11 @@ cert-manager-stack (wrapper chart)
charts/cert-manager-stack/ charts/cert-manager-stack/
├── Chart.yaml # Wrapper chart definition ├── Chart.yaml # Wrapper chart definition
├── values.yaml # Default values (DO NOT EDIT) ├── values.yaml # Default values (DO NOT EDIT)
├── charts/ # Embedded dependencies
│ └── cert-manager/ # cert-manager chart
│ ├── Chart.yaml
│ ├── values.yaml
│ └── templates/
├── templates/ ├── templates/
│ ├── _helpers.tpl # Template helpers │ ├── _helpers.tpl # Template helpers
│ ├── cloudflare-api-token-secret.yaml # Cloudflare API Secret │ ├── cloudflare-api-token-secret.yaml # Cloudflare API Secret
@ -107,7 +112,7 @@ spec:
ArgoCD will: ArgoCD will:
1. Read the wrapper chart from `charts/cert-manager-stack/` 1. Read the wrapper chart from `charts/cert-manager-stack/`
2. Load cert-manager dependency from local `charts/cert-manager/` 2. Load cert-manager dependency from embedded `charts/cert-manager-stack/charts/cert-manager/`
3. Apply values from `manifests/cert-manager-stack/values.yaml` 3. Apply values from `manifests/cert-manager-stack/values.yaml`
4. Deploy everything as a unified Helm release 4. Deploy everything as a unified Helm release
@ -139,14 +144,14 @@ helm install cert-manager-stack . \
To upgrade to a newer cert-manager version: To upgrade to a newer cert-manager version:
1. Update the local cert-manager chart in `charts/cert-manager/` 1. Replace the embedded cert-manager chart in `charts/cert-manager-stack/charts/cert-manager/`
2. Edit `charts/cert-manager-stack/Chart.yaml` 2. Edit `charts/cert-manager-stack/Chart.yaml`
3. Update the dependency version to match: 3. Update the dependency version to match:
```yaml ```yaml
dependencies: dependencies:
- name: cert-manager - name: cert-manager
version: "v1.21.0" # Update this to match local chart version: "v1.21.0" # Update this to match embedded chart version
repository: "file://../cert-manager" alias: certManager
``` ```
4. Commit and push 4. Commit and push
5. ArgoCD will handle the upgrade 5. ArgoCD will handle the upgrade

View File

@ -1,26 +0,0 @@
annotations:
artifacthub.io/category: security
artifacthub.io/license: Apache-2.0
artifacthub.io/prerelease: "false"
artifacthub.io/signKey: |
fingerprint: 1020CF3C033D4F35BAE1C19E1226061C665DF13E
url: https://cert-manager.io/public-keys/cert-manager-keyring-2021-09-20-1020CF3C033D4F35BAE1C19E1226061C665DF13E.gpg
apiVersion: v2
appVersion: v1.20.0
description: A Helm chart for cert-manager
home: https://cert-manager.io
icon: https://raw.githubusercontent.com/cert-manager/community/4d35a69437d21b76322157e6284be4cd64e6d2b7/logo/logo-small.png
keywords:
- cert-manager
- kube-lego
- letsencrypt
- tls
kubeVersion: '>= 1.22.0-0'
maintainers:
- email: cert-manager-maintainers@googlegroups.com
name: cert-manager-maintainers
url: https://cert-manager.io
name: cert-manager
sources:
- https://github.com/cert-manager/cert-manager
version: v1.20.0

File diff suppressed because it is too large Load Diff