reportportal / kubernetes

Kubernetes/Helm configs for ReportPortal
https://reportportal.io
Apache License 2.0
74 stars 191 forks source link

Wrong job name #335

Closed maluyvova closed 9 months ago

maluyvova commented 9 months ago

Description

I encountered an issue while deploying using the latest master branch from the repository and installing it via Helm. The problem arises with the initialization container in the UAT pod, preventing it from starting correctly.

Issue Details

Pod: release1-reportportal-uat-68c6d75c97-jq86q

Logs Investigation

When checking the logs of the migrations-waiting-init container, I received an error:

kubectl logs release1-reportportal-uat-68c6d75c97-jq86q -c migrations-waiting-init
Error from server (NotFound): jobs.batch "release1-migrations" not found

However, upon inspecting the existing jobs:

kubectl get job
NAME                               COMPLETIONS   DURATION   AGE
release1-reportportal-migrations   1/1           2m16s      15m

Helm Deployment

The Helm deployment was initiated with the following command:

helm install release1 --set uat.superadminInitPasswd.password="MyPassword" .

Steps to Reproduce

  1. Clone the repository.
  2. Checkout the latest master branch.
  3. Install the deployment using Helm.

Expected Behavior

The UAT pod should initialize successfully without encountering the NotFound error related to the job.

Additional Information

Suggestions or Questions


raikbitters commented 9 months ago

Hello @maluyvova. We've already resolved the issue in the development branch. You can fix it using {{ include "reportportal.fullname" . }}-migrations instead of {{ Release.name" . }}-migrations into migrations-waiting-init args.