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

Automated backport of #905: Add IsMissingNamespaceErr function #906

Conversation

tpantelis
Copy link
Contributor

Backport of #905 on release-0.17.

#905: Add IsMissingNamespaceErr function

For details on the backport process, see the backport requests page.

tpantelis added 2 commits May 6, 2024 09:38
Checks if the error indicates the namespace for a resource is missing
when trying to create it. In this case the error is NotFound and the
status details reflects the "namespaces" Kind. For example:

{
  "ErrStatus": {
    "status": "Failure",
    "message": "namespaces \"foo\" not found",
    "reason": "NotFound",
    "details": {
      "name": "foo",
      "kind": "namespaces"
    },
    "code": 404
  }
}

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
...as is done in other projects.

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr906/tpantelis/automated-backport-of-#905-upstream-release-0.17

@tpantelis tpantelis enabled auto-merge (rebase) May 6, 2024 13:39
@tpantelis tpantelis disabled auto-merge May 6, 2024 14:40
@tpantelis tpantelis merged commit 84fdf58 into submariner-io:release-0.17 May 6, 2024
16 checks passed
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr906/tpantelis/automated-backport-of-#905-upstream-release-0.17]

@tpantelis tpantelis deleted the automated-backport-of-#905-upstream-release-0.17 branch July 17, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants