You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/11/29 12:00:12 UTC

[camel-k] 01/02: Default value of trait container.port-name is missing from catalog

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch fix-doc-port-name
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 265ffd1e99300fa07216775c135f8237327b7e7d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Nov 29 12:49:31 2021 +0100

    Default value of trait container.port-name is missing from catalog
---
 pkg/trait/container.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/trait/container.go b/pkg/trait/container.go
index 7ae6164..cefacf8 100644
--- a/pkg/trait/container.go
+++ b/pkg/trait/container.go
@@ -68,7 +68,7 @@ type containerTrait struct {
 	Expose *bool `property:"expose" json:"expose,omitempty"`
 	// To configure a different port exposed by the container (default `8080`).
 	Port int `property:"port" json:"port,omitempty"`
-	// To configure a different port name for the port exposed by the container (default `http`).
+	// To configure a different port name for the port exposed by the container. it defaults to `http` only when the `expose` parameter is true.
 	PortName string `property:"port-name" json:"portName,omitempty"`
 	// To configure under which service port the container port is to be exposed (default `80`).
 	ServicePort int `property:"service-port" json:"servicePort,omitempty"`