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(argo-cd): Add DRY support for Ingress #3081

Merged
merged 11 commits into from
Jan 7, 2025
Merged

Conversation

gyajangi1
Copy link
Contributor

@gyajangi1 gyajangi1 commented Dec 17, 2024

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 December 17, 2024 10:50
@gyajangi1 gyajangi1 changed the title Updated tpl function feat:Extend DRY support for Ingress Dec 17, 2024
@gyajangi1 gyajangi1 changed the title feat:Extend DRY support for Ingress fix:Extend DRY support for Ingress Dec 17, 2024
@gyajangi1 gyajangi1 changed the title fix:Extend DRY support for Ingress fix: Extend DRY support for Ingress Dec 17, 2024
@gyajangi1 gyajangi1 changed the title fix: Extend DRY support for Ingress feat: Extend DRY support for Ingress Dec 17, 2024
@gyajangi1 gyajangi1 changed the title feat: Extend DRY support for Ingress feat(argo-cd): Extend DRY support for Ingress Dec 17, 2024
@@ -9,7 +9,7 @@ metadata:
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
{{- with .Values.server.ingress.labels }}
{{- toYaml . | nindent 4 }}
{{- tpl (toYaml .) . | nindent 4 }}
Copy link

@Ceddaerrix Ceddaerrix Dec 17, 2024

Choose a reason for hiding this comment

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

tpl (toYaml .) . within the with context will fail since . here refers to the current context (i.e. .Values.server.ingress.labels) and not the root context.

To refer to the root context, you should change the tpl call to tpl (toYaml .) $

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed tpl call to tpl (toYaml .) $

@gyajangi1 gyajangi1 requested a review from Ceddaerrix December 18, 2024 07:51
@gyajangi1 gyajangi1 changed the title feat(argo-cd): Extend DRY support for Ingress feat(argo-cd): Add DRY support for Ingress Dec 20, 2024
@gyajangi1 gyajangi1 marked this pull request as ready for review December 20, 2024 10:15
@mkilchhofer mkilchhofer marked this pull request as draft December 24, 2024 08:17
@gyajangi1 gyajangi1 marked this pull request as ready for review December 24, 2024 09:51
@yu-croco
Copy link
Collaborator

yu-croco commented Jan 3, 2025

Hi @gyajangi1 , please handle the items below (they are on PR description).

[ ] I have bumped the chart version according to versioning
[ ] I have updated the chart changelog with all the changes that come with this pull request according to changelog.

@yu-croco yu-croco marked this pull request as draft January 3, 2025 10:21
@gyajangi1 gyajangi1 marked this pull request as ready for review January 3, 2025 11:11
@yu-croco
Copy link
Collaborator

yu-croco commented Jan 3, 2025

Hi @gyajangi1 , please handle the items below (they are on PR description).

[ ] I have bumped the chart version according to versioning
[ ] I have updated the chart changelog with all the changes that come with this pull request according to changelog.

Hi @gyajangi1 , you marked this PR as ready but where are the diffs for above?

Signed-off-by: gyajangi1 <Sandeep.Gyajangi@ge.com>
Signed-off-by: gyajangi1 <Sandeep.Gyajangi@ge.com>
Signed-off-by: gyajangi1 <Sandeep.Gyajangi@ge.com>
gyajangi1 and others added 4 commits January 7, 2025 12:42
Signed-off-by: gyajangi1 <Sandeep.Gyajangi@ge.com>
Co-authored-by: Marco Maurer (-Kilchhofer) <mkilchhofer@users.noreply.github.com>
Signed-off-by: gyajangi1 <Sandeep.Gyajangi@ge.com>
Co-authored-by: Marco Maurer (-Kilchhofer) <mkilchhofer@users.noreply.github.com>
Signed-off-by: gyajangi1 <Sandeep.Gyajangi@ge.com>
Signed-off-by: gyajangi1 <Sandeep.Gyajangi@ge.com>
Signed-off-by: gyajangi1 <Sandeep.Gyajangi@ge.com>
Signed-off-by: gyajangi1 <Sandeep.Gyajangi@ge.com>
@gyajangi1 gyajangi1 requested a review from mkilchhofer January 7, 2025 08:07
Co-authored-by: Marco Maurer (-Kilchhofer) <mkilchhofer@users.noreply.github.com>
Signed-off-by: gyajangi1 <Sandeep.Gyajangi@ge.com>
@gyajangi1 gyajangi1 requested a review from mkilchhofer January 7, 2025 08:18
Signed-off-by: Marco Maurer (-Kilchhofer) <mkilchhofer@users.noreply.github.com>
@gyajangi1 gyajangi1 requested a review from mkilchhofer January 7, 2025 08:46
@mkilchhofer
Copy link
Member

Thanks @gyajangi1 for your contribution and your patience 🙏

@mkilchhofer mkilchhofer merged commit 9946d3d into argoproj:main Jan 7, 2025
6 checks passed
mkilchhofer added a commit that referenced this pull request Jan 24, 2025
Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com>
mkilchhofer added a commit that referenced this pull request Jan 24, 2025
Signed-off-by: Marco Maurer <mkilchhofer@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.

5 participants