prefapp / daggerverse

Prefapp Dagger modules repository
0 stars 0 forks source link

Hydrate Kubernetes module #44

Open tonirvega opened 1 day ago

tonirvega commented 1 day ago

Motivation

We need to implement a new module in order to render an umbrella or simple chart to a wet repository target.

Requirements

Main interface

Final render structure

.
├── <apps>/
│   └── <cluster>/
│       └── <tenant>/
│               └── <env>/
│                   ├── Artifact.a.yaml
│                   └── ... 
└── <sys_services>/
    └── <cluster>/
        └── <app>/
            ├── Artifact.a.yaml
            └── ... 
tonirvega commented 1 day ago
# corpme-ovac-dev.yaml
---
name: ovac
chart:
  name: my-umbrella
  version: 1.0.0
repository: "azure.com/charts"
platform: "corpme-pro-aks"
type: kubernetes
source: Remote
valueFiles:
  - github.com/mycode-repo-a
  - github.com/mycode-repo-b
  - github.com/mycode-repo-c
  - github.com/mycode-repo-d
---

.github/
  deployments/
    corpme-pro-aks/
      tenant/
        ovac/
          dev/
            values.yaml
# state-ovac
cluster/
  tenant/
    env/
      values.yaml 

# state-aks
  cluster/
    namespaces/
    networkpolicies/
    app/
      values.yaml