Skip to content

Commit

Permalink
Make fields mandatory #692
Browse files Browse the repository at this point in the history
  • Loading branch information
noboruma committed Dec 12, 2022
1 parent 42bdd38 commit ab2f487
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deepfence_agent/tools/apache/scope/prog/probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ func probeMain(flags probeFlags, targets []appclient.Target) {

p := probe.New(flags.spyInterval, flags.publishInterval, clients, flags.ticksPerFullReport, flags.noControls)
p.AddTagger(probe.NewTopologyTagger())
var processCache *process.CachingWalker
if flags.kubernetesEnabled {
// If KUBERNETES_SERVICE_HOST env is not there, get it from kube-proxy container in this host
// KUBERNETES_PORT_443_TCP_PROTO="tcp"
Expand Down Expand Up @@ -358,6 +357,7 @@ func probeMain(flags probeFlags, targets []appclient.Target) {
log.Error(err.Error())
}

var processCache *process.CachingWalker
if flags.kubernetesRole != kubernetesRoleCluster {
hostReporter, cloudProvider, cloudRegion := host.NewReporter(hostID, hostName, probeID, version, clients, handlerRegistry)
defer hostReporter.Stop()
Expand Down
4 changes: 2 additions & 2 deletions deepfence_server/apiDocs/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (
)

type RawReport struct {
Payload string `json:"payload"`
Payload string `json:"payload" jsonschema:"required"`
}

type ScanTrigger struct {
NodeId string `json:"node_id"`
NodeId string `json:"node_id" jsonschema:"required"`
}

func (d *OpenApiDocs) AddUserAuthOperations() {
Expand Down

0 comments on commit ab2f487

Please sign in to comment.