Giter Site home page Giter Site logo

Comments (11)

fjogeleit avatar fjogeleit commented on June 16, 2024 1

This feature already exists. It's in the UI Subchart

https://github.com/kyverno/policy-reporter/blob/main/charts/policy-reporter/charts/ui/values.yaml#L75-L89

So you can configure it in your policy-reporter values.yaml under the ui key.

ui:
  ingress:
    enabled: true
    ...

from policy-reporter.

shilpa-0 avatar shilpa-0 commented on June 16, 2024 1

I somehow missed it :/ Thank you 👍

from policy-reporter.

fjogeleit avatar fjogeleit commented on June 16, 2024 1

I will try to create an example today. What kind of ingress controller do you use?

from policy-reporter.

fjogeleit avatar fjogeleit commented on June 16, 2024 1

I tried it by myself and I'm sorry but it's not that easy as it should. Because VueJS need the subPath at build time, so it is static defined in the docker image and I did not find a solution to configure it at runtime.

I will try to find a solution but it can take a few days.

from policy-reporter.

fjogeleit avatar fjogeleit commented on June 16, 2024

hey, thank you for your request.

Do you mean something like "https://domain.com/policy-reporter-ui" ?

from policy-reporter.

shilpa-0 avatar shilpa-0 commented on June 16, 2024

@fjogeleit: yes

For example, in kube-prometheus-stack helm chart, there is the option configure the Ingress resource for alertmanager:
https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml#L210-L229

Could you provide a similar feature for the policy-reporter-ui?

from policy-reporter.

shilpa-0 avatar shilpa-0 commented on June 16, 2024

Configuring ingress is not enough. I tried this out by configuring an ingress resource manually and it did not work.
Does the underlying UI application support being hosted on a sub-path?
Could you please support this?

from policy-reporter.

shilpa-0 avatar shilpa-0 commented on June 16, 2024

@fjogeleit: nginx. ingress-nginx to be specific: https://github.com/kubernetes/ingress-nginx

from policy-reporter.

shilpa-0 avatar shilpa-0 commented on June 16, 2024

@fjogeleit: Thank you for the update

from policy-reporter.

fjogeleit avatar fjogeleit commented on June 16, 2024

@shilpa-0 I found a solution for this problem and created a new Policy Report UI version. I will publish a new helm release soon. If you want to try it out before you can use a similar configuration like this:

ui:
  image: 
    tag: 0.13.2

  enabled: true

  plugins:
    kyverno: true

  ingress:
    enabled: true
    annotations:
      nginx.ingress.kubernetes.io/rewrite-target: /$1
    hosts:
      - host: domain.com
        paths:
        - "/policy-reporter/(.*)"

Important - the UI will be available under http://domain.com/policy-reporter/ - the last / is required.

from policy-reporter.

fjogeleit avatar fjogeleit commented on June 16, 2024

The subPath support is released with 1.8.7 of the Helm Chart

from policy-reporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.