-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharmometadata.go
33 lines (29 loc) · 1.34 KB
/
armometadata.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
package armometadata
import (
"github.com/armosec/armoapi-go/armotypes"
)
// annotations added to the workload
const (
ArmoPrefix string = "armo"
ArmoUpdate string = ArmoPrefix + ".last-update"
ArmoWlid string = ArmoPrefix + ".wlid"
ArmoSid string = ArmoPrefix + ".sid"
ArmoJobID string = ArmoPrefix + ".job"
ArmoJobIDPath string = ArmoJobID + "/id"
ArmoJobParentPath string = ArmoJobID + "/parent"
ArmoJobActionPath string = ArmoJobID + "/action"
)
type ClusterConfig struct {
ClusterName string `json:"clusterName"` // cluster name defined manually or from the cluster context
AccountID string `json:"accountID"` // use accountID instead of customerGUID
GatewayWebsocketURL string `json:"gatewayWebsocketURL"` // in-cluster gateway component websocket url
GatewayRestURL string `json:"gatewayRestURL"` // in-cluster gateway component REST API url
KubevulnURL string `json:"kubevulnURL"` // in-cluster kubevuln component REST API url
KubescapeURL string `json:"kubescapeURL"` // in-cluster kubescape component REST API url
ContinuousPostureScan bool `json:"continuousPostureScan"`
armotypes.InstallationData
}
type ImageInfo struct {
Registry string `json:"registry"`
VersionImage string `json:"versionImage"`
}