From 7dab02ff33e972a713b826bed84c4d17bb6d32f3 Mon Sep 17 00:00:00 2001
From: Jamalac Orange <14492-x-JaOrang@users.noreply.gitlab.inria.fr>
Date: Wed, 16 Nov 2022 14:50:37 +0100
Subject: [PATCH] feature(ci): add label to service.yml

---
 src/k8s/deployment.yml | 3 ---
 src/k8s/service.yml    | 4 +++-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/k8s/deployment.yml b/src/k8s/deployment.yml
index 2ee78516..866f961f 100644
--- a/src/k8s/deployment.yml
+++ b/src/k8s/deployment.yml
@@ -2,9 +2,6 @@ apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: submission-code-server-deployment
-  labels:
-    app: submission-code-server
-    name: submission-code-server
 spec:
   revisionHistoryLimit: 1
   selector:
diff --git a/src/k8s/service.yml b/src/k8s/service.yml
index 8b9b13b2..f52abedb 100644
--- a/src/k8s/service.yml
+++ b/src/k8s/service.yml
@@ -1,9 +1,11 @@
 apiVersion: v1
 kind: Service
 metadata:
+  labels:
+    application: tac # do not delete, used for billing
   name: submission-code-server-service # Service name
 spec:
-  type: NodePort # Sets the service type
+  type: NodePort
   selector:
     app: submission-code-server # Defines app that will be targeted
   ports:
-- 
GitLab