Skip to content

Commit 7a1e212

Browse files
Merge pull request #2 from armosec/use-armotypes
use armotypes
2 parents 0a64e62 + 79649dd commit 7a1e212

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

armometadata/armometadata.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
package armometadata
22

3+
import (
4+
"github.com/armosec/armoapi-go/armotypes"
5+
)
6+
37
// annotations added to the workload
48
const (
59
ArmoPrefix string = "armo"
@@ -22,12 +26,7 @@ type ClusterConfig struct {
2226
GatewayRestURL string `json:"gatewayRestURL"` // in-cluster gateway component REST API url
2327
KubevulnURL string `json:"kubevulnURL"` // in-cluster kubevuln component REST API url
2428
KubescapeURL string `json:"kubescapeURL"` // in-cluster kubescape component REST API url
25-
StorageEnabled bool `json:"storage"` // storage configuration (enabled/disabled)
26-
RelevantImageVulnerabilitiesEnabled bool `json:"relevantImageVulnerabilitiesEnabled"` // node agent configuration (enabled/disabled)
27-
Namespace string `json:"namespace"` // namespace to deploy the components
28-
ImageVulnerabilitiesScanningEnabled bool `json:"imageVulnerabilitiesScanningEnabled"` // kubevuln configuration (enabled/disabled)
29-
PostureScanEnabled bool `json:"postureScanEnabled"` // kubescape configuration (enabled/disabled)
30-
OtelCollectorEnabled bool `json:"otelCollector"` // otel collector configuration (enabled/disabled)
29+
armotypes.InstallationData
3130
}
3231

3332
type ImageInfo struct {

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/armosec/utils-k8s-go
33
go 1.18
44

55
require (
6+
github.com/armosec/armoapi-go v0.0.191
67
github.com/armosec/utils-go v0.0.12
78
github.com/docker/docker v20.10.17+incompatible
89
github.com/francoispqt/gojay v1.2.13
@@ -36,6 +37,7 @@ require (
3637
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
3738
github.com/opencontainers/go-digest v1.0.0 // indirect
3839
github.com/opencontainers/image-spec v1.0.2 // indirect
40+
github.com/stripe/stripe-go/v74 v74.8.0 // indirect
3941
go.uber.org/atomic v1.7.0 // indirect
4042
go.uber.org/multierr v1.6.0 // indirect
4143
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect

go.sum

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hC
7272
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
7373
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
7474
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
75+
github.com/armosec/armoapi-go v0.0.191 h1:+fC9dnFzOHOAlid34xOi2DI7+1AT+f7mZ03KpVInab4=
76+
github.com/armosec/armoapi-go v0.0.191/go.mod h1:ANarxE0icSvdufFB1x3JAax7XKrWIKe8b/SvLnuDtGw=
7577
github.com/armosec/utils-go v0.0.12 h1:NXkG/BhbSVAmTVXr0qqsK02CmxEiXuJyPmdTRcZ4jAo=
7678
github.com/armosec/utils-go v0.0.12/go.mod h1:F/K1mI/qcj7fNuJl7xktoCeHM83azOF0Zq6eC2WuPyU=
7779
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
@@ -488,6 +490,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5
488490
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
489491
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
490492
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
493+
github.com/stripe/stripe-go/v74 v74.8.0 h1:0+3EfQSBhMg8SQ1+w+AP6Gxyko2crWbUG2uXbzYs8SU=
494+
github.com/stripe/stripe-go/v74 v74.8.0/go.mod h1:5PoXNp30AJ3tGq57ZcFuaMylzNi8KpwlrYAFmO1fHZw=
491495
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
492496
github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA=
493497
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
@@ -981,8 +985,8 @@ gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C
981985
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
982986
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
983987
gotest.tools/v3 v3.0.2/go.mod h1:3SzNCllyD9/Y+b5r9JIKQ474KzkZyqLqEfYqMsX94Bk=
984-
gotest.tools/v3 v3.0.3 h1:4AuOwCGf4lLR9u3YOe2awrHygurzhO/HeQ6laiA6Sx0=
985988
gotest.tools/v3 v3.0.3/go.mod h1:Z7Lb0S5l+klDB31fvDQX8ss/FlKDxtlFlw3Oa8Ymbl8=
989+
gotest.tools/v3 v3.3.0 h1:MfDY1b1/0xN1CyMlQDac0ziEy9zJQd9CXBRRDHw2jJo=
986990
grpc.go4.org v0.0.0-20170609214715-11d0a25b4919/go.mod h1:77eQGdRu53HpSqPFJFmuJdjuHRquDANNeA4x7B8WQ9o=
987991
honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
988992
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=

0 commit comments

Comments
 (0)