Skip to content

Commit

Permalink
add meta-cert-manager chart v1.14.5
Browse files Browse the repository at this point in the history
  • Loading branch information
vladarts committed May 22, 2024
1 parent ecad59c commit 6fc0c0a
Show file tree
Hide file tree
Showing 14 changed files with 5,132 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/meta-cert-manager/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
config/*
values.schema.full.json
values.example.yaml
6 changes: 6 additions & 0 deletions charts/meta-cert-manager/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: metachart
description: Metachart born Helm Chart for cert-manager resources
type: application
version: "1.14.5"
appVersion: none
47 changes: 47 additions & 0 deletions charts/meta-cert-manager/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# meta-cert-manager

`meta-cert-manager` is a [metachart](https://github.com/iponweb/metachart)
born [Helm](https://helm.sh/) Chart for
[cert-manager](https://github.com/cert-manager/cert-manager)
operator custom resources

## Quickstart

Add the [Helm](https://helm.sh/) repository:

```shell
helm repo add iponweb https://iponweb.github.io/charts/
```

Add the [values.schema.json](values.schema.json) file to your favourite IDE
to enable values file autocompletion and validation.
Examples:
- [IntelliJ IDEA](https://www.jetbrains.com/help/idea/json.html#ws_json_schema_add_custom)
- [Visual Studio Code](https://code.visualstudio.com/docs/languages/json#_json-schemas-and-settings)
- [Sublime Text](https://github.com/sublimelsp/LSP-json)

Define `values.yaml` with required resources and install the release:

```shell
helm install release-name -f values.yaml iponweb/meta-cert-manager
```

See also [values.example.yaml](values.example.yaml)

## Documentation

For complete resources list support see [resources](docs/resources.md).

See the `metachart` [Documentation](https://github.com/iponweb/metachart/docs)
for more details.

## Requirements

Minimal supported [Helm](https://helm.sh/) version is `v3.2.0`.

## Versioning

Chart major and minor version parts follow
[cert-manager](https://github.com/cert-manager/cert-manager)
versions which has been used for the chart generation. Patch component is used
for charts own changes/fixes.
26 changes: 26 additions & 0 deletions charts/meta-cert-manager/config/resources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
resources:
challenges:
apiVersion: acme.cert-manager.io/v1
kind: Challenge
jsonSchemaRef: metachart.api.io.cert-manager.pkg.apis.acme.v1.Challenge
orders:
apiVersion: acme.cert-manager.io/v1
kind: Order
jsonSchemaRef: metachart.api.io.cert-manager.pkg.apis.acme.v1.Order

certificaterequests:
apiVersion: cert-manager.io/v1
kind: CertificateRequest
jsonSchemaRef: metachart.api.io.cert-manager.pkg.apis.certmanager.v1.CertificateRequest
certificates:
apiVersion: cert-manager.io/v1
kind: Certificate
jsonSchemaRef: metachart.api.io.cert-manager.pkg.apis.certmanager.v1.Certificate
clusterissuers:
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
jsonSchemaRef: metachart.api.io.cert-manager.pkg.apis.certmanager.v1.ClusterIssuer
issuers:
apiVersion: cert-manager.io/v1
kind: Issuer
jsonSchemaRef: metachart.api.io.cert-manager.pkg.apis.certmanager.v1.Issuer
56 changes: 56 additions & 0 deletions charts/meta-cert-manager/config/schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
.defaults:
disallowed: &defaultDisallowed
- status
- kind
- apiVersion
properties: &defaultProperties
enabled: metachart.interface.boolean
metadata: metachart.api.meta.v1.ObjectMeta
rootKey: &defaultRootKey
disallowed: *defaultDisallowed
properties: *defaultProperties

definitions:
- https://raw.githubusercontent.com/iponweb/schemas/main/json-schemas/kubernetes/v1.29.3-strict/_definitions.json
- https://raw.githubusercontent.com/iponweb/schemas/main/json-schemas/cert-manager/v1.14.5-strict/_definitions.json

rules:
#: Common
#:
#: meta.v1.ObjectMeta
- target: metachart.api.meta.v1.ObjectMeta
source: io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta
allowed:
- annotations
- labels
- finalizers
- namespace
- name
properties:
checksums: metachart.interface.checksums

#: acme.cert-manager.io/v1
- target: metachart.api.io.cert-manager.pkg.apis.acme.v1.Challenge
source: io.cert-manager.pkg.apis.acme.v1.Challenge
<<: *defaultRootKey

- target: metachart.api.io.cert-manager.pkg.apis.acme.v1.Order
source: io.cert-manager.pkg.apis.acme.v1.Order
<<: *defaultRootKey

#: cert-manager.io/v1
- target: metachart.api.io.cert-manager.pkg.apis.certmanager.v1.CertificateRequest
source: io.cert-manager.pkg.apis.certmanager.v1.CertificateRequest
<<: *defaultRootKey

- target: metachart.api.io.cert-manager.pkg.apis.certmanager.v1.Certificate
source: io.cert-manager.pkg.apis.certmanager.v1.Certificate
<<: *defaultRootKey

- target: metachart.api.io.cert-manager.pkg.apis.certmanager.v1.ClusterIssuer
source: io.cert-manager.pkg.apis.certmanager.v1.ClusterIssuer
<<: *defaultRootKey

- target: metachart.api.io.cert-manager.pkg.apis.certmanager.v1.Issuer
source: io.cert-manager.pkg.apis.certmanager.v1.Issuer
<<: *defaultRootKey
5 changes: 5 additions & 0 deletions charts/meta-cert-manager/config/values.schema.custom.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"definitions": {}
}
20 changes: 20 additions & 0 deletions charts/meta-cert-manager/docs/resources.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Resources

A set of resources supported by the chart

## acme.cert-manager.io/v1

| Values file key | Kind | Preprocessor |
| --------------- | ---- | ------------ |
| challenges | Challenge | - |
| orders | Order | - |


## cert-manager.io/v1

| Values file key | Kind | Preprocessor |
| --------------- | ---- | ------------ |
| certificaterequests | CertificateRequest | - |
| certificates | Certificate | - |
| clusterissuers | ClusterIssuer | - |
| issuers | Issuer | - |
1 change: 1 addition & 0 deletions charts/meta-cert-manager/templates/_custom.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{/* Place user-provided templates there */}}
Loading

0 comments on commit 6fc0c0a

Please sign in to comment.