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

Allow replicaCount to be set to int or string #388

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

wallrj
Copy link
Member

@wallrj wallrj commented Feb 29, 2024

This allows @erikgb to continue to use a variable string for the replicaCount field.

I added a helm-tool type tag to the replicaCount value of number,string,null, which has the effect of removing the type from the generated Helm JSON schema.
Probably because helm-tool doesn't recognise the type value.

As discussed on Slack .

$ helm template deploy/charts/approver-policy/ | grep replicas
  replicas: 1
$ helm template deploy/charts/approver-policy/ --set replicaCount=2 | grep replicas
  replicas: 2
$ helm template deploy/charts/approver-policy/ --set replicaCount='${REPLICAS_OVERRIDE:=3}' | grep replicas
  replicas: ${REPLICAS_OVERRIDE:=3}
$ helm template deploy/charts/approver-policy/ --set replicaCount=null | grep replicas
  replicas:

@jetstack-bot jetstack-bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 29, 2024
@wallrj wallrj force-pushed the untyped-replicas branch 2 times, most recently from c126122 to df66a22 Compare March 1, 2024 09:32
@jetstack-bot jetstack-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 1, 2024
@erikgb
Copy link
Contributor

erikgb commented Mar 1, 2024

/lgtm

Very nice, @wallrj! Thanks a lot! Are you able to cut a new alpha release so I can verify it solves my issue, or is that too much work? Maybe we should be optimistic and head for a release - with an eventual bugfix if it doesn't work?

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 1, 2024
@jetstack-bot jetstack-bot removed the lgtm Indicates that a PR is ready to be merged. label Mar 1, 2024
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Copy link
Member Author

Choose a reason for hiding this comment

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

image

@wallrj wallrj requested a review from inteon March 1, 2024 09:50
@wallrj
Copy link
Member Author

wallrj commented Mar 1, 2024

Very nice, @wallrj! Thanks a lot! Are you able to cut a new alpha release so I can verify it solves my issue, or is that too much work? Maybe we should be optimistic and head for a release - with an eventual bugfix if it doesn't work?

Thanks @erikgb. Yes I will do another alpha for you to test this before we release 0.13

@inteon
Copy link
Member

inteon commented Mar 1, 2024

/retest

@inteon
Copy link
Member

inteon commented Mar 1, 2024

/approve
/lgtm
We might make this field type more strict in the future.

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 1, 2024
@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: inteon

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

@jetstack-bot jetstack-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 1, 2024
@jetstack-bot jetstack-bot merged commit c1b51af into cert-manager:main Mar 1, 2024
5 checks passed
@wallrj wallrj deleted the untyped-replicas branch March 1, 2024 11:34
@wallrj
Copy link
Member Author

wallrj commented Mar 1, 2024

@erikgb Here's another alpha release, as promised:

Please test it if you have time.

@erikgb
Copy link
Contributor

erikgb commented Mar 1, 2024

Please test it if you have time.

@wallrj I have verified it works now. Thanks for fixing this issue!

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. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants