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

[etcdbackup&restore] Implement RKE2Config webhook #542

Merged
merged 6 commits into from
Aug 2, 2024

Conversation

furkatgofurov7
Copy link
Contributor

@furkatgofurov7 furkatgofurov7 commented May 20, 2024

What this PR does / why we need it:
Adds RKE2Config webhook implementation

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #498
Part of: #388

Special notes for your reviewer:

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@furkatgofurov7 furkatgofurov7 requested a review from a team as a code owner May 20, 2024 21:24
@furkatgofurov7 furkatgofurov7 force-pushed the add-webhook-logic branch 2 times, most recently from 056468c to a9c1745 Compare May 20, 2024 22:05
@furkatgofurov7 furkatgofurov7 changed the title Add RKE2Config webhook implementation [etcdbackup&restore] Implement RKE2Config webhook May 20, 2024
@furkatgofurov7
Copy link
Contributor Author

@alexander-demicev PTAL

Copy link
Member

@alexander-demicev alexander-demicev left a comment

Choose a reason for hiding this comment

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

Thank for working on it, I have a couple of comments

Makefile Show resolved Hide resolved
exp/etcdrestore/webhooks/installsh.go Show resolved Hide resolved
exp/etcdrestore/webhooks/rke2config.go Show resolved Hide resolved
exp/etcdrestore/webhooks/rke2config.go Outdated Show resolved Hide resolved
Danil-Grigorev
Danil-Grigorev previously approved these changes Jun 11, 2024
@furkatgofurov7 furkatgofurov7 enabled auto-merge (rebase) June 11, 2024 10:51
@furkatgofurov7
Copy link
Contributor Author

furkatgofurov7 commented Jul 17, 2024

This is ready to review and take it in, again, PTAL @salasberryfin

Copy link
Member

@alexander-demicev alexander-demicev left a comment

Choose a reason for hiding this comment

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

thanks, couple minor comments and let's have a follow-up PR for removing unstructured

exp/etcdrestore/webhooks/rke2config.go Outdated Show resolved Hide resolved
exp/etcdrestore/webhooks/rke2config.go Outdated Show resolved Hide resolved
exp/etcdrestore/webhooks/rke2config.go Outdated Show resolved Hide resolved
exp/etcdrestore/webhooks/rke2config.go Outdated Show resolved Hide resolved
exp/etcdrestore/webhooks/rke2config.go Outdated Show resolved Hide resolved
@furkatgofurov7 furkatgofurov7 force-pushed the add-webhook-logic branch 2 times, most recently from 8004fbd to 132a168 Compare July 30, 2024 10:41
@furkatgofurov7
Copy link
Contributor Author

furkatgofurov7 commented Jul 30, 2024

if sa.Name matches planSecretName can we use planSecretName later instead?

@alexander-demicev addressed it in 132a168 3f78c02

Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
…efile target

Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
@furkatgofurov7
Copy link
Contributor Author

Had to rebase again after #625 :(
PTAL @alexander-demicev @salasberryfin @Danil-Grigorev

Copy link
Contributor

@Danil-Grigorev Danil-Grigorev left a comment

Choose a reason for hiding this comment

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

LGTM

auto-merge was automatically disabled August 2, 2024 11:27

Base branch requires signed commits

@furkatgofurov7 furkatgofurov7 merged commit 792e3b0 into rancher:main Aug 2, 2024
9 checks passed
@furkatgofurov7 furkatgofurov7 deleted the add-webhook-logic branch August 2, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

[etcdbackup&restore] Implement Rke2Config webhook for installing and configuring system-agent
4 participants