Skip to content

fix bugs around prometheus cr #209

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gane5hvarma
Copy link

Issue #, if available:

Description of changes:
The helm charts have bugs around enabling prometheusCR. If prometheusCR is enabled true, it leads to this error.

Error: UPGRADE FAILED: cannot patch "cloudwatch-agent" with kind AmazonCloudWatchAgent: admission webhook "mamazoncloudwatchagent.kb.io" denied the request: json: cannot unmarshal bool into Go struct field AmazonCloudWatchAgentTargetAllocator.spec.targetAllocator.prometheusCR of type v1alpha1.AmazonCloudWatchAgentTargetAllocatorPrometheusCR

The value is passed as

prometheusCR: true

Instead of this

prometheusCR:
  enabled: true

Also there is case bug in target allocator cluster role yaml

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@gane5hvarma
Copy link
Author

@Paramadon @mitali-salvi @lisguo can you take a look at this pr and do the needful.

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.

1 participant