Documentation
¶
Index ¶
Constants ¶
View Source
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" )
annotations added to the workload
Variables ¶
View Source
var DefaultConfigPath = "/etc/config/clusterData.json"
View Source
var KubeNamespaces = []string{metav1.NamespaceSystem, metav1.NamespacePublic}
View Source
var NamespacesListToIgnore = make([]string, 0)
Functions ¶
func GenerateConfigMapName ¶ added in v0.0.9
func IfIgnoreNamespace ¶
func IfKubeNamespace ¶
Types ¶
type ClusterConfig ¶
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
EventReceiverRestURL string `json:"eventReceiverRestURL"` // event receiver rest url
EventReceiverWebsocketURL string `json:"eventReceiverWebsocketURL"` // event receiver websocket url
RootGatewayURL string `json:"rootGatewayURL"` // root gateway url
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
StorageEnabled bool `json:"storage"` // storage configuration (enabled/disabled)
NodeAgentEnabled bool `json:"nodeAgent"` // node agent configuration (enabled/disabled)
Namespace string `json:"namespace"` // namespace to deploy the components
KubevulnEnabled bool `json:"kubevuln"` // kubevuln configuration (enabled/disabled)
KubescapeEnabled bool `json:"kubescape"` // kubescape configuration (enabled/disabled)
OtelCollectorEnabled bool `json:"otelCollector"` // otel collector configuration (enabled/disabled)
}
func LoadConfig ¶
func LoadConfig(configPath string) (*ClusterConfig, error)
LoadConfig load config from file
Click to show internal directories.
Click to hide internal directories.