Function test updates
[nonrtric.git] / test / simulator-group / sdnc / app.yaml
index cd170f6..361d6cc 100644 (file)
@@ -1,8 +1,25 @@
+#  ============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:
   name: $SDNC_APP_NAME
-  namespace: $KUBE_NONRTRIC_NAMESPACE
+  namespace: $KUBE_SDNC_NAMESPACE
   labels:
     run: $SDNC_APP_NAME
     autotest: SDNC
@@ -20,7 +37,7 @@ spec:
       containers:
       - name: $SDNC_APP_NAME
         image: $SDNC_A1_CONTROLLER_IMAGE
-        imagePullPolicy: Never
+        imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
         ports:
         - name: http
           containerPort: $SDNC_INTERNAL_PORT
@@ -35,6 +52,10 @@ spec:
           value: 'true'
         - name: A1_TRUSTSTORE_PASSWORD
           value: $SDNC_A1_TRUSTSTORE_PASSWORD
+        - name: ODL_ADMIN_USERNAME
+          value: $SDNC_USER
+        - name: ODL_ADMIN_PASSWORD
+          value: $SDNC_PWD
         command:
         - /opt/onap/sdnc/bin/startODL.sh
 ---
@@ -42,7 +63,7 @@ apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: $SDNC_DB_APP_NAME
-  namespace: $KUBE_NONRTRIC_NAMESPACE
+  namespace: $KUBE_SDNC_NAMESPACE
   labels:
     run: $SDNC_DB_APP_NAME
     autotest: SDNC
@@ -60,7 +81,7 @@ spec:
       containers:
         - name: $SDNC_DB_APP_NAME
           image: $SDNC_DB_IMAGE
-          imagePullPolicy: Never
+          imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
           ports:
           - name: http
             containerPort: 3306