Skip to content

Commit

Permalink
Knative: not rename the container port for all deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sgitario committed Dec 20, 2022
1 parent e494096 commit c0305d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void generate(KnativeConfig config) {
resourceRegistry.decorate(KNATIVE, new AddCommitIdAnnotationDecorator());

resourceRegistry.decorate(KNATIVE,
new ApplyPortNameDecorator(null, null,
new ApplyPortNameDecorator(config.getName(), null,
config.getHttpTransportVersion() != null ? config.getHttpTransportVersion().name().toLowerCase() : "http1",
Ports.webPortNames().toArray(new String[Ports.webPortNames().size()])));
addDecorators(KNATIVE, config);
Expand Down

0 comments on commit c0305d7

Please sign in to comment.