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

Kubeless output #170

Merged
merged 1 commit into from
Jan 13, 2021
Merged

Kubeless output #170

merged 1 commit into from
Jan 13, 2021

Conversation

Issif
Copy link
Member

@Issif Issif commented Jan 12, 2021

Signed-off-by: Issif issif_github@gadz.org<!-- Thanks for sending a pull request! Here are some tips for you:

  1. If this is your first time, please read our contributor guidelines in the CONTRIBUTING.md file and learn how to compile Falco from source here.
  2. Please label this pull request according to what type of issue you are addressing.
  3. If the PR is unfinished while opening it specify a wip in the title before the actual title, for example, "wip: my awesome feature"
    -->

What type of PR is this?

This PR adds add a native integration of kubeless as new output. Falcosidekick will be able to trigger a kubeless function from in/outside a k8s cluster.

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

What this PR does / why we need it:

With a native integration, all intermediate (NATS) and custom components for setting up a response engine become useless.

Which issue(s) this PR fixes:

N/A

Fixes #

Special notes for your reviewer:

cc @cpanato @KeisukeYamashita

@Issif Issif requested a review from cpanato January 12, 2021 00:41
@Issif Issif added this to the 2.20.0 milestone Jan 12, 2021
@Issif Issif changed the title try to set kubelessKubeless output Kubeless output Jan 12, 2021
Copy link
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

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

Just found a small typo (see comments below).

Anyway, after a quick review, it looks promising! 👏

README.md Outdated Show resolved Hide resolved
config_example.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@KeisukeYamashita KeisukeYamashita left a comment

Choose a reason for hiding this comment

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

LGTM, nice 🎸 (I'm big fan of serverless 😄 )

/hold

to wait for @cpanato's review

outputs/kubeless.go Outdated Show resolved Hide resolved
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

lgtm, just some nits:

  • squash the commits to have just one commit
  • and just a comment, try to avoid to update dependencies in the PR that does other thing, if the PR need a new dependency is fine, but avoid update non-releated dependencies, we can open a separated PR for that

outputs/client.go Outdated Show resolved Hide resolved
outputs/kubeless.go Outdated Show resolved Hide resolved
Signed-off-by: Issif <issif_github@gadz.org>
@Issif
Copy link
Member Author

Issif commented Jan 13, 2021

@nibalizer @cpanato thanks you both, I used github.com/google/uuid for generating event_id is cleaner.

Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

thanks!
/lgtm

@poiana poiana added the lgtm label Jan 13, 2021
@poiana
Copy link

poiana commented Jan 13, 2021

LGTM label has been added.

Git tree hash: 6bc20485b43212b30de3e37da7d6e3f91f74241d

@poiana
Copy link

poiana commented Jan 13, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cpanato

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

@Issif
Copy link
Member Author

Issif commented Jan 13, 2021

/hold cancel

@poiana poiana merged commit 44a8cae into master Jan 13, 2021
@poiana poiana deleted the kubeless-output branch January 13, 2021 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants