From 0e6130411df93282b137586f20a39676161721d4 Mon Sep 17 00:00:00 2001 From: FrancescoFioraEst Date: Mon, 5 Jan 2026 10:18:56 +0000 Subject: [PATCH] Remove duplication of logback.xml in ACM participants Issue-ID: POLICY-5512 Change-Id: I4317ce88359e23a19f66a55275c8a04ed708c6be Signed-off-by: FrancescoFioraEst --- compose/compose.acm.scale.yml | 23 +-- compose/compose.common.yml | 38 +--- compose/compose.yaml | 37 +--- compose/config/clamp/logback-backend.xml | 219 --------------------- compose/config/clamp/logback-ppnt.xml | 205 ------------------- .../resources/config/logback.xml | 103 ---------- .../templates/configmap.yaml | 4 +- .../templates/deployment.yaml | 26 +-- .../resources/config/logback.xml | 103 ---------- .../templates/configmap.yaml | 5 +- .../templates/deployment.yaml | 26 +-- .../resources/config/logback.xml | 103 ---------- .../templates/configmap.yaml | 4 +- .../templates/deployment.yaml | 26 +-- .../resources/config/logback.xml | 103 ---------- .../templates/configmap.yaml | 4 +- .../templates/deployment.yaml | 26 +-- .../resources/config/logback.xml | 103 ---------- .../templates/configmap.yaml | 4 +- .../templates/deployment.yaml | 26 +-- 20 files changed, 25 insertions(+), 1163 deletions(-) delete mode 100644 compose/config/clamp/logback-backend.xml delete mode 100644 compose/config/clamp/logback-ppnt.xml delete mode 100755 helm/policy/components/policy-clamp-ac-a1pms-ppnt/resources/config/logback.xml delete mode 100644 helm/policy/components/policy-clamp-ac-http-ppnt/resources/config/logback.xml delete mode 100755 helm/policy/components/policy-clamp-ac-kserve-ppnt/resources/config/logback.xml delete mode 100644 helm/policy/components/policy-clamp-ac-pf-ppnt/resources/config/logback.xml delete mode 100644 helm/policy/components/policy-clamp-ac-sim-ppnt/resources/config/logback.xml diff --git a/compose/compose.acm.scale.yml b/compose/compose.acm.scale.yml index d0b059b2..46c55a39 100644 --- a/compose/compose.acm.scale.yml +++ b/compose/compose.acm.scale.yml @@ -1,6 +1,6 @@ # # ===========LICENSE_START==================================================== -# Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. +# Copyright (C) 2024-2026 OpenInfra Foundation Europe. All rights reserved. # ============================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -90,19 +90,14 @@ services: OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318 - JAVA_TOOL_OPTIONS: >- - -Dlogging.config="/opt/app/policy/clamp/etc/logback.xml" - -Dotel.java.global-autoconfigure.enabled=true + OTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED: true SPRING_PROFILES_ACTIVE: ${PPNT_PROFILE:-default} - volumes: - - ./config/clamp/logback-ppnt.xml:/opt/app/policy/clamp/etc/logback.xml:ro healthcheck: test: "curl --fail --silent http://localhost:6969/onap/policy/clamp/acm/httpparticipant/health/readiness | grep UP || exit 1" interval: 30s timeout: 10s retries: 5 start_period: 60s - entrypoint: java -jar /app/app.jar policy-clamp-ac-k8s-ppnt-replica: image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-k8s-ppnt:${POLICY_CLAMP_PPNT_VERSION} @@ -119,24 +114,19 @@ services: OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318 - JAVA_TOOL_OPTIONS: >- - -Dlogging.config="/opt/app/policy/clamp/etc/logback.xml" - -Dotel.java.global-autoconfigure.enabled=true + OTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED: true SPRING_PROFILES_ACTIVE: ${PPNT_PROFILE:-default} expose: - 6969 deploy: mode: replicated replicas: ${REPLICAS:-2} - volumes: - - ./config/clamp/logback-ppnt.xml:/opt/app/policy/clamp/etc/logback.xml:ro healthcheck: test: "curl --fail --silent http://localhost:6969/onap/policy/clamp/acm/k8sparticipant/health/readiness | grep UP || exit 1" interval: 30s timeout: 10s retries: 5 start_period: 20s - entrypoint: java -jar /app/app.jar policy-clamp-ac-pf-ppnt-replica: image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-pf-ppnt:${POLICY_CLAMP_PPNT_VERSION} @@ -162,19 +152,14 @@ services: OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318 - JAVA_TOOL_OPTIONS: >- - -Dlogging.config="/opt/app/policy/clamp/etc/logback.xml" - -Dotel.java.global-autoconfigure.enabled=true + OTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED: true SPRING_PROFILES_ACTIVE: ${PPNT_PROFILE:-default} - volumes: - - ./config/clamp/logback-ppnt.xml:/opt/app/policy/clamp/etc/logback.xml:ro healthcheck: test: "curl --fail --silent http://localhost:6969/onap/policy/clamp/acm/policyparticipant/health/readiness | grep UP || exit 1" interval: 30s timeout: 10s retries: 5 start_period: 30s - entrypoint: java -jar /app/app.jar nginx: image: ${CONTAINER_LOCATION}library/nginx:latest diff --git a/compose/compose.common.yml b/compose/compose.common.yml index 61b87d7a..5d6c3219 100644 --- a/compose/compose.common.yml +++ b/compose/compose.common.yml @@ -1,6 +1,6 @@ # # ===========LICENSE_START==================================================== -# Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. +# Copyright (C) 2024-2026 OpenInfra Foundation Europe. All rights reserved. # ============================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,19 +62,9 @@ services: applicationName: sim-ppnt-1 groupId: policy-clamp-ac-sim-ppnt-1 supportedElementTypeName: org.onap.policy.clamp.acm.SimAutomationCompositionElement - JAVA_TOOL_OPTIONS: >- - -Dlogging.config="/opt/app/policy/clamp/etc/logback.xml" - -Dotel.java.global-autoconfigure.enabled=true + OTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED: true ports: - ${SIM_PARTICIPANT1_PORT}:6969 - volumes: - - ./config/clamp/logback-ppnt.xml:/opt/app/policy/clamp/etc/logback.xml:ro - - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro - entrypoint: /opt/app/policy/bin/wait_for_port.sh - command: [ - '-c', 'java -jar /app/app.jar', - 'kafka', '9092' - ] policy-clamp-ac-sim-ppnt-2: image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-sim-ppnt:${POLICY_CLAMP_PPNT_VERSION} @@ -97,19 +87,9 @@ services: applicationName: sim-ppnt-2 groupId: policy-clamp-ac-sim-ppnt-2 supportedElementTypeName: org.onap.policy.clamp.acm.SimAutomationCompositionElement2 - JAVA_TOOL_OPTIONS: >- - -Dlogging.config="/opt/app/policy/clamp/etc/logback.xml" - -Dotel.java.global-autoconfigure.enabled=true + OTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED: true ports: - ${SIM_PARTICIPANT2_PORT}:6969 - volumes: - - ./config/clamp/logback-ppnt.xml:/opt/app/policy/clamp/etc/logback.xml:ro - - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro - entrypoint: /opt/app/policy/bin/wait_for_port.sh - command: [ - '-c', 'java -jar /app/app.jar', - 'kafka', '9092' - ] policy-clamp-ac-sim-ppnt-3: image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-sim-ppnt:${POLICY_CLAMP_PPNT_VERSION} @@ -132,19 +112,9 @@ services: applicationName: sim-ppnt-3 groupId: policy-clamp-ac-sim-ppnt-3 supportedElementTypeName: org.onap.policy.clamp.acm.SimAutomationCompositionElement3 - JAVA_TOOL_OPTIONS: >- - -Dlogging.config="/opt/app/policy/clamp/etc/logback.xml" - -Dotel.java.global-autoconfigure.enabled=true + OTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED: true ports: - ${SIM_PARTICIPANT3_PORT}:6969 - volumes: - - ./config/clamp/logback-ppnt.xml:/opt/app/policy/clamp/etc/logback.xml:ro - - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro - entrypoint: /opt/app/policy/bin/wait_for_port.sh - command: [ - '-c', 'java -jar /app/app.jar', - 'kafka', '9092' - ] # metrics services: prometheus: diff --git a/compose/compose.yaml b/compose/compose.yaml index d2cf7f81..3b0d1708 100644 --- a/compose/compose.yaml +++ b/compose/compose.yaml @@ -2,7 +2,7 @@ # ===========LICENSE_START==================================================== # Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved. # Modifications Copyright (C) 2021 Bell Canada. All rights reserved. -# Modifications Copyright 2021-2025 OpenInfra Foundation Europe. All rights reserved. +# Modifications Copyright 2021-2026 OpenInfra Foundation Europe. All rights reserved. # Modifications Copyright 2024-2025 Deutsche Telekom # ============================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); @@ -274,19 +274,14 @@ services: OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318 - JAVA_TOOL_OPTIONS: >- - -Dlogging.config="/opt/app/policy/clamp/etc/logback.xml" - -Dotel.java.global-autoconfigure.enabled=true + OTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED: true SPRING_PROFILES_ACTIVE: ${PPNT_PROFILE:-default} - volumes: - - ./config/clamp/logback-ppnt.xml:/opt/app/policy/clamp/etc/logback.xml:ro healthcheck: test: "curl --fail --silent http://localhost:6969/onap/policy/clamp/acm/httpparticipant/health/readiness | grep UP || exit 1" interval: 30s timeout: 10s retries: 5 start_period: 60s - entrypoint: java -jar /app/app.jar policy-clamp-ac-k8s-ppnt: image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-k8s-ppnt:${POLICY_CLAMP_PPNT_VERSION} @@ -304,21 +299,16 @@ services: OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318 - JAVA_TOOL_OPTIONS: >- - -Dlogging.config="/opt/app/policy/clamp/etc/logback.xml" - -Dotel.java.global-autoconfigure.enabled=true + OTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED: true SPRING_PROFILES_ACTIVE: ${PPNT_PROFILE:-default} ports: - "30295:6969" - volumes: - - ./config/clamp/logback-ppnt.xml:/opt/app/policy/clamp/etc/logback.xml:ro healthcheck: test: "curl --fail --silent http://localhost:6969/onap/policy/clamp/acm/k8sparticipant/health/readiness | grep UP || exit 1" interval: 30s timeout: 10s retries: 5 start_period: 20s - entrypoint: java -jar /app/app.jar policy-clamp-ac-pf-ppnt: image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-pf-ppnt:${POLICY_CLAMP_PPNT_VERSION} @@ -343,19 +333,14 @@ services: OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318 - JAVA_TOOL_OPTIONS: >- - -Dlogging.config="/opt/app/policy/clamp/etc/logback.xml" - -Dotel.java.global-autoconfigure.enabled=true + OTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED: true SPRING_PROFILES_ACTIVE: ${PPNT_PROFILE:-default} - volumes: - - ./config/clamp/logback-ppnt.xml:/opt/app/policy/clamp/etc/logback.xml:ro healthcheck: test: "curl --fail --silent http://localhost:6969/onap/policy/clamp/acm/policyparticipant/health/readiness | grep UP || exit 1" interval: 30s timeout: 10s retries: 5 start_period: 30s - entrypoint: java -jar /app/app.jar policy-clamp-ac-a1pms-ppnt: image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-a1pms-ppnt:${POLICY_CLAMP_PPNT_VERSION} @@ -373,20 +358,15 @@ services: OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318 - JAVA_TOOL_OPTIONS: >- - -Dlogging.config="/opt/app/policy/clamp/etc/logback.xml" - -Dotel.java.global-autoconfigure.enabled=true + OTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED: true ports: - "30296:6969" - volumes: - - ./config/clamp/logback-ppnt.xml:/opt/app/policy/clamp/etc/logback.xml:ro healthcheck: test: "curl --fail --silent http://localhost:6969/onap/policy/clamp/acm/a1pmsparticipant/health/readiness | grep UP || exit 1" interval: 30s timeout: 10s retries: 5 start_period: 20s - entrypoint: java -jar /app/app.jar policy-clamp-ac-kserve-ppnt: image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-kserve-ppnt:${POLICY_CLAMP_PPNT_VERSION} @@ -404,17 +384,12 @@ services: OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318 - JAVA_TOOL_OPTIONS: >- - -Dlogging.config="/opt/app/policy/clamp/etc/logback.xml" - -Dotel.java.global-autoconfigure.enabled=true + OTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED: true ports: - "30297:6969" - volumes: - - ./config/clamp/logback-ppnt.xml:/opt/app/policy/clamp/etc/logback.xml:ro healthcheck: test: "curl --fail --silent http://localhost:6969/onap/policy/clamp/acm/kserveparticipant/health/readiness | grep UP || exit 1" interval: 30s timeout: 10s retries: 5 start_period: 20s - entrypoint: java -jar /app/app.jar diff --git a/compose/config/clamp/logback-backend.xml b/compose/config/clamp/logback-backend.xml deleted file mode 100644 index cfa280c4..00000000 --- a/compose/config/clamp/logback-backend.xml +++ /dev/null @@ -1,219 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - INFO - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n - - - - - - - ERROR - ACCEPT - DENY - - ${logDirectory}/error.log - true - - ${errorPattern} - - - ${logDirectory}/error.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 20 - 1GB - - - - 256 - - - - - ${logDirectory}/debug.log - true - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n - - - - ${logDirectory}/debug.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 20 - 1GB - - - - 256 - - - - - - ${logDirectory}/audit.log - - ${auditPattern} - - - ${logDirectory}/audit.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 20 - 1GB - - - - 256 - - - - - - ${logDirectory}/metric.log - - ${metricPattern} - - - ${logDirectory}/metric.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 20 - 1GB - - - - 256 - - - - - - - ${logDirectory}/security.log - - %X{EntryTimestamp}|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}|%X{RequestID}|%X{ServiceInstanceId}|%.20thread|%X{VirtualServerName}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}|%X{Unused}|%X{ProcessKey}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n - - - - ${logDirectory}/security.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 20 - 1GB - - - - 256 - - - - - - - - ${logDirectory}/Audits.log - - ${logDirectory}/Audits-%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 20 - 1GB - - - "%d [%thread] %-5level %logger{1024} - %msg%n" - - - - - - - ${logDirectory}/Perform.log - - ${logDirectory}/Perform--%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 20 - 1GB - - - "%d [%thread] %-5level %logger{1024} - %msg%n" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/compose/config/clamp/logback-ppnt.xml b/compose/config/clamp/logback-ppnt.xml deleted file mode 100644 index 8a763c55..00000000 --- a/compose/config/clamp/logback-ppnt.xml +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${logDir}/${errorLog}.log - - ${logDir}/${errorLog}.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - WARN - - - ${errorPattern} - - - - - - - - - ${logDir}/${debugLog}.log - - ${logDir}/${debugLog}.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - ${debugPattern} - - - - - - - - - ${logDir}/${networkLog}.log - - ${logDir}/${networkLog}.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - ${networkPattern} - - - - - - - - - ${logDir}/${metricLog}.log - - ${logDir}/${metricLog}.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - ${metricPattern} - - - - - - - - - ${logDir}/${transactionLog}.log - - ${logDir}/${transactionLog}.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - ${transactionPattern} - - - - - - - - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/helm/policy/components/policy-clamp-ac-a1pms-ppnt/resources/config/logback.xml b/helm/policy/components/policy-clamp-ac-a1pms-ppnt/resources/config/logback.xml deleted file mode 100755 index 3b42867b..00000000 --- a/helm/policy/components/policy-clamp-ac-a1pms-ppnt/resources/config/logback.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - /var/log/onap/policy/a1pms-participant/error.log - - /var/log/onap/policy/a1pms-participant/error.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - WARN - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - /var/log/onap/policy/a1pms-participant/debug.log - - /var/log/onap/policy/a1pms-participant/debug.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - /var/log/onap/policy/a1pms-participant/network.log - - /var/log/onap/policy/a1pms-participant/network.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%t]%m%n - - - - - - - - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/helm/policy/components/policy-clamp-ac-a1pms-ppnt/templates/configmap.yaml b/helm/policy/components/policy-clamp-ac-a1pms-ppnt/templates/configmap.yaml index f8bd6c18..0ea564fa 100755 --- a/helm/policy/components/policy-clamp-ac-a1pms-ppnt/templates/configmap.yaml +++ b/helm/policy/components/policy-clamp-ac-a1pms-ppnt/templates/configmap.yaml @@ -1,6 +1,6 @@ {{/* # ============LICENSE_START======================================================= -# Copyright (C) 2023-2024 Nordix Foundation. All rights reserved. +# Copyright (C) 2023-2024,2026 Nordix Foundation. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -27,5 +27,3 @@ metadata: app: {{ .Chart.Name }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} heritage: Helm -data: -{{ tpl (.Files.Glob "resources/config/*.{xml,yaml,sh}").AsConfig . | indent 2 }} \ No newline at end of file diff --git a/helm/policy/components/policy-clamp-ac-a1pms-ppnt/templates/deployment.yaml b/helm/policy/components/policy-clamp-ac-a1pms-ppnt/templates/deployment.yaml index ae5a050d..03ca0a57 100755 --- a/helm/policy/components/policy-clamp-ac-a1pms-ppnt/templates/deployment.yaml +++ b/helm/policy/components/policy-clamp-ac-a1pms-ppnt/templates/deployment.yaml @@ -1,6 +1,6 @@ {{/* # ============LICENSE_START======================================================= -# Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved. +# Copyright (C) 2023-2026 OpenInfra Foundation Europe. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -44,25 +44,10 @@ spec: name: {{ .Chart.Name }} spec: - initContainers: - - command: - - sh - args: - - -c - - "cd /config-input && for PFILE in `ls -1`; do envsubst <${PFILE} >/config/${PFILE}; done" - volumeMounts: - - mountPath: /config-input - name: ac-a1pms-ppnt-config - - mountPath: /config - name: ac-a1pms-ppnt-config-processed - image: docker.io/dibi/envsubst:1 - imagePullPolicy: {{ .Values.pullPolicy }} - name: {{ .Chart.Name }}-update-config containers: - name: {{ .Chart.Name }} image: {{ .Values.global.repository }}/{{ .Values.global.image.a1pmsparticipant }} imagePullPolicy: {{ .Values.global.pullPolicy }} - command: ["/opt/app/policy/clamp/bin/a1pms-participant.sh"] env: - name: HTTP_USER valueFrom: @@ -128,8 +113,6 @@ spec: - mountPath: /etc/localtime name: localtime readOnly: true - - mountPath: /opt/app/policy/clamp/etc/mounted - name: ac-a1pms-ppnt-config-processed resources: {{ toYaml .Values.resources.small | indent 12 }} {{- if .Values.nodeSelector }} @@ -145,12 +128,5 @@ spec: - name: localtime hostPath: path: /etc/localtime - - name: ac-a1pms-ppnt-config - configMap: - name: {{ .Chart.Name }}-configmap - defaultMode: 0755 - - name: ac-a1pms-ppnt-config-processed - emptyDir: - medium: Memory imagePullSecrets: - name: default-docker-registry-key" diff --git a/helm/policy/components/policy-clamp-ac-http-ppnt/resources/config/logback.xml b/helm/policy/components/policy-clamp-ac-http-ppnt/resources/config/logback.xml deleted file mode 100644 index 4e1243bc..00000000 --- a/helm/policy/components/policy-clamp-ac-http-ppnt/resources/config/logback.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - /var/log/onap/policy/http-participant/error.log - - /var/log/onap/policy/http-participant/error.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - WARN - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - /var/log/onap/policy/http-participant/debug.log - - /var/log/onap/policy/http-participant/debug.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - /var/log/onap/policy/http-participant/network.log - - /var/log/onap/policy/http-participant/network.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%t]%m%n - - - - - - - - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/helm/policy/components/policy-clamp-ac-http-ppnt/templates/configmap.yaml b/helm/policy/components/policy-clamp-ac-http-ppnt/templates/configmap.yaml index 380833ca..ffa36a40 100644 --- a/helm/policy/components/policy-clamp-ac-http-ppnt/templates/configmap.yaml +++ b/helm/policy/components/policy-clamp-ac-http-ppnt/templates/configmap.yaml @@ -1,6 +1,6 @@ {{/* # ============LICENSE_START======================================================= -# Copyright (C) 2023-2024 Nordix Foundation. All rights reserved. +# Copyright (C) 2023-2024,2026 Nordix Foundation. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,5 +28,4 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: release heritage: Helm -data: -{{ tpl (.Files.Glob "resources/config/*.{xml,yaml,sh}").AsConfig . | indent 2 }} + diff --git a/helm/policy/components/policy-clamp-ac-http-ppnt/templates/deployment.yaml b/helm/policy/components/policy-clamp-ac-http-ppnt/templates/deployment.yaml index ba31299b..b3117730 100644 --- a/helm/policy/components/policy-clamp-ac-http-ppnt/templates/deployment.yaml +++ b/helm/policy/components/policy-clamp-ac-http-ppnt/templates/deployment.yaml @@ -1,6 +1,6 @@ {{/* # ============LICENSE_START======================================================= -# Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved. +# Copyright (C) 2023-2026 OpenInfra Foundation Europe. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -43,25 +43,10 @@ spec: app.kubernetes.io/managed-by: Helm name: {{ .Chart.Name }} spec: - initContainers: - - command: - - sh - args: - - -c - - "cd /config-input && for PFILE in `ls -1`; do envsubst <${PFILE} >/config/${PFILE}; done" - volumeMounts: - - mountPath: /config-input - name: ac-http-ppnt-config - - mountPath: /config - name: ac-http-ppnt-config-processed - image: docker.io/dibi/envsubst:1 - imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} - name: {{ .Chart.Name }}-update-config containers: - name: {{ .Chart.Name }} image: {{ .Values.global.repository }}/{{ .Values.global.image.httpparticipant }} imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} - command: ["/opt/app/policy/clamp/bin/http-participant.sh"] env: - name: HTTP_USER valueFrom: @@ -125,8 +110,6 @@ spec: - mountPath: /etc/localtime name: localtime readOnly: true - - mountPath: /opt/app/policy/clamp/etc/mounted - name: ac-http-ppnt-config-processed resources: {{ toYaml .Values.resources.small | indent 12 }} {{- if .Values.nodeSelector }} @@ -142,12 +125,5 @@ spec: - name: localtime hostPath: path: /etc/localtime - - name: ac-http-ppnt-config - configMap: - name: {{ .Chart.Name }}-configmap - defaultMode: 0755 - - name: ac-http-ppnt-config-processed - emptyDir: - medium: Memory imagePullSecrets: - name: "default-docker-registry-key" diff --git a/helm/policy/components/policy-clamp-ac-kserve-ppnt/resources/config/logback.xml b/helm/policy/components/policy-clamp-ac-kserve-ppnt/resources/config/logback.xml deleted file mode 100755 index ba0549d1..00000000 --- a/helm/policy/components/policy-clamp-ac-kserve-ppnt/resources/config/logback.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - /var/log/onap/policy/kserve-participant/error.log - - /var/log/onap/policy/kserve-participant/error.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - WARN - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - /var/log/onap/policy/kserve-participant/debug.log - - /var/log/onap/policy/kserve-participant/debug.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - /var/log/onap/policy/kserve-participant/network.log - - /var/log/onap/policy/kserve-participant/network.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%t]%m%n - - - - - - - - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/helm/policy/components/policy-clamp-ac-kserve-ppnt/templates/configmap.yaml b/helm/policy/components/policy-clamp-ac-kserve-ppnt/templates/configmap.yaml index f8bd6c18..0ea564fa 100755 --- a/helm/policy/components/policy-clamp-ac-kserve-ppnt/templates/configmap.yaml +++ b/helm/policy/components/policy-clamp-ac-kserve-ppnt/templates/configmap.yaml @@ -1,6 +1,6 @@ {{/* # ============LICENSE_START======================================================= -# Copyright (C) 2023-2024 Nordix Foundation. All rights reserved. +# Copyright (C) 2023-2024,2026 Nordix Foundation. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -27,5 +27,3 @@ metadata: app: {{ .Chart.Name }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} heritage: Helm -data: -{{ tpl (.Files.Glob "resources/config/*.{xml,yaml,sh}").AsConfig . | indent 2 }} \ No newline at end of file diff --git a/helm/policy/components/policy-clamp-ac-kserve-ppnt/templates/deployment.yaml b/helm/policy/components/policy-clamp-ac-kserve-ppnt/templates/deployment.yaml index 3d3b3d7c..e789eafb 100755 --- a/helm/policy/components/policy-clamp-ac-kserve-ppnt/templates/deployment.yaml +++ b/helm/policy/components/policy-clamp-ac-kserve-ppnt/templates/deployment.yaml @@ -1,6 +1,6 @@ {{/* # ============LICENSE_START======================================================= -# Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved. +# Copyright (C) 2023-2026 OpenInfra Foundation Europe. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -44,25 +44,10 @@ spec: name: {{ .Chart.Name }} spec: - initContainers: - - command: - - sh - args: - - -c - - "cd /config-input && for PFILE in `ls -1`; do envsubst <${PFILE} >/config/${PFILE}; done" - volumeMounts: - - mountPath: /config-input - name: ac-kserve-ppnt-config - - mountPath: /config - name: ac-kserve-ppnt-config-processed - image: docker.io/dibi/envsubst:1 - imagePullPolicy: {{ .Values.pullPolicy }} - name: {{ .Chart.Name }}-update-config containers: - name: {{ .Chart.Name }} image: {{ .Values.global.repository }}/{{ .Values.global.image.kserveparticipant }} imagePullPolicy: {{ .Values.global.pullPolicy }} - command: ["/opt/app/policy/clamp/bin/kserve-participant.sh"] env: - name: HTTP_USER valueFrom: @@ -126,8 +111,6 @@ spec: - mountPath: /etc/localtime name: localtime readOnly: true - - mountPath: /opt/app/policy/clamp/etc/mounted - name: ac-kserve-ppnt-config-processed resources: {{ toYaml .Values.resources.small | indent 12 }} {{- if .Values.nodeSelector }} @@ -143,12 +126,5 @@ spec: - name: localtime hostPath: path: /etc/localtime - - name: ac-kserve-ppnt-config - configMap: - name: {{ .Chart.Name }}-configmap - defaultMode: 0755 - - name: ac-kserve-ppnt-config-processed - emptyDir: - medium: Memory imagePullSecrets: - name: default-docker-registry-key" diff --git a/helm/policy/components/policy-clamp-ac-pf-ppnt/resources/config/logback.xml b/helm/policy/components/policy-clamp-ac-pf-ppnt/resources/config/logback.xml deleted file mode 100644 index 25dee353..00000000 --- a/helm/policy/components/policy-clamp-ac-pf-ppnt/resources/config/logback.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - /var/log/onap/policy/pf-participant/error.log - - /var/log/onap/policy/pf-participant/error.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - WARN - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - /var/log/onap/policy/pf-participant/debug.log - - /var/log/onap/policy/pf-participant/debug.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - /var/log/onap/policy/pf-participant/network.log - - /var/log/onap/policy/pf-participant/network.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%t]%m%n - - - - - - - - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/helm/policy/components/policy-clamp-ac-pf-ppnt/templates/configmap.yaml b/helm/policy/components/policy-clamp-ac-pf-ppnt/templates/configmap.yaml index 2faeffcc..638e6d16 100644 --- a/helm/policy/components/policy-clamp-ac-pf-ppnt/templates/configmap.yaml +++ b/helm/policy/components/policy-clamp-ac-pf-ppnt/templates/configmap.yaml @@ -1,6 +1,6 @@ {{/* # ============LICENSE_START======================================================= -# Copyright (C) 2023-2024 Nordix Foundation. All rights reserved. +# Copyright (C) 2023-2024,2026 Nordix Foundation. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,5 +28,3 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: RELEASE heritage: Helm -data: -{{ tpl (.Files.Glob "resources/config/*.{xml,yaml,sh}").AsConfig . | indent 2 }} diff --git a/helm/policy/components/policy-clamp-ac-pf-ppnt/templates/deployment.yaml b/helm/policy/components/policy-clamp-ac-pf-ppnt/templates/deployment.yaml index c640d384..78403e04 100644 --- a/helm/policy/components/policy-clamp-ac-pf-ppnt/templates/deployment.yaml +++ b/helm/policy/components/policy-clamp-ac-pf-ppnt/templates/deployment.yaml @@ -1,6 +1,6 @@ {{/* # ============LICENSE_START======================================================= -# Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved. +# Copyright (C) 2023-2026 OpenInfra Foundation Europe. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -43,25 +43,10 @@ spec: app.kubernetes.io/managed-by: Helm name: {{ .Chart.Name }} spec: - initContainers: - - command: - - sh - args: - - -c - - "cd /config-input && for PFILE in `ls -1`; do envsubst <${PFILE} >/config/${PFILE}; done" - volumeMounts: - - mountPath: /config-input - name: ac-pf-ppnt-config - - mountPath: /config - name: ac-pf-ppnt-config-processed - image: docker.io/dibi/envsubst:1 - imagePullPolicy: {{ .Values.pullPolicy }} - name: {{ .Chart.Name }}-update-config containers: - name: {{ .Chart.Name }} image: {{ .Values.global.repository }}/{{ .Values.global.image.pfparticipant }} imagePullPolicy: {{ .Values.global.pullPolicy }} - command: ["/opt/app/policy/clamp/bin/policy-participant.sh"] env: - name: HTTP_USER valueFrom: @@ -145,8 +130,6 @@ spec: - mountPath: /etc/localtime name: localtime readOnly: true - - mountPath: /opt/app/policy/clamp/etc/mounted - name: ac-pf-ppnt-config-processed resources: {{ toYaml .Values.resources.small | indent 12 }} {{- if .Values.nodeSelector }} @@ -162,12 +145,5 @@ spec: - name: localtime hostPath: path: /etc/localtime - - name: ac-pf-ppnt-config - configMap: - name: {{ .Chart.Name }}-configmap - defaultMode: 0755 - - name: ac-pf-ppnt-config-processed - emptyDir: - medium: Memory imagePullSecrets: - name: "default-docker-registry-key" diff --git a/helm/policy/components/policy-clamp-ac-sim-ppnt/resources/config/logback.xml b/helm/policy/components/policy-clamp-ac-sim-ppnt/resources/config/logback.xml deleted file mode 100644 index 7550d88e..00000000 --- a/helm/policy/components/policy-clamp-ac-sim-ppnt/resources/config/logback.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - /var/log/onap/policy/sim-participant/error.log - - /var/log/onap/policy/sim-participant/error.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - WARN - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - /var/log/onap/policy/sim-participant/debug.log - - /var/log/onap/policy/sim-participant/debug.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - /var/log/onap/policy/sim-participant/network.log - - /var/log/onap/policy/sim-participant/network.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%t]%m%n - - - - - - - - - - [%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/helm/policy/components/policy-clamp-ac-sim-ppnt/templates/configmap.yaml b/helm/policy/components/policy-clamp-ac-sim-ppnt/templates/configmap.yaml index 65578217..29fcfb7b 100644 --- a/helm/policy/components/policy-clamp-ac-sim-ppnt/templates/configmap.yaml +++ b/helm/policy/components/policy-clamp-ac-sim-ppnt/templates/configmap.yaml @@ -1,6 +1,6 @@ {{/* # ============LICENSE_START======================================================= -# Copyright (C) 2024 Nordix Foundation. All rights reserved. +# Copyright (C) 2024,2026 Nordix Foundation. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,5 +28,3 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: release heritage: Helm -data: -{{ tpl (.Files.Glob "resources/config/*.{xml,yaml,sh}").AsConfig . | indent 2 }} diff --git a/helm/policy/components/policy-clamp-ac-sim-ppnt/templates/deployment.yaml b/helm/policy/components/policy-clamp-ac-sim-ppnt/templates/deployment.yaml index 6042bf06..5e85f773 100644 --- a/helm/policy/components/policy-clamp-ac-sim-ppnt/templates/deployment.yaml +++ b/helm/policy/components/policy-clamp-ac-sim-ppnt/templates/deployment.yaml @@ -1,6 +1,6 @@ {{/* # ============LICENSE_START======================================================= -# Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. +# Copyright (C) 2024-2026 OpenInfra Foundation Europe. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -43,25 +43,10 @@ spec: app.kubernetes.io/managed-by: Helm name: {{ .Chart.Name }} spec: - initContainers: - - command: - - sh - args: - - -c - - "cd /config-input && for PFILE in `ls -1`; do envsubst <${PFILE} >/config/${PFILE}; done" - volumeMounts: - - mountPath: /config-input - name: ac-sim-ppnt-config - - mountPath: /config - name: ac-sim-ppnt-config-processed - image: docker.io/dibi/envsubst:1 - imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} - name: {{ .Chart.Name }}-update-config containers: - name: {{ .Chart.Name }} image: {{ .Values.global.repository }}/{{ .Values.global.image.simparticipant }} imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} - command: ["/opt/app/policy/clamp/bin/sim-participant.sh"] env: - name: HTTP_USER valueFrom: @@ -133,8 +118,6 @@ spec: - mountPath: /etc/localtime name: localtime readOnly: true - - mountPath: /opt/app/policy/clamp/etc/mounted - name: ac-sim-ppnt-config-processed resources: {{ toYaml .Values.resources.small | indent 12 }} {{- if .Values.nodeSelector }} @@ -150,12 +133,5 @@ spec: - name: localtime hostPath: path: /etc/localtime - - name: ac-sim-ppnt-config - configMap: - name: {{ .Chart.Name }}-configmap - defaultMode: 0755 - - name: ac-sim-ppnt-config-processed - emptyDir: - medium: Memory imagePullSecrets: - name: "default-docker-registry-key" -- 2.16.6