-
Notifications
You must be signed in to change notification settings - Fork 6
feat: add Argo CD version check and validation in pre-install hook #462
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
base: main
Are you sure you want to change the base?
Conversation
args: | ||
- cf helm validate --values /job_tmp/values.yaml --namespace ${NAMESPACE} --version ${VERSION} --hook --log-level debug | ||
args: | ||
- | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you use VSCode I advise using YAML Embedded Languages languages extension and adding language comment - makes it easier on eyes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's a nice trick. i installed the extension, and added the comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build fails because of the size of the new image. |
Check this out. I use it for this very repo's lifecycle. |
thanks. I'll give it a go |
i switched over to use the semver-cli. on my machine, the image is now 300MB, which seems fine to me.
i suspect this is not directly related to the image size, but maybe to some actual problem we may have in the cluster. |
Enhance the pre-install hook to include a version check for Argo CD. This change introduces environment variables for Argo CD service discovery and version validation, ensuring compatibility with the required version constraint. Additionally, update the Dockerfile to install necessary dependencies for the validation process.
that's a very handy trick, thanks.
Replace the semver command with semver-cli for version validation in the pre-install hook. This change ensures compatibility with the latest versioning standards and improves the reliability of version checks.
Updated the golang base image to version 1.24.2 and added 'jq' to the apt-get install command to support JSON processing in subsequent scripts. This ensures compatibility and enhances functionality.
Refactor the Argo CD version check in the pre-install hook to include additional validation functions. This change introduces a more robust method for fetching and validating the Argo CD service information and version, ensuring compliance with specified version constraints. The configuration options for the version check have also been streamlined in the values.yaml file.
f78a7d3
to
2409cb0
Compare
/e2e |
/e2e |
1 similar comment
/e2e |
make sure argo-cd is >=2.12 and <3
What
Why
Notes