You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLOUDP-295785 - add skip_if_exists flag to all releasable images (#528)
# Summary
This PR configures all image release tasks to first check if image
already exists and prevent overriding them.
## Proof of Work
`skip_if_exists` is already configured for `version-upgrade-hook` and
`readiness-probe` tasks and works. I've also added possibility to add
`skip_if_exists` through `pipeline.py` args and tested it:
>scripts/dev/run_python.sh scripts/release/pipeline.py agent
--build-scenario patch --current-agents --skip-if-exists=True
>...
>Build configuration:
ImageBuildConfiguration(scenario=<BuildScenario.PATCH: 'patch'>,
version=None, latest_tag=False, olm_tag=False,
registries=['268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb-agent'],
dockerfile_path='docker/mongodb-agent/Dockerfile',
platforms=['linux/amd64'], sign=False, **skip_if_exists=True**,
parallel=False, parallel_factor=0, all_agents=False,
currently_used_agents=True)
## Checklist
- [ ] Have you linked a jira ticket and/or is the ticket in the title?
- [ ] Have you checked whether your jira ticket required DOCSP changes?
- [ ] Have you added changelog file?
- use `skip-changelog` label if not needed
- refer to [Changelog files and Release
Notes](https://github.com/mongodb/mongodb-kubernetes/blob/master/CONTRIBUTING.md#changelog-files-and-release-notes)
section in CONTRIBUTING.md for more details
0 commit comments