Skip to content

fix: add enabled condition check for collector agent and gateway (#165)#188

Open
wang4150 wants to merge 1 commit intoopenobserve:mainfrom
wang4150:fix/collector-enabled-condition
Open

fix: add enabled condition check for collector agent and gateway (#165)#188
wang4150 wants to merge 1 commit intoopenobserve:mainfrom
wang4150:fix/collector-enabled-condition

Conversation

@wang4150
Copy link

@wang4150 wang4150 commented Feb 3, 2026

Bug Description

Fixes #165 - The agent.enabled and gateway.enabled settings in values.yaml have no effect. Agent DaemonSet and Gateway are always created regardless of the values set.

Changes

  • Added {{- if .Values.agent.enabled }} conditional check in agent.yaml template
  • Added {{- if .Values.gateway.enabled }} conditional check in gateway.yaml template

Impact

  • ✅ Allows users to disable Agent DaemonSet when not needed
  • ✅ Allows users to disable Gateway when only Agent is needed
  • ✅ Enables more flexible deployment configurations
  • ✅ Maintains backward compatibility - default behavior unchanged (both enabled by default)

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

Successfully merging this pull request may close these issues.

collector chart enabled

1 participant