MCPcopy Create free account
hub / github.com/apache/camel-k / toggleDebug

Method toggleDebug

pkg/cmd/debug.go:134–138  ·  view source on GitHub ↗
(c camelv1.IntegrationsGetter, it *v1.Integration, active bool)

Source from the content-addressed store, hash-verified

132}
133
134func (o *debugCmdOptions) toggleDebug(c camelv1.IntegrationsGetter, it *v1.Integration, active bool) (*v1.Integration, error) {
135 it = o.toggle(it, active)
136
137 return c.Integrations(it.Namespace).Update(o.Context, it, metav1.UpdateOptions{})
138}
139
140func (o *debugCmdOptions) toggle(it *v1.Integration, active bool) *v1.Integration {
141 if it.Spec.Traits.JVM == nil {

Callers 1

runMethod · 0.95

Calls 3

toggleMethod · 0.95
UpdateMethod · 0.65
IntegrationsMethod · 0.65

Tested by

no test coverage detected