diff options
author | 2020-09-07 13:38:42 +0200 | |
---|---|---|
committer | 2020-09-07 11:51:24 +0000 | |
commit | 5a01a0953803b3d1b140a77c779a3b942e293228 (patch) | |
tree | 9e9fda9f276a301704ad2de7ddad2585c3609902 /components/aai-graphadmin/templates/deployment.yaml | |
parent | 1990a02ce9295df7c94009401c24fa226a10f8e8 (diff) |
[AAI] Use readiness container v3.0.1
Readiness container v3.x and up are now present in ONAP main repository.
They're also not using root user anymore and then script path has
changed.
Finally, "job_complete" script has been integrated in main "ready"
script.
This change will align readinessImage definition with rest of ONAP
components.
Issue-ID: OOM-2545
Signed-off-by: Grzegorz Lis <grzegorz.lis@nokia.com>
Change-Id: I766a16be3ae2669f562c9b4ebef875bfbdfac6a0
Diffstat (limited to 'components/aai-graphadmin/templates/deployment.yaml')
-rw-r--r-- | components/aai-graphadmin/templates/deployment.yaml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/components/aai-graphadmin/templates/deployment.yaml b/components/aai-graphadmin/templates/deployment.yaml index bee6b75..a43e984 100644 --- a/components/aai-graphadmin/templates/deployment.yaml +++ b/components/aai-graphadmin/templates/deployment.yaml @@ -2,7 +2,8 @@ # ============LICENSE_START======================================================= # org.onap.aai # ================================================================================ -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2020 Nokia Intellectual Property. 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. @@ -45,17 +46,17 @@ spec: initContainers: - command: {{ if .Values.global.jobs.migration.enabled }} - - /root/job_complete.py + - /app/ready.py args: - --job-name - {{ include "common.release" . }}-aai-graphadmin-migration {{ else if .Values.global.jobs.createSchema.enabled }} - - /root/job_complete.py + - /app/ready.py args: - --job-name - {{ include "common.release" . }}-aai-graphadmin-create-db-schema {{ else }} - - /root/ready.py + - /app/ready.py args: - --container-name {{- if .Values.global.cassandra.localCluster }} @@ -72,7 +73,7 @@ spec: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - image: "{{ .Values.global.legacyReadinessRepository }}/{{ .Values.global.legacyReadinessImage }}" + image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}" imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} name: {{ include "common.name" . }}-readiness {{ end }} |