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 #320

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

erikgb
Copy link
Contributor

@erikgb erikgb commented Mar 7, 2024

This fix is more or less a copy of cert-manager/approver-policy#388 fixing the same issue here. We are using FluxCD post-build substitutions to override replicas in our single-node review clusters. This used to work fine but broke with version 0.9.0 of trust-manager. Many thanks to @wallrj for finding an acceptable solution to this.

$ helm template deploy/charts/trust-manager/ --set replicaCount='${REPLICAS_OVERRIDE:=3}' | grep replicas
  replicas: ${REPLICAS_OVERRIDE:=3}
$ helm template deploy/charts/trust-manager/ --set replicaCount=2 | grep replicas
  replicas: 2

/cc @SgtCoDFish @wallrj @inteon

Signed-off-by: Erik Godding Boye <egboye@gmail.com>
@jetstack-bot jetstack-bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 7, 2024
@erikgb
Copy link
Contributor Author

erikgb commented Mar 7, 2024

/test pull-trust-manager-smoke

@erikgb
Copy link
Contributor Author

erikgb commented Mar 7, 2024

Somehow CI seems broken`somehow: 🤔

ERROR: failed to solve: process "/bin/sh -c GOPROXY=$GOPROXY go get github.com/cert-manager/trust-manager/cmd/validate-trust-package && GOPROXY=$GOPROXY CGO_ENABLED=0 GOARCH=$TARGETARCH go build -o /go/bin/validate-trust-package github.com/cert-manager/trust-manager/cmd/validate-trust-package" did not complete successfully: exit code: 1
make: *** [make/trust-package-debian.mk:40: trust-package-debian-load] Error 1

@inteon
Copy link
Member

inteon commented Mar 7, 2024

/retest

@SgtCoDFish
Copy link
Member

Somehow CI seems broken`somehow: 🤔

It's the move to go 1.22, a change in the go toolchain. I'll fix it!

@SgtCoDFish
Copy link
Member

/test pull-trust-manager-smoke

@inteon
Copy link
Member

inteon commented Mar 8, 2024

@SgtCoDFish
Copy link
Member

#321 should fix!

@inteon
Copy link
Member

inteon commented Mar 9, 2024

/retest

Copy link
Member

@SgtCoDFish SgtCoDFish left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Sorry this wasn't a faster process!

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: SgtCoDFish

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 11, 2024
@jetstack-bot jetstack-bot merged commit ba61395 into cert-manager:main Mar 11, 2024
4 checks passed
@erikgb
Copy link
Contributor Author

erikgb commented Mar 11, 2024

NP, Ash! Thanks for the review! Looking forward to the patch release including this.

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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants