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

Enable CUSTOM ROUTE OpenShift specs properties #1003

Open
brucemelo opened this issue Jun 16, 2022 · 0 comments
Open

Enable CUSTOM ROUTE OpenShift specs properties #1003

brucemelo opened this issue Jun 16, 2022 · 0 comments

Comments

@brucemelo
Copy link

Hi, i need to apply custom route spec, for example, tls termination or another properties.

maybe something like that,

 list.addToItems(new RouteBuilder()
        .withNewMetadata()
        .withName(config.getName())
        .withLabels(Labels.createLabelsAsMap(config, "Route"))
        .endMetadata()
        .withNewSpec()
        .withHost(config.getHost())
        .withPath(port.getPath())
        .withNewTo()
        .withKind("Service")
        .withName(config.getName())
        .endTo()
        .withNewPort()
        .withNewTargetPort(port.getContainerPort())
        .endPort()

.customSpecs()

        .endSpec()
        .build());
  }

nice project, btw.

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