-
Notifications
You must be signed in to change notification settings - Fork 4
/
builders.cue
42 lines (40 loc) · 1.11 KB
/
builders.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
37
38
39
40
41
42
package main
import (
"stakpak.dev/devx/v1/traits"
"stakpak.dev/devx/v1/transformers/kubernetes"
keda "stakpak.dev/devx/k8s/services/keda/transformers/kubernetes"
"stakpak.dev/devx/v2alpha1"
"stakpak.dev/devx/v1/transformers/terraform/helm"
"stakpak.dev/devx/v1/transformers/terraform/k8s"
rabbitmq "stakpak.dev/devx/k8s/services/rabbitmq/transformers/kubernetes"
)
builders: v2alpha1.#Environments & {
prod: {
flows: {
"ignore-k8s-cluster": pipeline: [{traits.#KubernetesCluster}]
"ignore-secrets": pipeline: [{traits.#Secret}]
"k8s/resources": pipeline: [
kubernetes.#AddKubernetesResources,
]
"terraform/helm": pipeline: [
k8s.#AddLocalHelmProvider,
helm.#AddHelmRelease,
]
"k8s/add-deployment": {
pipeline: [kubernetes.#AddDeployment]
}
"k8s/add-labels": pipeline: [kubernetes.#AddLabels & {
labels: [string]: string
}]
"k8s/add-annotations": pipeline: [kubernetes.#AddAnnotations & {
annotations: [string]: string
}]
"k8s/add-scaled": {
pipeline: [keda.#AddScaledObject]
}
"k8s/add-rabbitmq": {
pipeline: [rabbitmq.#AddCluster]
}
}
}
}