Skip to content

Devfile samples generates broken Routes which use http instead of https #1270

Closed
@alexeykazakov

Description

@alexeykazakov

Which area this feature is related to?

Devfile samples

/kind bug

Which area this bug is related to?

/area registry

What versions of software are you using?

OpenShift 4.13.13

Bug Summary

Describe the bug:

I didn't check all the samples but at least those two:

https://github.com/devfile-samples/devfile-sample-code-with-quarkus.git
https://github.com/devfile-samples/devfile-sample-java-springboot-basic.git

result in broken Routes when used in OpenShift. The Routes are missing:

  tls:
    termination: edge
    insecureEdgeTerminationPolicy: Redirect

To Reproduce:

  1. In Web Console go to the Developer perspective. Then "Add" and choice there the affected samples. After the app is build and deployed try to open the route. The route uses http:// instead of https://

Any workaround?

Manually modify the route and fix it by adding:

  tls:
    termination: edge
    insecureEdgeTerminationPolicy: Redirect

Metadata

Metadata

Labels

area/registryDevfile registry for stacks and infrastructurekind/bugSomething isn't working

Type

No type

Projects

Status

Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions