X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fsimulator-group%2Fa1pms%2Fapp.yaml;h=3624f848060579ee6f8cef761db113bb6300c2e0;hb=3283f01dc3092ac5dbd1400090d7eb9f14fcd279;hp=b53f22ad637424bb033143716c4ba015669ce3f6;hpb=d2aeca8843fe3ffca2e73dec5b64daeef0dda938;p=nonrtric.git diff --git a/test/simulator-group/a1pms/app.yaml b/test/simulator-group/a1pms/app.yaml index b53f22ad..3624f848 100644 --- a/test/simulator-group/a1pms/app.yaml +++ b/test/simulator-group/a1pms/app.yaml @@ -1,3 +1,20 @@ +# ============LICENSE_START======================================================= +# Copyright (C) 2020-2022 Nordix Foundation +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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========================================================= apiVersion: apps/v1 kind: Deployment metadata: @@ -36,6 +53,29 @@ spec: name: a1pms-pv-data-name - mountPath: $A1PMS_DATA_MOUNT_PATH name: a1pms-data-name +#A1PMS_JWT_START + - mountPath: $A1PMS_SIDECAR_MOUNT + name: token-cache-volume +#A1PMS_JWT_STOP +#A1PMS_JWT_START + - name: $AUTHSIDECAR_APP_NAME + image: $AUTHSIDECAR_IMAGE + imagePullPolicy: $KUBE_IMAGE_PULL_POLICY + env: + - name: CREDS_GRANT_TYPE + value: $A1PMS_CREDS_GRANT_TYPE + - name: CREDS_CLIENT_SECRET + value: $A1PMS_CREDS_CLIENT_SECRET + - name: CREDS_CLIENT_ID + value: $A1PMS_CREDS_CLIENT_ID + - name: OUTPUT_FILE + value: $A1PMS_SIDECAR_JWT_FILE + - name: AUTH_SERVICE_URL + value: $A1PMS_AUTH_SERVICE_URL + volumeMounts: + - mountPath: $A1PMS_SIDECAR_MOUNT + name: token-cache-volume +#A1PMS_JWT_STOP volumes: - configMap: defaultMode: 420 @@ -48,6 +88,10 @@ spec: - persistentVolumeClaim: claimName: $A1PMS_DATA_PVC_NAME name: a1pms-pv-data-name +#A1PMS_JWT_START + - name: token-cache-volume + emptyDir: {} +#A1PMS_JWT_STOP # Selector will be set when pod is started first time nodeSelector: