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

fixed error when using get with empty namespace #255

Merged

Conversation

Mixaster995
Copy link
Contributor

Signed-off-by: Mikhail Avramenko avramenkomihail15@gmail.com

Description

k8s api rest methods not working properly with empty namespaces, so changed get to list

Issue

part of #252

Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com>
if err == nil {
exist.Spec = *(*v1.NetworkServiceEndpointSpec)(request)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this line removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

if err == nil {
exist.Spec = *(*v1.NetworkServiceSpec)(request)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this line removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Signed-off-by: Mikhail Avramenko <avramenkomihail15@gmail.com>
@denis-tingaikin denis-tingaikin merged commit 10c8425 into networkservicemesh:main Oct 12, 2021
nsmbot pushed a commit to networkservicemesh/cmd-forwarder-sriov that referenced this pull request Oct 12, 2021
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#255

Commit: 10c8425
Author: Denis Tingaikin
Date: 2021-10-12 14:57:37 +0300
Message:
  - Merge pull request #255 from Mixaster995/bug/empty-ns-error
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-k8s that referenced this pull request Oct 12, 2021
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#255

Commit: 10c8425
Author: Denis Tingaikin
Date: 2021-10-12 14:57:37 +0300
Message:
  - Merge pull request #255 from Mixaster995/bug/empty-ns-error
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-supplier-k8s that referenced this pull request Oct 12, 2021
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#255

Commit: 10c8425
Author: Denis Tingaikin
Date: 2021-10-12 14:57:37 +0300
Message:
  - Merge pull request #255 from Mixaster995/bug/empty-ns-error
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
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.

2 participants