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

Ability to overwrite an existing manifest #1282

Closed

Conversation

dims
Copy link

@dims dims commented Aug 9, 2018

- What I did

Sometimes amend is not enough, especially when --purge was
not used during manifest push command. And since we don't have a
manifest delete either to clean up. So just adding an --overwrite
seems like a good thought.

- How I did it

Added a --overwrite in command/manifest/create_list.go

- How to verify it

create and push a manifest, then try to create the same manifest with --overwrite. It used to fail before, with this new option, it should succeed.

- Description for the changelog

Ability to overwrite an existing manifest in docker manifest create

- A picture of a cute animal (not mandatory but encouraged)

@GordonTheTurtle
Copy link

Please sign your commits following these rules:
/~https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ git clone -b "ability-to-overwrite-an-existing-manifest" git@github.com:dims/cli.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

Sometimes amend is not enough, especially when `--purge` was
not used during `manifest push` command. And since we don't have a
`manifest delete` either to clean up. So just adding an `--overwrite`
seems like a good thought.

Change-Id: I473952ae434f421b6345c28db5cfdfcc49614710
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
@dims dims force-pushed the ability-to-overwrite-an-existing-manifest branch from 52c7a52 to b3d79ef Compare August 9, 2018 15:11
@codecov-io
Copy link

Codecov Report

Merging #1282 into master will decrease coverage by <.01%.
The diff coverage is 40%.

@@            Coverage Diff             @@
##           master    #1282      +/-   ##
==========================================
- Coverage   54.29%   54.29%   -0.01%     
==========================================
  Files         268      268              
  Lines       17855    17859       +4     
==========================================
+ Hits         9695     9696       +1     
- Misses       7550     7551       +1     
- Partials      610      612       +2

@olljanat
Copy link
Contributor

@vdemeester can you looks this one? Would be good to have this in-place before merging #1355

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