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

Add PDB to EtcdCluster spec and implement validation webhhoks #93

Merged
merged 8 commits into from
Apr 2, 2024

Conversation

sircthulhu
Copy link
Member

@sircthulhu sircthulhu commented Mar 28, 2024

Added PDB to spec, implemented webhooks and tests.

Fixes #61

@sircthulhu sircthulhu added the feature New feature or request label Mar 28, 2024
@sircthulhu sircthulhu self-assigned this Mar 28, 2024
@sircthulhu sircthulhu marked this pull request as draft March 28, 2024 16:09
@sircthulhu
Copy link
Member Author

After discussion with @Kirill-Garbar we decided to recheck spec with the spec of k8s PDB and implement creating resource as there might be hidden problems

@sircthulhu sircthulhu marked this pull request as ready for review March 28, 2024 18:14
api/v1alpha1/etcdcluster_types.go Outdated Show resolved Hide resolved
api/v1alpha1/etcdcluster_types.go Show resolved Hide resolved
@sircthulhu sircthulhu force-pushed the feature/61-enable-pdb branch from 67474c9 to b3c578a Compare March 29, 2024 12:55
@sircthulhu sircthulhu enabled auto-merge (squash) March 31, 2024 16:23
api/v1alpha1/etcdcluster_types.go Show resolved Hide resolved
api/v1alpha1/etcdcluster_types.go Show resolved Hide resolved
api/v1alpha1/etcdcluster_types_test.go Show resolved Hide resolved
api/v1alpha1/etcdcluster_webhook.go Show resolved Hide resolved
api/v1alpha1/etcdcluster_webhook.go Outdated Show resolved Hide resolved
api/v1alpha1/etcdcluster_webhook_test.go Outdated Show resolved Hide resolved
internal/controller/factory/pdb.go Show resolved Hide resolved
Copy link
Member

@sergeyshevch sergeyshevch left a comment

Choose a reason for hiding this comment

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

lgtm

@kvaps kvaps assigned Kirill-Garbar and unassigned Kirill-Garbar Apr 2, 2024
@kvaps
Copy link
Member

kvaps commented Apr 2, 2024

@Kirill-Garbar could you please review this?

@sircthulhu sircthulhu force-pushed the feature/61-enable-pdb branch from 17cd5ea to 2cb3ae9 Compare April 2, 2024 17:04
@sircthulhu sircthulhu merged commit 39aec69 into main Apr 2, 2024
5 checks passed
@sircthulhu sircthulhu deleted the feature/61-enable-pdb branch April 2, 2024 17:08
@kvaps kvaps added this to the v0.1.0 milestone Apr 3, 2024
kvaps added a commit that referenced this pull request Apr 22, 2024
fix regression introduced by #93

Helm chart missing privileges to operate poddisruptionbudgets

Signed-off-by: Andrei Kvapil <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Make an option to create PDB for cluster
5 participants