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-workflows): Add global tag #1377

Merged
merged 4 commits into from
Jul 27, 2022

Conversation

yu-croco
Copy link
Collaborator

@yu-croco yu-croco commented Jul 19, 2022

I added .Values.images.tag 🙋


Signed-off-by: yu-croco yuki.kita22@gmail.com

Note on DCO:

If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.

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

Changes are automatically published when merged to main. They are not published on branches.

Signed-off-by: yu-croco <yuki.kita22@gmail.com>
version: 0.16.7
version: 0.17.0
Copy link
Collaborator Author

@yu-croco yu-croco Jul 19, 2022

Choose a reason for hiding this comment

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

I upgraded minor version because I removed .Values.images (it has at least breaking change).
I am wondering if I should keep .Values.images as deprecated or add some notes on README like argo-cd upgrading guide... 🤔

# -- Overrides the global Argo Workflows image tag whose default is the chart appVersion
tag: ""
# -- If defined, a imagePullPolicy applied to all Argo Workflows deployments
pullPolicy: IfNotPresent
Copy link
Collaborator Author

@yu-croco yu-croco Jul 19, 2022

Choose a reason for hiding this comment

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

I think IfNotPresent is better than Always, like argo-cd ? 🤔

@yu-croco yu-croco marked this pull request as ready for review July 19, 2022 06:44
@vladlosev
Copy link
Collaborator

This change will break setups for many users who rely on the values in question. They will suddenly find that they are running a different (possibly, very different) version of Argo Workflows. This is a big price to pay, but the value of the improvement it is buying is questionable.

@yu-croco
Copy link
Collaborator Author

yu-croco commented Jul 22, 2022

@vladlosev
Thank you for your opinion! I agree with it.

Keeping .Values.images as deprecated would be tough (at least some breaking change would happen), so I stop moving them to global.image .
Instead, may I just add tag on .Values.images.tag ? 👀
At a minimum, what I would like to improve is to add tag attribute as globally.

@vladlosev
Copy link
Collaborator

.Values.images.tag as another default will not be a breaking change and work fine.

@yu-croco yu-croco force-pushed the set-global-params branch from a4a452e to 7cb211f Compare July 22, 2022 01:06
@yu-croco yu-croco changed the title feat(argo-workflows): Moved .Values.images values to global feat(argo-workflows): Add global tag Jul 22, 2022
@yu-croco yu-croco marked this pull request as draft July 22, 2022 01:07
This reverts commit 67b4294.
Signed-off-by: yu-croco <yuki.kita22@gmail.com>
@yu-croco yu-croco force-pushed the set-global-params branch from 7cb211f to 15fa37f Compare July 22, 2022 01:12
@yu-croco yu-croco marked this pull request as ready for review July 22, 2022 01:27
@yu-croco
Copy link
Collaborator Author

yu-croco commented Jul 22, 2022

@vladlosev

.Values.images.tag as another default will not be a breaking change and work fine.

Thank you! I reverted breaking changes and just added .Values.images.tag. 🙋

Copy link
Collaborator

@vladlosev vladlosev left a comment

Choose a reason for hiding this comment

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

The code changes look fine, but I suggest slightly different wordings in the documentation, for clarity.

@@ -45,6 +45,7 @@ Fields to note:
| fullnameOverride | string | `nil` | String to fully override "argo-workflows.fullname" template |
| images.pullPolicy | string | `"Always"` | imagePullPolicy to apply to all containers |
| images.pullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry |
| images.tag | string | `""` | Overrides the global Argo Workflows image tag whose default is the chart appVersion |
Copy link
Collaborator

Choose a reason for hiding this comment

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

Common tag for Argo Workflows images. Defaults to .Chart.AppVersion..

@@ -73,7 +74,7 @@ Fields to note:
| controller.extraEnv | list | `[]` | Extra environment variables to provide to the controller container |
| controller.image.registry | string | `"quay.io"` | Registry to use for the controller |
| controller.image.repository | string | `"argoproj/workflow-controller"` | Registry to use for the controller |
| controller.image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
| controller.image.tag | string | `""` | Overrides the image tag whose default is `images.tag`. |
Copy link
Collaborator

Choose a reason for hiding this comment

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

Image tag for the workflow controller. Defaults to .Values.images.tag.

@@ -143,7 +144,7 @@ Fields to note:
| executor.env | object | `{}` | Adds environment variables for the executor. |
| executor.image.registry | string | `"quay.io"` | Registry to use for the Workflow Executors |
| executor.image.repository | string | `"argoproj/argoexec"` | Repository to use for the Workflow Executors |
| executor.image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
| executor.image.tag | string | `""` | Overrides the image tag whose default is `images.tag`. |
Copy link
Collaborator

Choose a reason for hiding this comment

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

Image tag for the workflow executor. Defaults to .Values.images.tag.

@@ -162,7 +163,7 @@ Fields to note:
| server.extraEnv | list | `[]` | Extra environment variables to provide to the argo-server container |
| server.image.registry | string | `"quay.io"` | Registry to use for the server |
| server.image.repository | string | `"argoproj/argocli"` | Repository to use for the server |
| server.image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
| server.image.tag | string | `""` | Overrides the image tag whose default is `images.tag`. |
Copy link
Collaborator

Choose a reason for hiding this comment

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

Image tag for the Argo Workflows server. Defaults to .Values.images.tag.

Signed-off-by: yu-croco <yuki.kita22@gmail.com>
@yu-croco yu-croco force-pushed the set-global-params branch from c8d6e82 to 281933f Compare July 26, 2022 00:24
@yu-croco
Copy link
Collaborator Author

@vladlosev
Thank you for reviewing! I fixed them. 🙋

Copy link
Collaborator

@vladlosev vladlosev left a comment

Choose a reason for hiding this comment

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

LGTM

@yu-croco
Copy link
Collaborator Author

Thank you for reviewing!

@yu-croco yu-croco merged commit 334d8ae into argoproj:main Jul 27, 2022
terrych0u pushed a commit to terrych0u/argo-helm that referenced this pull request Aug 4, 2022
* feat(argo-workflows): Moved `.Values.images` values to global
Signed-off-by: yu-croco <yuki.kita22@gmail.com>

* Revert "feat(argo-workflows): Moved `.Values.images` values to global"
This reverts commit 67b4294.
Signed-off-by: yu-croco <yuki.kita22@gmail.com>

* feat(argo-workflows): Add global tag
Signed-off-by: yu-croco <yuki.kita22@gmail.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.

2 participants