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

Add support of matchLabels and matchExpressions for namespaceSelector #32

Closed
dmgtn opened this issue Aug 14, 2019 · 0 comments
Closed
Assignees
Milestone

Comments

@dmgtn
Copy link
Member

dmgtn commented Aug 14, 2019

Instead of adding support for wildcards, as is described in #20, let we better add something like this:

  "onKubernetesEvent": [
    {
      "name": "Monitor labeled pods in cache tier",
      "kind": "Pod",

      "namespace": {
        "matchLabels": {                          # NEW
          "myLabel": "myLabelValue",              # NEW
          "someKey": "someValue",                 # NEW
          ...                                     # NEW
        },                                        # NEW
        "matchExpressions": [                     # NEW
          {                                       # NEW
            "key": "tier",                        # NEW
            "operation": "In",                    # NEW
            "values": ["cache"],                  # NEW
          },                                      # NEW
      },
    }
  ]

Concepts of matchLabels and matchExpressions are widely used throughout Kubernetes API, in contradiction to wildcards.

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

No branches or pull requests

2 participants