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 env var to disable creation of PodDisruptionBudget #10614

Merged
merged 4 commits into from
Sep 25, 2024

Conversation

katheris
Copy link
Contributor

@katheris katheris commented Sep 19, 2024

Type of change

Select the type of your PR

  • Enhancement / new feature

Description

Add env var to disable creation of PodDisruptionBudget

Checklist

Please go through this checklist and make sure all applicable tasks have been done

  • Write tests
  • Make sure all tests pass
  • Update documentation
  • Check RBAC rights for Kubernetes / OpenShift roles
  • Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
  • Reference relevant issue(s) and close them after merging
  • Update CHANGELOG.md
  • Supply screenshots for visual changes, such as Grafana dashboards

@scholzj scholzj added this to the 0.44.0 milestone Sep 19, 2024
@katheris katheris marked this pull request as ready for review September 23, 2024 09:39
Copy link
Member

@scholzj scholzj left a comment

Choose a reason for hiding this comment

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

Some nits, but LGTM otherwise.

Copy link
Member

@scholzj scholzj left a comment

Choose a reason for hiding this comment

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

Oh, one more thing ... can you add it to the docs as well ... probably here where the network policy env var is already documented? https://strimzi.io/docs/operators/latest/full/deploying.html#ref-operator-cluster-str

@katheris
Copy link
Contributor Author

Oh, one more thing ... can you add it to the docs as well ... probably here where the network policy env var is already documented? https://strimzi.io/docs/operators/latest/full/deploying.html#ref-operator-cluster-str

I chatted to Paul and added it in two places, there and in a section in the configuring part of the docs.

Copy link
Member

@scholzj scholzj left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@scholzj
Copy link
Member

scholzj commented Sep 23, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@PaulRMellor PaulRMellor left a comment

Choose a reason for hiding this comment

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

Great. Just one comment.


Strimzi generates pod disruption budget resources for Kafka, Kafka Connect worker, MirrorMaker2 worker, and Kafka Bridge worker nodes.

If you want to use custom pod disruption budget resources, you can set the `STRIMZI_POD_DISRUPTION_BUDGET_GENERATION` environment variable to `false` in the Cluster Operator configuration.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
If you want to use custom pod disruption budget resources, you can set the `STRIMZI_POD_DISRUPTION_BUDGET_GENERATION` environment variable to `false` in the Cluster Operator configuration.
If you don't want to use custom pod disruption budget resources, you can set the `STRIMZI_POD_DISRUPTION_BUDGET_GENERATION` environment variable to `false` in the Cluster Operator configuration.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By "custom pod disruption budget resources" I meant if the user wants to provide their own, so for that they need to disable the generation, so I think the existing text is correct

Copy link
Member

@ppatierno ppatierno left a comment

Choose a reason for hiding this comment

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

LGTM

@scholzj
Copy link
Member

scholzj commented Sep 25, 2024

@katheris Could you please rebase it?

Signed-off-by: Katherine Stanley <[email protected]>
Signed-off-by: Katherine Stanley <[email protected]>
Signed-off-by: Katherine Stanley <[email protected]>
@katheris
Copy link
Contributor Author

@katheris Could you please rebase it?

Done :)

@scholzj
Copy link
Member

scholzj commented Sep 25, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj
Copy link
Member

scholzj commented Sep 25, 2024

/azp run helm-acceptance

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj scholzj merged commit 54a7661 into strimzi:main Sep 25, 2024
23 checks passed
@scholzj
Copy link
Member

scholzj commented Sep 25, 2024

Thanks for the PR @katheris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 0.44.0 (Work in progress)
Development

Successfully merging this pull request may close these issues.

4 participants