-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: config query grammar #1224
Conversation
597cc87
to
099b828
Compare
var _ = Describe("grammer", func() { | ||
|
||
It("parses", func() { | ||
result, err := ParsePEG("john:doe metadata.name=bob metadata.name!=harry spec.status.reason!=\"failed reson\" -jane johnny type!=pod type!=replicaset namespace!=\"a,b,c\"") |
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.
Can we expand these tests out ?
}{ | ||
{ | ||
description: "config item query", | ||
query: `name="node-b" type="Kubernetes::Node"`, |
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.
query: `name="node-b" type="Kubernetes::Node"`, | |
query: `name=node-b type=Kubernetes::Node`, |
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.
can we also add a name=node-b type=kubernetes::node
(case insensitivity)
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.
Doing the suggested will cause the test to fail as things get parsed incorrectly
f4fa27f
to
9c7f06f
Compare
No description provided.