Skip to content

Commit

Permalink
feat: copy regions chart
Browse files Browse the repository at this point in the history
  • Loading branch information
David Ragot committed Oct 14, 2024
1 parent ca3369b commit ecd2448
Show file tree
Hide file tree
Showing 11 changed files with 638 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

| Readme | Chart Version | App Version | Description | Hub |
|--------|---------------|-------------|-------------|-----|
| [Agent](./charts/agent/README.md) | v2.1.0-beta.1 |v2.1.0-beta.1 | Formance Membership Agent Helm Chart | [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/agent)](https://artifacthub.io/packages/search?repo=agent) |
| [Agent](./charts/agent/README.md) | v2.1.0 |v2.1.0 | Formance Membership Agent Helm Chart | [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/agent)](https://artifacthub.io/packages/search?repo=agent) |
| [Cloudprem](./charts/cloudprem/README.md) | v2.0.0-beta.11 |v0.35.3 | Formance control-plane | [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/cloudprem)](https://artifacthub.io/packages/search?repo=cloudprem) |
| [Console](./charts/console/README.md) | v1.0.0-beta.1 |9431e5f4b4b1a03cb8f02ef1676507b9c023f2bb | Formance Console | [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/console)](https://artifacthub.io/packages/search?repo=console) |
| [Core](./charts/core/README.md) | v1.0.0-beta.1 |latest | Formance Core Library | [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/core)](https://artifacthub.io/packages/search?repo=core) |
| [Demo](./charts/demo/README.md) | 2.0.0 |latest | Formance Private Regions Demo | [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/demo)](https://artifacthub.io/packages/search?repo=demo) |
| [Membership](./charts/membership/README.md) | v1.0.0-beta.1 |v0.35.3 | Formance Membership API. Manage stacks, organizations, regions, invitations, users, roles, and permissions. | [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/membership)](https://artifacthub.io/packages/search?repo=membership) |
| [Portal](./charts/portal/README.md) | v1.0.0-beta.1 |764bb7e199e1d2882e4d5cd205eada0ef0abc283 | Formance Portal | [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/portal)](https://artifacthub.io/packages/search?repo=portal) |
| [Regions](./charts/regions/README.md) | v2.1.0 |latest | Formance Private Regions Helm Chart | [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/regions)](https://artifacthub.io/packages/search?repo=regions) |
| [Stargate](./charts/stargate/README.md) | 0.3.0 |latest | Formance Stargate gRPC Gateway | [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/stargate)](https://artifacthub.io/packages/search?repo=stargate) |

## How to contribute
Expand Down
1 change: 0 additions & 1 deletion charts/agent/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion charts/agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: agent
description: Formance Membership Agent Helm Chart
home: "https://formance.com"
sources:
- "https://github.com/formancehq/membership-api"
- "https://github.com/formancehq/agent"
maintainers:
- name: "Formance Team"
email: "[email protected]"
Expand Down
4 changes: 2 additions & 2 deletions charts/agent/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# agent

![Version: v2.1.0-beta.1](https://img.shields.io/badge/Version-v2.1.0--beta.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.1.0-beta.1](https://img.shields.io/badge/AppVersion-v2.1.0--beta.1-informational?style=flat-square)
![Version: v2.1.0](https://img.shields.io/badge/Version-v2.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.1.0](https://img.shields.io/badge/AppVersion-v2.1.0-informational?style=flat-square)

Formance Membership Agent Helm Chart

Expand All @@ -14,7 +14,7 @@ Formance Membership Agent Helm Chart

## Source Code

* <https://github.com/formancehq/membership-api>
* <https://github.com/formancehq/agent>

## Values

Expand Down
9 changes: 9 additions & 0 deletions charts/regions/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies:
- name: agent
repository: file://../agent
version: v2.1.0
- name: operator
repository: oci://ghcr.io/formancehq/helm
version: v2.0.19
digest: sha256:49f9c10fd891c344637f7f54a911e6b111b91cc4255ec6e95d3c74a1463b1df8
generated: "2024-10-14T10:52:32.636937553Z"
25 changes: 25 additions & 0 deletions charts/regions/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v2
name: regions
description: Formance Private Regions Helm Chart
home: "https://formance.com"
sources:
- "https://github.com/formancehq/operator"
- "https://github.com/formancehq/agent"
maintainers:
- name: "Formance Team"
email: "[email protected]"
icon: "https://avatars.githubusercontent.com/u/84325077?s=200&v=4"

type: application
version: "v2.1.0"
appVersion: "latest"

dependencies:
- name: agent
version: v2.1.0
repository: "file://../agent"
condition: agent.enabled
- name: operator
version: v2.0.19
repository: "oci://ghcr.io/formancehq/helm"
condition: operator.enabled
41 changes: 41 additions & 0 deletions charts/regions/Earthfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
VERSION --wildcard-builds --wildcard-copy 0.8

IMPORT ../ AS charts
IMPORT ../agent AS agent

schema:
FROM charts+schema-base
WORKDIR /src
DO --pass-args charts+SCHEMA

readme:
FROM charts+readme-base
WORKDIR /src/agent/
COPY --dir (agent+dependencies/*) .
WORKDIR /src/regions
COPY --dir (+sources/*) .
DO --pass-args charts+README_GENERATOR

sources:
DO --pass-args charts+BASE
WORKDIR /src/regions
COPY (+schema/*) .
DO --pass-args charts+SOURCES

dependencies:
FROM +sources
WORKDIR /src/agent/
COPY --dir (agent+dependencies/*) .
WORKDIR /src/regions
DO --pass-args charts+DEPENDENCIES

validate:
FROM +dependencies
WORKDIR /src/regions
COPY (+readme/*) .
DO --pass-args charts+VALIDATE

package:
FROM +validate
WORKDIR /src/regions
DO --pass-args charts+PACKAGE
134 changes: 134 additions & 0 deletions charts/regions/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
# regions

![Version: v2.1.0](https://img.shields.io/badge/Version-v2.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)

Formance Private Regions Helm Chart

**Homepage:** <https://formance.com>

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| Formance Team | <[email protected]> | |

## Source Code

* <https://github.com/formancehq/operator>
* <https://github.com/formancehq/agent>

## Requirements

| Repository | Name | Version |
|------------|------|---------|
| file://../agent | agent | v2.1.0 |
| oci://ghcr.io/formancehq/helm | operator | v2.0.19 |

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| global.monitoring.logs.format | string | `"json"` | |
| global.serviceName | string | `"agent"` | |
| agent.agent.authentication.clientID | string | `"REGION_ID"` | |
| agent.agent.authentication.clientSecret | string | `""` | |
| agent.agent.authentication.issuer | string | `"https://app.formance.cloud/api"` | |
| agent.agent.authentication.mode | string | `"bearer"` | |
| agent.agent.baseUrl | string | `"https://sandbox.formance.cloud"` | |
| agent.agent.id | string | `"aws-eu-west-1-sandbox"` | |
| agent.enabled | bool | `false` | |
| agent.image.tag | string | `""` | |
| agent.server.address | string | `"app.formance.cloud:443"` | |
| agent.server.tls.enabled | bool | `true` | |
| agent.server.tls.insecureSkipVerify | bool | `true` | |
| operator.enabled | bool | `true` | |
| operator.fullnameOverride | string | `"operator"` | |
| operator.image.repository | string | `"ghcr.io/formancehq/operator"` | |
| operator.image.tag | string | `""` | |
| operator.nameOverride | string | `"operator"` | |
| operator.operator-crds.create | bool | `true` | |
| operator.operator.disableWebhooks | bool | `false` | |
| operator.operator.enableLeaderElection | bool | `true` | |
| operator.operator.env | string | `"private"` | |
| operator.operator.licence.create | bool | `true` | |
| operator.operator.licence.issuer | string | `""` | |
| operator.operator.licence.secretName | string | `""` | |
| operator.operator.licence.token | string | `""` | |
| operator.operator.metricsAddr | string | `":8080"` | |
| operator.operator.probeAddr | string | `":8081"` | |
| operator.operator.region | string | `"private"` | |
| versions.create | bool | `true` | |
| versions.files."v1.0".auth | string | `"v0.4.4"` | |
| versions.files."v1.0".gateway | string | `"v2.0.17"` | |
| versions.files."v1.0".ledger | string | `"v1.10.14"` | |
| versions.files."v1.0".operator-utils | string | `"v2.0.17"` | |
| versions.files."v1.0".orchestration | string | `"v0.2.1"` | |
| versions.files."v1.0".payments | string | `"v1.0.0-rc.5"` | |
| versions.files."v1.0".reconciliation | string | `"v0.1.0"` | |
| versions.files."v1.0".search | string | `"v0.10.0"` | |
| versions.files."v1.0".stargate | string | `"v0.1.10"` | |
| versions.files."v1.0".wallets | string | `"v0.4.6"` | |
| versions.files."v1.0".webhooks | string | `"v2.0.17"` | |
| versions.files."v2.0".auth | string | `"v2.0.17"` | |
| versions.files."v2.0".gateway | string | `"v2.0.17"` | |
| versions.files."v2.0".ledger | string | `"v2.0.17"` | |
| versions.files."v2.0".operator-utils | string | `"v2.0.17"` | |
| versions.files."v2.0".orchestration | string | `"v2.0.17"` | |
| versions.files."v2.0".payments | string | `"v2.0.17"` | |
| versions.files."v2.0".reconciliation | string | `"v2.0.17"` | |
| versions.files."v2.0".search | string | `"v2.0.17"` | |
| versions.files."v2.0".stargate | string | `"v2.0.17"` | |
| versions.files."v2.0".wallets | string | `"v2.0.17"` | |
| versions.files."v2.0".webhooks | string | `"v2.0.17"` | |
| versions.files."v2.1".auth | string | `"v2.1.0-beta.1"` | |
| versions.files."v2.1".gateway | string | `"v2.1.0-beta.1"` | |
| versions.files."v2.1".ledger | string | `"v2.1.0-beta.1"` | |
| versions.files."v2.1".operator-utils | string | `"v2.1.0-beta.1"` | |
| versions.files."v2.1".orchestration | string | `"v2.1.0-beta.1"` | |
| versions.files."v2.1".payments | string | `"v2.1.0-beta.1"` | |
| versions.files."v2.1".reconciliation | string | `"v2.1.0-beta.1"` | |
| versions.files."v2.1".search | string | `"v2.1.0-beta.1"` | |
| versions.files."v2.1".stargate | string | `"v2.1.0-beta.1"` | |
| versions.files."v2.1".wallets | string | `"v2.1.0-beta.1"` | |
| versions.files."v2.1".webhooks | string | `"v2.1.0-beta.1"` | |
| versions.files.default.auth | string | `"v0.4.4"` | |
| versions.files.default.gateway | string | `"v2.0.17"` | |
| versions.files.default.ledger | string | `"v1.10.14"` | |
| versions.files.default.operator-utils | string | `"v2.0.17"` | |
| versions.files.default.orchestration | string | `"v0.2.1"` | |
| versions.files.default.payments | string | `"v1.0.0-rc.5"` | |
| versions.files.default.reconciliation | string | `"v0.1.0"` | |
| versions.files.default.search | string | `"v0.10.0"` | |
| versions.files.default.stargate | string | `"v0.1.10"` | |
| versions.files.default.wallets | string | `"v0.4.6"` | |
| versions.files.default.webhooks | string | `"v2.0.17"` | |
| agent.affinity | object | `{}` | |
| agent.agent.authentication.clientID | string | `""` | |
| agent.agent.authentication.clientSecret | string | `""` | |
| agent.agent.authentication.issuer | string | `"https://app.formance.cloud/api"` | |
| agent.agent.authentication.mode | string | `"bearer"` | |
| agent.agent.baseUrl | string | `""` | |
| agent.agent.id | string | `"b7549a16-f74a-4815-ab1e-bb8ef1c3833b"` | |
| agent.agent.production | bool | `false` | |
| agent.config.monitoring.serviceName | string | `"agent"` | |
| agent.debug | bool | `false` | |
| agent.fullnameOverride | string | `""` | |
| agent.image.pullPolicy | string | `"IfNotPresent"` | |
| agent.image.repository | string | `"ghcr.io/formancehq/agent"` | |
| agent.image.tag | string | `""` | |
| agent.imagePullSecrets | list | `[]` | |
| agent.nameOverride | string | `""` | |
| agent.nodeSelector | object | `{}` | |
| agent.podAnnotations | object | `{}` | |
| agent.podSecurityContext | object | `{}` | |
| agent.resources.limits.cpu | string | `"100m"` | |
| agent.resources.limits.memory | string | `"128Mi"` | |
| agent.resources.requests.cpu | string | `"100m"` | |
| agent.resources.requests.memory | string | `"128Mi"` | |
| agent.securityContext | object | `{}` | |
| agent.server.address | string | `"app.formance.cloud:443"` | |
| agent.server.tls.enabled | bool | `true` | |
| agent.server.tls.insecureSkipVerify | bool | `true` | |
| agent.serviceAccount.annotations | object | `{}` | |
| agent.tolerations | list | `[]` | |

13 changes: 13 additions & 0 deletions charts/regions/templates/versions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{ if and .Values.versions.create }}
{{- range $key, $version := .Values.versions.files }}
apiVersion: formance.com/v1beta1
kind: Versions
metadata:
name: {{ $key }}
spec:
{{- range $k, $v := $version }}
{{ $k }}: {{ $v }}
{{- end }}
---
{{- end }}
{{- end }}
Loading

0 comments on commit ecd2448

Please sign in to comment.