Skip to content

Commit

Permalink
Add env variable for opa server
Browse files Browse the repository at this point in the history
Signed-off-by: Ondra Machacek <[email protected]>
  • Loading branch information
machacekondra committed Oct 3, 2024
1 parent e69ebc3 commit d912bcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/collector/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
web "github.com/konveyor/forklift-controller/pkg/controller/provider/web/vsphere"
libmodel "github.com/konveyor/forklift-controller/pkg/lib/inventory/model"
apiplanner "github.com/kubev2v/migration-planner/api/v1alpha1"
"github.com/kubev2v/migration-planner/internal/util"
core "k8s.io/api/core/v1"
meta "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down Expand Up @@ -56,7 +57,7 @@ func main() {
os.Exit(1)
}

opaServer := "127.0.0.1:8181"
opaServer := util.GetEnv("OPA_SERVER", "127.0.0.1:8181")
logger.Println("Create Provider")
provider := getProvider(creds)

Expand Down

0 comments on commit d912bcc

Please sign in to comment.