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

Adding DeadMansSnitchIntegration CRD to deadmanssnitch operator #70

Merged

Conversation

R-Lawton
Copy link
Contributor

@R-Lawton R-Lawton commented Jul 28, 2020

This PR is for the following changes:

  1. Adding a DeadMansSnitchIntegration CRD that replaces the clusterDeployment controller which handled the creation of just one DMS secret and syncset. The new DMSI allows more then one DeadMans snitch and the matching secret and syncset to be created per cluster.

  2. Watches

  • Create/Update/Delete of a DeadMansSnitchIntegration will trigger a reconcile request for that DeadMansSnitchIntegration.
  • Create/Update/Delete of a ClusterDeployment will trigger a reconcile request for each DeadMansSnitchIntegration that matches that ClusterDeployment (using the spec.clusterDeploymentSelector label selector).
  • Create/Update/Delete of a Secret or SyncSet owned by a ClusterDeployment will trigger a reconcile request for each DeadMansSnitchIntegration that matches that ClusterDeployment

functionality:

  1. Create multiple snitches,secrets and syncset per matching cluster deployment(that have the right matching labels)
  2. Delete snitches from deadmanssnitch.com secrets and syncset by either deleting the clusterdeployment of the snitches etc you want deleted or by deleting the DMSI CR of the snitches etc you wanted deleted

@app-sre-bot
Copy link

Can one of the admins verify this patch?

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jul 28, 2020
@openshift-ci-robot
Copy link

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 29, 2020
@R-Lawton R-Lawton marked this pull request as ready for review July 29, 2020 10:58
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 29, 2020
Copy link
Member

@jewzaam jewzaam left a comment

Choose a reason for hiding this comment

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

As noted in a comment, need to 's/deadmansnitch/deadmanssnitch/g'.

PARTIAL REVIEW! I haven't gotten to the controller or mapper and their tests.

deploy/role.yaml Outdated Show resolved Hide resolved
deploy/role.yaml Outdated Show resolved Hide resolved
@R-Lawton R-Lawton requested a review from jewzaam August 10, 2020 13:47
Copy link
Member

@grdryn grdryn left a comment

Choose a reason for hiding this comment

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

I've gone through this to try to pick up on anything I can before @jewzaam gets to it again. I've left some comments inline...I hope I'm not being too pernickety! :)

Copy link
Member

@jewzaam jewzaam left a comment

Choose a reason for hiding this comment

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

Took a pass through all but the controller tests.

deploy/role.yaml Outdated Show resolved Hide resolved
deploy/role.yaml Outdated Show resolved Hide resolved
deploy/role.yaml Show resolved Hide resolved
pkg/controller/deadmanssnitchintegration/mappers.go Outdated Show resolved Hide resolved
@grdryn
Copy link
Member

grdryn commented Aug 19, 2020

/lint

Copy link

@openshift-ci-robot openshift-ci-robot left a comment

Choose a reason for hiding this comment

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

@grdryn: 0 warnings.

In response to this:

/lint

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.

@R-Lawton R-Lawton requested a review from grdryn August 24, 2020 09:14
@grdryn
Copy link
Member

grdryn commented Aug 24, 2020

/retest

hack/generate.sh Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
pkg/utils/utils.go Outdated Show resolved Hide resolved
@R-Lawton R-Lawton force-pushed the intly-9089-DMS-integration-CRD branch 4 times, most recently from 4ea3b5b to 96bf519 Compare August 25, 2020 16:33
@jewzaam
Copy link
Member

jewzaam commented Sep 10, 2020

We need a test for when SnitchNamePostFix is not set as well, forgot to mention. The snitch name should be just the cluster deployment name +base domain.

@jewzaam
Copy link
Member

jewzaam commented Sep 17, 2020

looks good!
/approve

holding so we can get the initial osd dsmi added (R-Lawton#1) and internal configs done
/hold

@openshift-ci-robot openshift-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 17, 2020
@R-Lawton R-Lawton force-pushed the intly-9089-DMS-integration-CRD branch from 10dd1e3 to 38125d1 Compare September 21, 2020 10:50
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 21, 2020
@R-Lawton
Copy link
Contributor Author

/retest

2 similar comments
@R-Lawton
Copy link
Contributor Author

/retest

@R-Lawton
Copy link
Contributor Author

/retest

@jewzaam
Copy link
Member

jewzaam commented Oct 1, 2020

/lgtm

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 1, 2020
@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 1, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jewzaam, R-Lawton

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

@openshift-merge-robot openshift-merge-robot merged commit edf2021 into openshift:master Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants