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

fix: webhook handler fails to refresh when alternate application namespaces are configured (cherry-pick #13976) #14653

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

gcp-cherry-pick-bot[bot]
Copy link

Cherry-picked fix: webhook handler fails to refresh when alternate application namespaces are configured (#13976)

  • fix: Add failing test for webhooks in all namespaces

This adds a failing test that properly exercises this functionality over
all namespaces. The issue with the code that is under test is that it
does not pass the namespace correctly to the patch of the application,
resulting in the patch not taking place in the correct namespace

Signed-off-by: Nikolas Skoufis nskoufis@seek.com.au

  • fix: queue webhook refresh for apps in all namespaces

This passes the test in the previous commit, to ensure that webhooks
correctly refresh applications across all namespaces.

Signed-off-by: Nikolas Skoufis nskoufis@seek.com.au

  • fix: Use existing NamespacedName type

Use the existing type instead of a custom type

Signed-off-by: Nikolas Skoufis nskoufis@seek.com.au


Signed-off-by: Nikolas Skoufis nskoufis@seek.com.au

…spaces are configured (#13976)

* fix: Add failing test for webhooks in all namespaces

This adds a failing test that properly exercises this functionality over
all namespaces. The issue with the code that is under test is that it
does not pass the namespace correctly to the patch of the application,
resulting in the patch not taking place in the correct namespace

Signed-off-by: Nikolas Skoufis <nskoufis@seek.com.au>

* fix: queue webhook refresh for apps in all namespaces

This passes the test in the previous commit, to ensure that webhooks
correctly refresh applications across all namespaces.

Signed-off-by: Nikolas Skoufis <nskoufis@seek.com.au>

* fix: Use existing NamespacedName type

Use the existing type instead of a custom type

Signed-off-by: Nikolas Skoufis <nskoufis@seek.com.au>

---------

Signed-off-by: Nikolas Skoufis <nskoufis@seek.com.au>
@crenshaw-dev crenshaw-dev enabled auto-merge (squash) July 21, 2023 18:31
@crenshaw-dev crenshaw-dev merged commit ba44ddb into release-2.7 Jul 21, 2023
7 of 12 checks passed
@crenshaw-dev crenshaw-dev deleted the cherry-pick-13b49a-release-2.7 branch July 21, 2023 18:31
schakrad pushed a commit to schakrad/argo-cd that referenced this pull request Jul 24, 2023
…spaces are configured (argoproj#13976) (argoproj#14653)

* fix: Add failing test for webhooks in all namespaces

This adds a failing test that properly exercises this functionality over
all namespaces. The issue with the code that is under test is that it
does not pass the namespace correctly to the patch of the application,
resulting in the patch not taking place in the correct namespace

* fix: queue webhook refresh for apps in all namespaces

This passes the test in the previous commit, to ensure that webhooks
correctly refresh applications across all namespaces.

* fix: Use existing NamespacedName type

Use the existing type instead of a custom type

---------

Signed-off-by: Nikolas Skoufis <nskoufis@seek.com.au>
Co-authored-by: Nik Skoufis <n.skoufis@gmail.com>
Signed-off-by: schakrad <58915923+schakrad@users.noreply.github.com>
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

2 participants