-
Notifications
You must be signed in to change notification settings - Fork 6
/
clusters.cue
36 lines (32 loc) · 783 Bytes
/
clusters.cue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package bootstrap
import (
"github.com/fluxcd/cues/pkg/cluster"
)
// Clusters holds the list of clusters to be bootstraped.
clusters: [...cluster.#Bootstrap]
clusters: [staging, production]
staging: cluster.#Bootstrap & {
name: "staging"
git: {
// This repository must exists.
url: "https://github.com/org/kube-fleet.git"
// This branch will be created if it doesn't exists.
branch: "main"
path: "./clusters/\(name)"
}
kubeconfig: context: "kind-\(name)"
flux: {
namespace: "flux-system"
version: "v0.28.5"
components: cluster.Components.All
}
}
production: cluster.#Bootstrap & {
name: "production"
git: {
url: "https://github.com/org/kube-fleet.git"
branch: "main"
}
kubeconfig: context: "kind-\(name)"
flux: version: "v0.29.0"
}