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 ability to use custom basePath #511

Merged
merged 10 commits into from
Jun 3, 2021
Merged

Add ability to use custom basePath #511

merged 10 commits into from
Jun 3, 2021

Conversation

RustamGimadiev
Copy link
Contributor

@RustamGimadiev RustamGimadiev commented May 31, 2021

  • Breaking change? (if so, please describe the impact and migration path for existing applications:)

What changes did you make? (Give an overview)

  • changed webfilter for spring boot app
  • usage of relative paths in index.html file

Is there anything you'd like reviewers to focus on?
These changes will resolve #364, to test this deployment case need to execute docker compose up -f docker/kafka-ui-reverse-proxy.yaml, it simulates the same behavior as ingress with custom basePath in K8s
How Has This Been Tested? (put an "X" next to an item)

  • No need to
  • Manually(please, describe, when necessary)
  • Unit checks
  • Integration checks
  • Covered by existing automation

Checklist (put an "X" next to an item, otherwise PR will fail)

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (e.g. ENVIRONMENT VARIABLES)
  • My changes generate no new warnings(e.g. Sonar is happy)
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged

Check out Contributing and Code of Conduct

@andormarkus
Copy link
Contributor

Hi @RustamGimadiev. Does it solves #364 (comment) ?

@RustamGimadiev
Copy link
Contributor Author

hi @andormarkus yes, this PR will solve that issue, now need to do some frontend works to fix broken links in the sidebar, I guess the ALB ingress controller will also get working, now we test it with nginx without rewrite rules

@RustamGimadiev RustamGimadiev changed the title Add ability to use relative paths Add ability to use custom basePath Jun 3, 2021
@sonarcloud
Copy link

sonarcloud bot commented Jun 3, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

50.0% 50.0% Coverage
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented Jun 3, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 51 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@workshur workshur merged commit fcc703d into master Jun 3, 2021
@workshur workshur deleted the fix-relative-path branch June 3, 2021 12:46
andormarkus pushed a commit to andormarkus/kafka-ui that referenced this pull request Jun 4, 2021
…sePath is used than Helm chart livenessProbe and readinessProbe will fail because it will try to probe on the default path which does not exist anymore. With these changes it automatically picks up `SERVER_SERVLET_CONTEXT_PATH` from the myconfig.yaml and sets correct path for livenessProbe and readinessProbe
RustamGimadiev pushed a commit that referenced this pull request Jul 2, 2021
… used than Helm chart livenessProbe and readinessProbe will fail because it will try to probe on the default path which does not exist anymore. With these changes it automatically picks up `SERVER_SERVLET_CONTEXT_PATH` from the myconfig.yaml and sets correct path for livenessProbe and readinessProbe
javalover123 pushed a commit to javalover123/kafka-ui that referenced this pull request Dec 7, 2022
* add ability to use relative pathes

* Add basename prop (provectus#513)

* add static controller

* add docker-compose

* Refactoring

* Refactoring

* fixed comparison bugs

* dirty

* clenaup

* Update React app

Co-authored-by: Alexander Krivonosov <31561808+GneyHabub@users.noreply.github.com>
Co-authored-by: German Osin <german.osin@gmail.com>
Co-authored-by: Oleg Shuralev <workshur@gmail.com>
javalover123 pushed a commit to javalover123/kafka-ui that referenced this pull request Dec 7, 2022
…sePath is used than Helm chart livenessProbe and readinessProbe will fail because it will try to probe on the default path which does not exist anymore. With these changes it automatically picks up `SERVER_SERVLET_CONTEXT_PATH` from the myconfig.yaml and sets correct path for livenessProbe and readinessProbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope/backend scope/frontend type/enhancement En enhancement to an already existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ingress doesn't return static resources
5 participants