X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric_robot_suite%2Fhelm%2Fric-robot%2Ftemplates%2Fdeployment.yaml;fp=ric_robot_suite%2Fhelm%2Fric-robot%2Ftemplates%2Fdeployment.yaml;h=871742aa6f3e0a70a3568045c6357e0fbb04e3e2;hb=abf59d601e8f49d9f3fee915ee167854e5f90098;hp=6dea20e515d32c67f08d49c3f245ea3d5cf49c09;hpb=e3a2b6fed94e2caab5f9f2424beace6e4cea0013;p=it%2Ftest.git diff --git a/ric_robot_suite/helm/ric-robot/templates/deployment.yaml b/ric_robot_suite/helm/ric-robot/templates/deployment.yaml index 6dea20e..871742a 100644 --- a/ric_robot_suite/helm/ric-robot/templates/deployment.yaml +++ b/ric_robot_suite/helm/ric-robot/templates/deployment.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "ric-robot.fullname" . }} @@ -24,11 +24,20 @@ metadata: heritage: {{ .Release.Service }} spec: replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app: {{ include "ric-robot.name" . }} + release: {{ .Release.Name }} template: metadata: + {{- if .Values.rtmgr.annotations }} + annotations: + {{- .Values.rtmgr.annotations | nindent 8 -}} + {{ end }} labels: - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/managed-by: {{ .Release.Service }} + app: {{ include "ric-robot.name" . }} + release: {{ .Release.Name }} + robotImplementation: {{ .Values.robotImplementation }} spec: containers: - name: {{ include "ric-robot.name" . }} @@ -38,7 +47,7 @@ spec: - name: RICPLT_NAMESPACE value: {{ .Release.Namespace }} - name: RICPLT_RELEASE_NAME - value: {{ .Values.Release.HelmReleaseName }} + value: {{ .Release.Name }} - name: RICPLT_COMPONENTS value: {{ keys .Values.ric.platform.components | join " " }} ports: