From 83f8646f702f9cffbd25d8124476465ee8f94af0 Mon Sep 17 00:00:00 2001 From: Shalini Shivam Date: Fri, 13 Dec 2024 15:56:10 +0100 Subject: Support Output response to OPA query Description : For details refer https://lf-onap.atlassian.net/wiki/spaces/DW/pages/51150925/OPA+PDP Issue-ID: POLICY-5204 Change-Id: Id6d51fa83957fb560afec2d85cc0d45d6dda6900 Signed-off-by: Shalini Shivam --- consts/constants.go | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'consts') diff --git a/consts/constants.go b/consts/constants.go index 601608f..d800e0d 100644 --- a/consts/constants.go +++ b/consts/constants.go @@ -1,6 +1,6 @@ // - // ========================LICENSE_START================================= -// Copyright (C) 2024: Deutsche Telecom +// Copyright (C) 2024: Deutsche Telekom // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // ========================LICENSE_END=================================== // Package consts provides constant values used throughout the policy-opa-pdp service. @@ -47,18 +48,19 @@ package consts // OkCode - The Code for HealthCheck response // HealthCheckMessage - The Healtcheck Message var ( - LogFilePath = "/var/logs/logs.log" - LogMaxSize = 10 - LogMaxBackups = 3 - OpasdkConfigPath = "/app/config/config.json" - Opa = "/app/opa" - BuildBundle = "build" - Policies = "/app/policies" - Data = "/app/policies/data" - Output = "-o" - BundleTarGz = "bundle.tar.gz" - BundleTarGzFile = "/app/bundles/bundle.tar.gz" - PdpGroup = "defaultGroup" + LogFilePath = "/var/logs/logs.log" + LogMaxSize = 10 + LogMaxBackups = 3 + OpasdkConfigPath = "/app/config/config.json" + Opa = "/app/opa" + BuildBundle = "build" + Policies = "/opt/policies" + Data = "/opt/data" + Output = "-o" + BundleTarGz = "bundle.tar.gz" + BundleTarGzFile = "/app/bundles/bundle.tar.gz" + PdpGroup = "opaGroup" + //This is a workaround as currently opa-pdp is not defined in the PapDB defaultGroup configuration and creating it manually overrides the existing configuration, so currently PdpGroup is opaGroup and it will be changed to defaultGroup once added in the configuration. PdpType = "opa" ServerPort = ":8282" SERVER_WAIT_UP_TIME = 5 -- cgit 1.2.3-korg