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

Misleading "service.enabled=false" when used in combination with the prometheus trait #768

Closed
lburgazzoli opened this issue Jun 23, 2019 · 0 comments · Fixed by #825
Closed
Assignees
Labels
kind/question Further information is requested
Milestone

Comments

@lburgazzoli
Copy link
Contributor

lburgazzoli commented Jun 23, 2019

Assuming I run an integration with

-t service.enabled=false -t prometheus.enabled=true

My expectation is that no services are created, but instead the prometheus trait does create it so I'm wondering if we should re-think the service trait and reason more in term of container port so:

  • every trait could add ports definitions
  • the service trait will assemble the service as final step
type containerTrait struct {
	BaseTrait `property:",squash"`

	RequestCPU      string `property:"request-cpu"`
	RequestMemory   string `property:"request-memory"`
	LimitCPU        string `property:"limit-cpu"`
	LimitMemory     string `property:"limit-memory"`

	Port            int32  `property:"port"`
	PortName        string `property:"port-name"`
	ServicePort     int32  `property:"service-port"`
	ServicePortName int32  `property:"service-port-name"`
}

type prometheusTrait struct {
	BaseTrait `property:",squash"`

	Port                 int    `property:"port"`
	PortName             string `property:"port-name"`
	ServicePort          int32  `property:"service-port"`
	ServicePortName      int32  `property:"service-port-name"`

	ServiceMonitor       bool   `property:"service-monitor"`
	ServiceMonitorLabels string `property:"service-monitor-labels"`
}
@lburgazzoli lburgazzoli added the kind/question Further information is requested label Jun 23, 2019
@lburgazzoli lburgazzoli self-assigned this Jul 17, 2019
lburgazzoli added a commit to lburgazzoli/apache-camel-k that referenced this issue Jul 17, 2019
lburgazzoli added a commit to lburgazzoli/apache-camel-k that referenced this issue Jul 17, 2019
lburgazzoli added a commit to lburgazzoli/apache-camel-k that referenced this issue Jul 17, 2019
@lburgazzoli lburgazzoli added this to the 1.0.0-M1 milestone Jul 17, 2019
lburgazzoli added a commit to lburgazzoli/apache-camel-k that referenced this issue Jul 17, 2019
lburgazzoli added a commit to lburgazzoli/apache-camel-k that referenced this issue Jul 17, 2019
lburgazzoli added a commit to lburgazzoli/apache-camel-k that referenced this issue Jul 17, 2019
ipolyzos pushed a commit to ipolyzos/camel-k that referenced this issue Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Further information is requested
Projects
None yet
1 participant