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

Modifying apiVersion for daemonset and adding selectors #1005

Closed

Conversation

rushabh268
Copy link

@rushabh268 rushabh268 commented Jan 21, 2020

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

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

/area integrations

What this PR does / why we need it:

This PR fixes the case where Falco daemonset cannot be deployed in Kubernetes 1.17+ due to incorrect apiVersion and missing selector for pods

Which issue(s) this PR fixes:

#993

Automatically closes linked issue when PR is merged.
Usage: Fixes #993.

Fixes #993

Special notes for your reviewer:

This should fix the following errors:

root@int:~/falco/integrations/k8s-using-daemonset# kubectl apply -f k8s-with-rbac/falco-config/falco-daemonset-configmap.yaml
error: unable to recognize "k8s-with-rbac/falco-config/falco-daemonset-configmap.yaml": no matches for kind "DaemonSet" in version "extensions/v1beta1"

root@int:~/falco/integrations/k8s-using-daemonset# kubectl apply -f k8s-with-rbac/falco-config/falco-daemonset-configmap.yaml
error: error validating "k8s-with-rbac/falco-config/falco-daemonset-configmap.yaml": error validating data: ValidationError(DaemonSet.spec): missing required field "selector" in io.k8s.api.apps.v1.DaemonSetSpec; if you choose to ignore these errors, turn validation off with --validate=false

Does this PR introduce a user-facing change?:

NONE

leodido and others added 3 commits January 20, 2020 13:59
Co-authored-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>

Signed-off-by: Rushabh Sanghvi <rushabh268@gmail.com>
Co-authored-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>

Signed-off-by: Rushabh Sanghvi <rushabh268@gmail.com>
Signed-off-by: Rushabh Sanghvi <rushabh268@gmail.com>
@poiana
Copy link
Contributor

poiana commented Jan 21, 2020

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign mstemm
You can assign the PR to them by writing /assign @mstemm in a comment when ready.

The full list of commands accepted by this bot can be found 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
Copy link
Contributor

poiana commented Jan 21, 2020

Welcome @rushabh268! It looks like this is your first PR to falcosecurity/falco 🎉

@poiana poiana added the size/XS label Jan 21, 2020
@rushabh268
Copy link
Author

/assign @mstemm

Signed-off-by: Rushabh Sanghvi <rushabh268@gmail.com>

Signed-off-by: Rushabh Sanghvi <rushabh268@gmail.com>
Copy link
Contributor

@fntlnz fntlnz left a comment

Choose a reason for hiding this comment

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

Hi @rushabh268 - thanks for fixing this! Can you please address my comment and do the same in falco-daemonset-configmap-slim.yaml and in k8s-without-rbac/falco-service.yaml ?

@fntlnz
Copy link
Contributor

fntlnz commented Jan 22, 2020

Also @rushabh268 please sign-off your commit.
You can do that by adding -s when you do a commit:

E.g:

git commit -sm "your message"

or if you want to sign the last commit you did:

git commit -s --amend --no-edit

@poiana poiana added size/S and removed size/XS labels Jan 22, 2020
@rushabh268
Copy link
Author

@fntlnz I have made the suggested changes and also made the necessary changes to integrations/k8s-using-daemonset/falco-event-generator-deployment.yaml. I have also signed off the last commit.

Copy link
Member

@leodido leodido left a comment

Choose a reason for hiding this comment

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

Hey @rushabh268 thanks for doing this!

Any chance you can also do it for falco-daemonset-configmap-slim.yaml and k8s-without-rbac/falco-service.yaml ? :)

…-configmap.yaml

Co-Authored-By: Lorenzo Fontana <fontanalorenz@gmail.com>
@rushabh268
Copy link
Author

@leodido I think I made those changes here: 3e6e22b

@leodido leodido changed the base branch from dev to master February 3, 2020 15:15
@fntlnz fntlnz requested review from leodido and fntlnz February 25, 2020 09:51
@leodido
Copy link
Member

leodido commented Feb 25, 2020

/check-dco

@poiana
Copy link
Contributor

poiana commented Feb 25, 2020

Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits.

📝 Please follow instructions in the contributing guide to update your commits with the DCO

Full details of the Developer Certificate of Origin can be found at developercertificate.org.

The list of commits missing DCO signoff:

  • 73129e1 Update integrations/k8s-using-daemonset/k8s-with-rbac/falco-daemonset-configmap.yaml

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. I understand the commands that are listed here.

@leodido
Copy link
Member

leodido commented Feb 25, 2020

/milestone 0.21.0

@poiana poiana added this to the 0.21.0 milestone Feb 25, 2020
@fntlnz
Copy link
Contributor

fntlnz commented Mar 5, 2020

Removing this from the milestone since we have to make a community decision on how to handle those. Same comment as this one #1044 (comment)

This kind of thing doesn't really need to cut a release.

:)

@fntlnz fntlnz removed this from the 0.21.0 milestone Mar 5, 2020
@leodido
Copy link
Member

leodido commented Mar 12, 2020

@leogr this is the PR I was mentioning to you before, too

@leodido
Copy link
Member

leodido commented Apr 16, 2020

Superseded by #1044

/close

@poiana poiana closed this Apr 16, 2020
@poiana
Copy link
Contributor

poiana commented Apr 16, 2020

@leodido: Closed this PR.

In response to this:

Superseded by #1044

/close

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.

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.

Update the yaml files.
5 participants