This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
bundles.go
54 lines (46 loc) · 2.09 KB
/
bundles.go
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
43
44
45
46
47
48
49
50
51
52
53
54
package bundles
import (
ambassadorinfo "github.com/caos/orbos/internal/operator/boom/application/applications/ambassador/info"
argocdinfo "github.com/caos/orbos/internal/operator/boom/application/applications/argocd/info"
grafanainfo "github.com/caos/orbos/internal/operator/boom/application/applications/grafana/info"
kubestatemetricsinfo "github.com/caos/orbos/internal/operator/boom/application/applications/kubestatemetrics/info"
loggingoperatorinfo "github.com/caos/orbos/internal/operator/boom/application/applications/loggingoperator/info"
lokiinfo "github.com/caos/orbos/internal/operator/boom/application/applications/loki/info"
prometheusinfo "github.com/caos/orbos/internal/operator/boom/application/applications/prometheus/info"
prometheusnodeexporterinfo "github.com/caos/orbos/internal/operator/boom/application/applications/prometheusnodeexporter/info"
prometheusoperatorinfo "github.com/caos/orbos/internal/operator/boom/application/applications/prometheusoperator/info"
prometheussystemdexporterinfo "github.com/caos/orbos/internal/operator/boom/application/applications/prometheussystemdexporter/info"
"github.com/caos/orbos/internal/operator/boom/name"
)
const (
Caos name.Bundle = "caos"
Empty name.Bundle = "empty"
)
func GetAll() []name.Application {
apps := make([]name.Application, 0)
apps = append(apps, GetCaos()...)
return apps
}
func Get(bundle name.Bundle) []name.Application {
switch bundle {
case Caos:
return GetCaos()
case Empty:
return make([]name.Application, 0)
}
return nil
}
func GetCaos() []name.Application {
apps := make([]name.Application, 0)
apps = append(apps, ambassadorinfo.GetName())
apps = append(apps, argocdinfo.GetName())
apps = append(apps, prometheusoperatorinfo.GetName())
apps = append(apps, kubestatemetricsinfo.GetName())
apps = append(apps, prometheusnodeexporterinfo.GetName())
apps = append(apps, prometheussystemdexporterinfo.GetName())
apps = append(apps, grafanainfo.GetName())
apps = append(apps, prometheusinfo.GetName())
apps = append(apps, loggingoperatorinfo.GetName())
apps = append(apps, lokiinfo.GetName())
return apps
}