Skip to content

Commit

Permalink
Merge pull request #13818 from cyril-ui-developer/trigger-warning-pos…
Browse files Browse the repository at this point in the history
…t-update-methods-only

OCPBUGS-33222: List DeploymentConfig triggers a warning notification which is not required for Display warning policy feature
  • Loading branch information
openshift-merge-bot[bot] committed May 4, 2024
2 parents c705416 + 11934f3 commit 9c2cf8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const consoleFetchCommon = async (
const warning = response.headers.get('Warning');

// If the response has a warning header, store it in the redux store.
if (response.ok && warning) {
if (response.ok && warning && method !== 'GET') {
// Do nothing on error since this is a side-effect. Caller will handle the error.
dataPromise
.then((data) => handleAdmissionWebhookWarning(warning, data.kind, data.metadata?.name))
Expand Down

0 comments on commit 9c2cf8b

Please sign in to comment.