mirror of
https://github.com/holos-run/holos.git
synced 2026-03-20 17:25:01 +00:00
This patch writes a Flux Kustomization to apply the api objects rendered
by a component instance.
❯ holos render --log-format=json --log-level=debug --cluster-name core2 ./docs/examples/platforms/reference/projects/secrets/components/namespaces/ 2> >(./scripts/msgs)
config.go:91 finalized config from flags
builder.go:129 cue export --out yaml -t cluster=core2 ./platforms/reference/projects/secrets/components/namespaces
builder.go:134 configured cue tags: [cluster=core2]
builder.go:94 wrote deploy/clusters/core2/components/prod-secrets-namespaces/prod-secrets-namespaces.gen.yaml
builder.go:94 wrote deploy/clusters/core2/holos/components/prod-secrets-namespaces-kustomization.gen.yaml
render.go:39 rendered prod-secrets-namespaces
```yaml
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: prod-secrets-namespaces
namespace: flux-system
spec:
interval: 30m0s
path: deploy/clusters/core2/components/prod-secrets-namespaces
prune: true
retryInterval: 2m0s
sourceRef:
kind: GitRepository
name: flux-system
timeout: 3m0s
wait: true
```