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

Generalize JSONPath? #4

Open
DazWilkin opened this issue Dec 25, 2020 · 0 comments
Open

Generalize JSONPath? #4

DazWilkin opened this issue Dec 25, 2020 · 0 comments

Comments

@DazWilkin
Copy link
Owner

Would it be possible to generalize the use of JSONPath such that multiple filters could be provided?

The challenge is that JSONPath is a filter mechanism but does not (!?) contain predicates.

We can do e.g.:

{.spec.brokerPodSpec.containers[*].resources.limits}
{.spec.brokerPodSpec.protocol}
...

But would want e.g.:

Perhaps providing the filters as configuration to the Deployment too:

        - name: webhook
          image: ghcr.io/dazwilkin/akri-webhook@...
          imagePullPolicy: Always
          args:
            - --filter="{.spec.brokerPodSpec.containers[*].resources.limits}"
            - --filter="{.spec.protocol.zeroconfg}"
            - --tls-crt-file=/secrets/tls.crt
            - --tls-key-file=/secrets/tls.key
            - --port=8443
            - --logtostderr
            - -v=2
          volumeMounts:
            - name: secrets
              mountPath: /secrets
              readOnly: true
      volumes:
        - name: secrets
          secret:
            secretName: SERVICE
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

1 participant