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

Improve error when resources have no namespace #59

Open
garomonegro opened this issue Jul 11, 2022 · 0 comments
Open

Improve error when resources have no namespace #59

garomonegro opened this issue Jul 11, 2022 · 0 comments
Labels
enhancement New feature or request kube Kubernetes related P1 High Priority steps Related to Cucumber Steps

Comments

@garomonegro
Copy link
Collaborator

When an object has no namespace, kubedog fails with the following error the server does not allow this method on the requested resource. That is not a clear error msg.

❯ godog run features/no-namespace.feature
Feature: install my resource
INFO[0000] [KUBEDOG] Credentials: arn:aws:sts::663374536332:assumed-role/PowerUser/IntuitOlympus-agaro-50002266530-1657559762083

  Scenario: Install my resource                      # features/no-namespace.feature:3
    Given valid AWS Credentials                      # <autogenerated>:1 -> *Client
    And a Kubernetes cluster                         # <autogenerated>:1 -> *Client
    And I create the resources in ingress.yaml       # <autogenerated>:1 -> *Client
    the server does not allow this method on the requested resource
    Then the resource ingress.yaml should be created # <autogenerated>:1 -> *Client

--- Failed steps:

  Scenario: Install my resource # features/no-namespace.feature:3
    And I create the resources in ingress.yaml # features/no-namespace.feature:7
      Error: the server does not allow this method on the requested resource


1 scenarios (1 failed)
4 steps (2 passed, 1 failed, 1 skipped)
2.783943435s

We should improve that. To do so we need parse the objects to look for the absence of the namespace and log that properly.

@garomonegro garomonegro added enhancement New feature or request steps Related to Cucumber Steps kube Kubernetes related P1 High Priority labels Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kube Kubernetes related P1 High Priority steps Related to Cucumber Steps
Projects
None yet
Development

No branches or pull requests

1 participant