Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions configuration/ConfigurationFile.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
"name": "minikube"
},
"db": {
"server": {
"URL": "blabla.com/v1/store"
},
"fileSystem": true,
"updateDataPeriod": 30
},
"clusterName": "myCluster"
Expand Down
4 changes: 0 additions & 4 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,3 @@ func (cfg *Config) GetNodeName() string {
func (cfg *Config) GetClusterName() string {
return cfg.data.GetClusterName()
}

func (cfg *Config) GetStorageURL() string {
return cfg.data.GetStorageURL()
}
1 change: 0 additions & 1 deletion pkg/config/config_data_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ type ConfigDataInterface interface {
IsRelevantCVEServiceEnabled() bool
GetNodeName() string
GetClusterName() string
GetStorageURL() string
}
12 changes: 1 addition & 11 deletions pkg/config/v1/config_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,8 @@ type SnifferServices struct {
Name string `json:"name"`
}

type Server struct {
URL string `json:"URL"`
}

type DB struct {
Server `json:"server"`
FileSystem bool `json:"fileSystem"`
UpdateDataPeriod int `json:"updateDataPeriod"`
UpdateDataPeriod int `json:"updateDataPeriod"`
}

type SnifferData struct {
Expand Down Expand Up @@ -96,10 +90,6 @@ func (c *ConfigData) IsRelevantCVEServiceEnabled() bool {
return false
}

func (c *ConfigData) GetStorageURL() string {
return c.DB.Server.URL
}

func (c *ConfigData) GetNodeName() string {
return c.NodeData.Name
}
Expand Down
4 changes: 0 additions & 4 deletions pkg/config/v1/config_data_falco_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,3 @@ func (c *ConfigDataFalcoMock) GetNodeName() string {
func (c *ConfigDataFalcoMock) GetClusterName() string {
return "test"
}

func (c *ConfigDataFalcoMock) GetStorageURL() string {
return "blabla"
}