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

feat: add revisionHistoryLimit #9963

Merged
merged 8 commits into from
Apr 16, 2024

Conversation

KyriosGN0
Copy link
Contributor

Type of change

  • Enhancement / new feature

Description

adding the ability to set the revisionHistoryLimit for the operator Deployment

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

@KyriosGN0 KyriosGN0 force-pushed the feat-add-revision-history-limit branch from b3b7cbf to 785b6cb Compare April 15, 2024 13:08
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.

Thanks for the PR. I left one nit. I also suspect that the build will fail. You have to:

  • Either upgrade the YAML installation files correspondingly to this change
  • Wrap the Helm chart change with some condition to not set it when not configured by the user. (see how it is done for the other fields such as the priorityClassName as example)

I personally would prefer the second option.

@@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "0.1.0"
description: "Strimzi: Apache Kafka running on Kubernetes"
name: strimzi-kafka-operator
version: 0.1.1
version: 0.2.1
Copy link
Member

Choose a reason for hiding this comment

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

Please don't change this.

@KyriosGN0 KyriosGN0 changed the title add revisionHistoryLimit, add to readme and bump chart version feat: add revisionHistoryLimit Apr 15, 2024
@scholzj scholzj added this to the 0.41.0 milestone Apr 15, 2024
@scholzj scholzj requested a review from ppatierno April 15, 2024 13:12
@KyriosGN0 KyriosGN0 force-pushed the feat-add-revision-history-limit branch from d72825a to bc6ba3b Compare April 15, 2024 13:17
@KyriosGN0
Copy link
Contributor Author

thanks @scholzj, i opted to just set a default value in the yaml file

@scholzj
Copy link
Member

scholzj commented Apr 15, 2024

thanks @scholzj, i opted to just set a default value in the yaml file

That does not fix it because it will still generate the YAML with the value You would need to do it as it is done for example for the priority class name: https://github.com/strimzi/strimzi-kafka-operator/blob/main/packaging/helm-charts/helm3/strimzi-kafka-operator/templates/060-Deployment-strimzi-cluster-operator.yaml#L45-L47

@KyriosGN0
Copy link
Contributor Author

thanks @scholzj, i opted to just set a default value in the yaml file

That does not fix it because it will still generate the YAML with the value You would need to do it as it is done for example for the priority class name: https://github.com/strimzi/strimzi-kafka-operator/blob/main/packaging/helm-charts/helm3/strimzi-kafka-operator/templates/060-Deployment-strimzi-cluster-operator.yaml#L45-L47

@scholzj fixed that, but i would like to understand where is the issue?
if a user would create a values file without this param it would have used the default..
or am i missing something?

@KyriosGN0
Copy link
Contributor Author

hey @scholzj @ppatierno could you help me figure out what went wrong in the CI, it complains about uncommitted changes in a dir a didn't touch?
am i missing something?

@scholzj
Copy link
Member

scholzj commented Apr 15, 2024

hey @scholzj @ppatierno could you help me figure out what went wrong in the CI, it complains about uncommitted changes in a dir a didn't touch? am i missing something?

Yeah, this is the error I talked about. I think the Deployment YAMl in the Helm Chart looks good now. But you have to also remove the default value from the values file to not have it rendered into the YAML.

It also looks like some older commits got pulled into your PR in some rebase, could you please try to fix it as well?

scholzj and others added 6 commits April 15, 2024 17:01
Signed-off-by: Jakub Scholz <www@scholzj.com>
Signed-off-by: AvivGuiser <aviv.guiser@placer.ai>
Signed-off-by: AvivGuiser <aviv.guiser@placer.ai>
Signed-off-by: AvivGuiser <aviv.guiser@placer.ai>
Signed-off-by: AvivGuiser <aviv.guiser@placer.ai>
…9955)"

This reverts commit 19768af.

Signed-off-by: AvivGuiser <aviv.guiser@placer.ai>
Signed-off-by: AvivGuiser <aviv.guiser@placer.ai>
@KyriosGN0 KyriosGN0 force-pushed the feat-add-revision-history-limit branch from 479ae9d to b4d491e Compare April 15, 2024 14:01
@scholzj
Copy link
Member

scholzj commented Apr 15, 2024

/azp run helm-acceptance

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

Signed-off-by: AvivGuiser <aviv.guiser@placer.ai>
Signed-off-by: AvivGuiser <aviv.guiser@placer.ai>
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. Thanks!

@scholzj scholzj merged commit f59aaaf into strimzi:main Apr 16, 2024
13 checks passed
@KyriosGN0 KyriosGN0 deleted the feat-add-revision-history-limit branch April 16, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants