Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improve the operator deployment detection #4427

Merged
merged 4 commits into from
May 15, 2024
Merged

chore: improve the operator deployment detection #4427

merged 4 commits into from
May 15, 2024

Conversation

sxd
Copy link
Member

@sxd sxd commented May 3, 2024

Using the Deployment object from the Kubernetes environment we can get all the information for the deployment more accurate than just listing and counting pods, which it's an issue when you have another pod in the same namespace.

Closes #4426

@github-actions github-actions bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.21 release-1.22 release-1.23 labels May 3, 2024
Copy link
Contributor

github-actions bot commented May 3, 2024

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@jsilvela
Copy link
Collaborator

jsilvela commented May 7, 2024

/test feature_type=operator test_level=4

Copy link
Contributor

github-actions bot commented May 7, 2024

@jsilvela, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/8985522953

@cloudnative-pg cloudnative-pg deleted a comment from github-actions bot May 7, 2024
@jsilvela
Copy link
Collaborator

jsilvela commented May 7, 2024

/test feature_type=operator test_level=4

Copy link
Contributor

github-actions bot commented May 7, 2024

@jsilvela, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/8987412660

Copy link
Contributor

github-actions bot commented May 7, 2024

@jsilvela, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/8987414033

@leonardoce leonardoce self-assigned this May 15, 2024
@leonardoce
Copy link
Contributor

@sxd
Copy link
Member Author

sxd commented May 15, 2024

/test feature_type=operator test_level=4 limit=local depoth=schedule

Copy link
Contributor

@sxd, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/9098443345

@sxd
Copy link
Member Author

sxd commented May 15, 2024

/test feature_type=operator test_level=4 limit=local depoth=schedule

Copy link
Contributor

@sxd, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/9098860101

@github-actions github-actions bot added the ok to merge 👌 This PR can be merged label May 15, 2024
sxd and others added 4 commits May 15, 2024 21:27
Using the Deployment object from the Kubernetes environment we can get
all the information for the deployment more accurated than just listing
and couting pods, which it's an issue when you have another pod in the
same namespace.

Closes #4426

Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com>
Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
@leonardoce leonardoce merged commit 32528f4 into main May 15, 2024
29 of 30 checks passed
@leonardoce leonardoce deleted the dev/4426 branch May 15, 2024 20:30
cnpg-bot pushed a commit that referenced this pull request May 15, 2024
This patch makes the E2e tests get the number of operator Pods by
looking into the Deployment resource instead of counting the listed
Pods.

The E2e tests will now work when more than one operator is deployed
in the same namespace, i.e. when operators are deployed with OLM.

Closes #4426

Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com>
Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
(cherry picked from commit 32528f4)
cnpg-bot pushed a commit that referenced this pull request May 15, 2024
This patch makes the E2e tests get the number of operator Pods by
looking into the Deployment resource instead of counting the listed
Pods.

The E2e tests will now work when more than one operator is deployed
in the same namespace, i.e. when operators are deployed with OLM.

Closes #4426

Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com>
Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
(cherry picked from commit 32528f4)
cnpg-bot pushed a commit that referenced this pull request May 15, 2024
This patch makes the E2e tests get the number of operator Pods by
looking into the Deployment resource instead of counting the listed
Pods.

The E2e tests will now work when more than one operator is deployed
in the same namespace, i.e. when operators are deployed with OLM.

Closes #4426

Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com>
Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
(cherry picked from commit 32528f4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-requested ◀️ This pull request should be backported to all supported releases ok to merge 👌 This PR can be merged release-1.21 release-1.22 release-1.23
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Operator test should rely on Deployments not counting pods
4 participants