Skip to content

Commit

Permalink
add charts
Browse files Browse the repository at this point in the history
  • Loading branch information
vladarts committed Dec 12, 2022
1 parent 73e0966 commit c9e9c24
Show file tree
Hide file tree
Showing 87 changed files with 47,995 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/meta-external-secrets/.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-external-secrets/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: meta-external-secrets
description: Metachart born Helm Chart for external-secrets resources
type: application
version: "0.6.1"
appVersion: none
47 changes: 47 additions & 0 deletions charts/meta-external-secrets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# meta-external-secrets

`meta-external-secrets` is a [metachart](https://github.com/iponweb/metachart)
born [Helm](https://helm.sh/) Chart for
[external-secrets](https://github.com/external-secrets/external-secrets)
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-external-secrets
```

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
[external-secrets](https://github.com/external-secrets/external-secrets)
versions which has been used for the chart generation. Patch component is used
for charts own changes/fixes.
20 changes: 20 additions & 0 deletions charts/meta-external-secrets/config/resources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
resources:
externalsecrets:
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
jsonSchemaRef: metachart.api.io.external-secrets.apis.externalsecrets.v1beta1.ExternalSecret

clusterexternalsecrets:
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
jsonSchemaRef: metachart.api.io.external-secrets.apis.externalsecrets.v1beta1.ClusterExternalSecret

secretstores:
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
jsonSchemaRef: metachart.api.io.external-secrets.apis.externalsecrets.v1beta1.SecretStore

clustersecretstores:
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
jsonSchemaRef: metachart.api.io.external-secrets.apis.externalsecrets.v1beta1.ClusterSecretStore
42 changes: 42 additions & 0 deletions charts/meta-external-secrets/config/schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.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.25.2-strict/_definitions.json
- https://raw.githubusercontent.com/iponweb/schemas/main/json-schemas/external-secrets/v0.6.1-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

#: external-secrets.io/v1beta1
- target: metachart.api.io.external-secrets.apis.externalsecrets.v1beta1.ExternalSecret
source: io.external-secrets.apis.externalsecrets.v1beta1.ExternalSecret
<<: *defaultRootKey
- target: metachart.api.io.external-secrets.apis.externalsecrets.v1beta1.ClusterExternalSecret
source: io.external-secrets.apis.externalsecrets.v1beta1.ClusterExternalSecret
<<: *defaultRootKey
- target: metachart.api.io.external-secrets.apis.externalsecrets.v1beta1.SecretStore
source: io.external-secrets.apis.externalsecrets.v1beta1.SecretStore
<<: *defaultRootKey
- target: metachart.api.io.external-secrets.apis.externalsecrets.v1beta1.ClusterSecretStore
source: io.external-secrets.apis.externalsecrets.v1beta1.ClusterSecretStore
<<: *defaultRootKey
39 changes: 39 additions & 0 deletions charts/meta-external-secrets/config/values.schema.custom.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"definitions": {
"metachart.api.core.v1.ContainerList": {
"type": "object",
"patternProperties": {
"^[a-z][0-9a-z]*(-[0-9a-z]+)*$": {
"$ref": "#/definitions/metachart.api.core.v1.Container"
}
},
"additionalProperties": false
},
"metachart.api.internal.Image": {
"type": "object",
"properties": {
"repository": {
"type": "string"
},
"tag": {
"type": "string"
},
"pullPolicy": {
"type": "string",
"enum": [
"Always",
"IfNotPresent"
]
}
},
"required": [
"repository",
"tag",
"pullPolicy"
],
"additionalProperties": false
}
}
}
12 changes: 12 additions & 0 deletions charts/meta-external-secrets/docs/resources.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Resources

A set of resources supported by the chart

## external-secrets.io/v1beta1

| Values file key | Kind | Preprocessor |
| --------------- | ---- | ------------ |
| clusterexternalsecrets | ExternalSecret | - |
| clustersecretstores | ExternalSecret | - |
| externalsecrets | ExternalSecret | - |
| secretstores | ExternalSecret | - |
Empty file.
Loading

0 comments on commit c9e9c24

Please sign in to comment.