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

fix(argo-cd): Fix required cluster credentials name #3111

Closed
wants to merge 0 commits into from

Conversation

atgane
Copy link
Contributor

@atgane atgane commented Jan 7, 2025

related to #3110

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).

@tico24 tico24 marked this pull request as draft January 7, 2025 15:21
@atgane atgane changed the title fix required cluster credentials name fix(argo-cd): Fix required cluster credentials name Jan 7, 2025
@@ -22,7 +22,7 @@ stringData:
{{- if $cluster_value.shard }}
shard: {{ $cluster_value.shard | quote }}
{{- end }}
name: {{ required "A valid .Values.configs.clusterCredentials.CLUSTERNAME.name entry is required!" $cluster_key }}
name: {{ default $cluster_key $cluster_value.name }}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
name: {{ default $cluster_key $cluster_value.name }}
name: {{ $cluster_key }}

The simplest solution I see is to drop the required function

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.

2 participants