-
Notifications
You must be signed in to change notification settings - Fork 6
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
WIP: Multiple Namespaces #138
Conversation
- Deprecates the `namespace` field - Adds support for multiple namespaces using the `namespaces` field - Handles usage of deprecated field - Updates ginkgo testing framework to v2
# Conflicts: # go.mod # go.sum
@billiford Can you review this PR? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see where we're actually utilizing the new Namespaces array, for example in deploy.go
/patch.go
, etc. Anything that references provider.Namespace
now needs to references provider.Namespaces
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@billiford can you re-review? I've made the changes you requested |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't see where we're referencing the new Namespaces array. For example, in internal/kubernetes/provider.go
on line 67 I see
if p.Namespace != nil {
for _, value := range clusterScopedKinds {
if strings.EqualFold(value, kind) {
return fmt.Errorf("namespace-scoped account not allowed to access cluster-scoped kind: '%s'", kind)
}
}
}
When this should say if len(provider.Namespaces) > 0
. I would just comment out the Namespace
field to see where all it is used and change the logic accordingly.
@billiford are you sure you're looking at the right version of the code? That file was already updated to reference
|
My bad, I was merging from the wrong branch. |
…e clear and useful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This is to address issue #128.
Deprecates the
namespace
fieldIntroduces
namespaces
field to replacenamespace
Gracefully handles usage of deprecated field
Updates to ginkgo v2
Tests
Swagger Updated
Create new Table (see issue for details)