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

Update condition to select right pvc as child for statefulset #550

Merged
merged 5 commits into from
May 14, 2024

Conversation

hanzala1234
Copy link
Contributor

We have 2 pvc in namespace, one with name emqx-data-sw-broker-0 for statefulset sw-broker and other one is emqx-data-sw-broker-internal-0 for statefulset sw-broker-internal and both have same template name emqx-data. since emqx-data-sw-broker-internal-0 contains prefix emqx-data-sw-broker-, it consider it as part of sw-broker statefulset which is not right. fixing condition to check if it contains number at the end of prefix

Signed-off-by: hanzala <muhammad.hanzala@waltlabs.io>
Signed-off-by: hanzala <muhammad.hanzala@waltlabs.io>
Copy link

sonarcloud bot commented Nov 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@hanzala1234 hanzala1234 changed the title Update if condition to select right pvc as child for statefulset Updatecondition to select right pvc as child for statefulset Nov 9, 2023
@hanzala1234 hanzala1234 changed the title Updatecondition to select right pvc as child for statefulset Update condition to select right pvc as child for statefulset Nov 9, 2023
@bradenwright
Copy link

Any updates on this, I've experienced this issue as well and it would be nice to get it resolved.

@bradenwright
Copy link

any update on this issue?

@bradenwright
Copy link

any update on this? It's a bug fix and its been open for over 4 months

@pasha-codefresh
Copy link
Member

@hanzala1234 thank you for your contribution.

Could you please cover your changes with tests and also could you please add example yamls so i can test the fix locally?

@bradenwright
Copy link

i know @hanzala1234 did the work along with my company, I can try to take a look at that. I should have time this week (I'm gonna be traveling tomorrow).

@pasha-codefresh
Copy link
Member

Thank you @bradenwright

@bradenwright
Copy link

I've had a few fires pop up this week, so it will probably be a week or 2 til I have time to look into this.

Copy link

sonarcloud bot commented Apr 30, 2024

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@nerdeveloper
Copy link
Contributor

Hello @pasha-codefresh We have added some test cases/examples into the code, it is good to review now

@nerdeveloper
Copy link
Contributor

Just another reminder that need to be checked please @pasha-codefresh

@pasha-codefresh
Copy link
Member

@nerdeveloper will review it tomorrow, sorry, didnt notice your msg

@pasha-codefresh
Copy link
Member

Looks great for me, just doing manual testing and will merge it

@pasha-codefresh
Copy link
Member

Снимок экрана 2024-05-14 в 21 59 56

Issue is resolved, LGTM!

@pasha-codefresh pasha-codefresh merged commit 8a3ce6d into argoproj:master May 14, 2024
3 checks passed
@pasha-codefresh
Copy link
Member

@hanzala1234 , thank you for your contribution, feel free to open ArgoCD PR with gitops-engine version update, you can assign or tag me, i will review it

@hanzala1234
Copy link
Contributor Author

thanks @pasha-codefresh for merging MR. I will work on it tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants