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

chore(argo-cd): Support string type of "true" for statusbadge.enabled #2895

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

yu-croco
Copy link
Collaborator

@yu-croco yu-croco commented Aug 24, 2024

Resolves #2869

.Values.configs.cm."exec.enabled" supports string of true, though the official type in agro-helm is bool. So I think it's kind for users to align the behavior of .Values.configs.cm."statusbadge.enabled" as well.

If I set statusbadge.enabled as "true", helm template fails as below.
*argo-helm provides the type of parameters (e.g. Argo CD Configs) and the type of statusbadge.enabled is bool, so it's not a bug.

$ helm template . > foo.yaml
Error: template: argo-cd/templates/argocd-server/deployment.yaml:31:24: executing "argo-cd/templates/argocd-server/deployment.yaml" at <include (print $.Template.BasePath "/argocd-configs/argocd-cm.yaml") .>: error calling include: template: argo-cd/templates/argocd-configs/argocd-cm.yaml:16:6: executing "argo-cd/templates/argocd-configs/argocd-cm.yaml" at <include "argo-cd.config.cm" .>: error calling include: template: argo-cd/templates/_helpers.tpl:200:15: executing "argo-cd.config.cm" at <include "argo-cd.config.cm.presets" .>: error calling include: template: argo-cd/templates/_helpers.tpl:186:56: executing "argo-cd.config.cm.presets" at <eq true>: error calling eq: incompatible types for comparison

Checklist:

  • I have bumped the chart version according to versioning
  • I have updated the documentation according to documentation
  • I have updated the chart changelog with all the changes that come with this pull request according to changelog.
  • Any new values are backwards compatible and/or have sensible default.
  • I have signed off all my commits as required by DCO.
  • My build is green (troubleshooting builds).

@@ -183,7 +183,7 @@ Argo Configuration Preset Values (Influenced by Values configuration)
{{- define "argo-cd.config.cm.presets" -}}
{{- $presets := dict -}}
{{- $_ := set $presets "url" (printf "https://%s" .Values.global.domain) -}}
{{- if index .Values.configs.cm "statusbadge.enabled" | eq true -}}
{{- if eq (toString (index .Values.configs.cm "statusbadge.enabled")) "true" -}}
Copy link
Collaborator Author

@yu-croco yu-croco Aug 24, 2024

Choose a reason for hiding this comment

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

@yu-croco yu-croco marked this pull request as ready for review August 24, 2024 12:01
@mbevc1 mbevc1 merged commit 66615c3 into argoproj:main Aug 27, 2024
7 checks passed
rouke-broersma referenced this pull request in broersma-forslund/homelab Aug 27, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [argo-cd](https://github.com/argoproj/argo-helm) | patch | `7.4.5`
-> `7.4.7` |

---

### Release Notes

<details>
<summary>argoproj/argo-helm (argo-cd)</summary>

###
[`v7.4.7`](https://github.com/argoproj/argo-helm/releases/tag/argo-cd-7.4.7)

[Compare
Source](https://github.com/argoproj/argo-helm/compare/argo-cd-7.4.6...argo-cd-7.4.7)

A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool
for Kubernetes.

#### What's Changed

- chore(argo-cd): Update dependency argoproj/argo-cd to v2.12.3 by
[@&#8203;argoproj-renovate](https://github.com/argoproj-renovate) in
[https://github.com/argoproj/argo-helm/pull/2897](https://github.com/argoproj/argo-helm/pull/2897)

**Full Changelog**:
argoproj/argo-helm@argo-cd-7.4.6...argo-cd-7.4.7

###
[`v7.4.6`](https://github.com/argoproj/argo-helm/releases/tag/argo-cd-7.4.6)

[Compare
Source](https://github.com/argoproj/argo-helm/compare/argo-cd-7.4.5...argo-cd-7.4.6)

A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool
for Kubernetes.

#### What's Changed

- chore(deps): bump github/codeql-action from 3.26.2 to 3.26.5 in the
dependencies group by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/argoproj/argo-helm/pull/2894](https://github.com/argoproj/argo-helm/pull/2894)
- chore(deps): update renovatebot/github-action action to v40.2.7 by
[@&#8203;argoproj-renovate](https://github.com/argoproj-renovate) in
[https://github.com/argoproj/argo-helm/pull/2896](https://github.com/argoproj/argo-helm/pull/2896)
- chore(argo-cd): Support string type of "true" for
`statusbadge.enabled` by
[@&#8203;yu-croco](https://github.com/yu-croco) in
[https://github.com/argoproj/argo-helm/pull/2895](https://github.com/argoproj/argo-helm/pull/2895)

**Full Changelog**:
argoproj/argo-helm@argo-cd-7.4.5...argo-cd-7.4.6

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/broersma-forslund/homelab).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The config statusbadge.enabled expects a boolean instead of a string
3 participants