diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 7ad70e8..aa152fc 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -84,6 +84,7 @@ jobs: --namespace=api \ --restart=Never \ --port=8080 \ + --labels="app=api-gateway,managed-by=argocd,role=test,test-run=${{ steps.sha.outputs.short_sha }}" \ --overrides='{"spec":{"containers":[{"name":"gateway","securityContext":{"runAsNonRoot":true,"runAsUser":65532,"allowPrivilegeEscalation":false}}]}}' echo "Waiting for test pod to be ready..." diff --git a/k8s/integration-test-job.yaml b/k8s/integration-test-job.yaml index d6f8243..197abe5 100644 --- a/k8s/integration-test-job.yaml +++ b/k8s/integration-test-job.yaml @@ -5,6 +5,11 @@ metadata: namespace: api spec: template: + metadata: + labels: + app: api-gateway + managed-by: test + role: integration-test spec: serviceAccountName: api-gateway restartPolicy: Never