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

fix, unsupported strings in alertmanager keys #78

Merged
merged 1 commit into from
Sep 4, 2020

Conversation

epcim
Copy link

@epcim epcim commented Sep 4, 2020

ref: #77

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area config

/area outputs

/area tests

/area helm

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@poiana
Copy link

poiana commented Sep 4, 2020

@epcim: There is not a label identifying the kind of this PR.
Please specify it either using /kind <group> or manually from the side menu.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@poiana
Copy link

poiana commented Sep 4, 2020

Welcome @epcim! It looks like this is your first PR to falcosecurity/falcosidekick 🎉

@poiana poiana added the size/XS label Sep 4, 2020
@epcim
Copy link
Author

epcim commented Sep 4, 2020

what is contrib policy, how to sign-off ? Details link fails.. (will fix over weekend )

//AlertManger doesn't support dots in a label name
amPayload.Labels[strings.Replace(i, ".", "_", -1)] = j.(string)
//AlertManger unsupported chars in a label name
replacer := strings.NewReplacer(".", "_", "[", "", "]", "")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
replacer := strings.NewReplacer(".", "_", "[", "", "]", "")
replacer := strings.NewReplacer(".", "_", "[", "_", "]", "")

I think it's better to replace proc_aname[2] by proc_aname_2, what do you think?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@Issif
Copy link
Member

Issif commented Sep 4, 2020

what is contrib policy, how to sign-off ? Details link fails.. (will fix over weekend )

The easiest is :

git commit --amend --signoff
git push --force

@poiana poiana added the lgtm label Sep 4, 2020
@poiana
Copy link

poiana commented Sep 4, 2020

LGTM label has been added.

Git tree hash: 716b6e659a9b81db43eddc41a5d2f637eed9ff7c

@poiana poiana added the approved label Sep 4, 2020
@Issif
Copy link
Member

Issif commented Sep 4, 2020

/approve

@poiana
Copy link

poiana commented Sep 4, 2020

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Issif

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit a2c3f45 into falcosecurity:master Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants