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

overwrite images #58

Merged
merged 4 commits into from
Nov 7, 2022

Conversation

wolfganghuse
Copy link
Contributor

What this PR does / why we need it:
Add force_deregister which will replace an existing destination image with the same name. The existing image will only be deleted if there is exactly one image with that name in PrismCentral

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
#35

How Has This Been Tested?:
make dev
Run packer build with no existing destination image, exactly one image and multiple images existing.
Special notes for your reviewer:

Release note:

add `force_deregister` to enable overwrite of existing destination images

@wolfganghuse wolfganghuse added the enhancement New feature or request label Sep 26, 2022
builder/nutanix/config.go Outdated Show resolved Hide resolved
builder/nutanix/driver.go Outdated Show resolved Hide resolved
builder/nutanix/driver.go Outdated Show resolved Hide resolved
builder/nutanix/driver.go Outdated Show resolved Hide resolved
builder/nutanix/driver.go Outdated Show resolved Hide resolved
@wolfganghuse wolfganghuse force-pushed the #35-overwrite-images branch 2 times, most recently from c84558f to 2aefa52 Compare September 27, 2022 12:17
builder/nutanix/driver.go Outdated Show resolved Hide resolved
example/source.nutanix.pkr.hcl Outdated Show resolved Hide resolved
@tuxtof tuxtof linked an issue Sep 27, 2022 that may be closed by this pull request
@tuxtof tuxtof changed the title #35 overwrite images overwrite images Sep 27, 2022
tuxtof
tuxtof previously approved these changes Nov 7, 2022
@tuxtof tuxtof merged commit 8e24259 into nutanix-cloud-native:main Nov 7, 2022
wolfganghuse added a commit to wolfganghuse/packer-plugin-nutanix that referenced this pull request Nov 7, 2022
* Update config.go (nutanix-cloud-native#63)

* fix cve (nutanix-cloud-native#64)

Co-authored-by: Christophe Jauffret <[email protected]>

* Bump aquasecurity/trivy-action from 0.7.1 to 0.8.0 (nutanix-cloud-native#66)

Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.7.1 to 0.8.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](aquasecurity/trivy-action@0.7.1...0.8.0)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump github.com/hashicorp/hcl/v2 from 2.14.0 to 2.14.1 (nutanix-cloud-native#60)

Bumps [github.com/hashicorp/hcl/v2](https://github.com/hashicorp/hcl) from 2.14.0 to 2.14.1.
- [Release notes](https://github.com/hashicorp/hcl/releases)
- [Changelog](https://github.com/hashicorp/hcl/blob/main/CHANGELOG.md)
- [Commits](hashicorp/hcl@v2.14.0...v2.14.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcl/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* adding force_deregister (nutanix-cloud-native#58)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: lomeroe <[email protected]>
Co-authored-by: Christophe Jauffret <[email protected]>
Co-authored-by: Christophe Jauffret <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
tuxtof added a commit that referenced this pull request Nov 18, 2022
* adding force_deregister

* add-source-image-url

* implement source image uri

* merge main (#1)

* Update config.go (#63)

* fix cve (#64)

Co-authored-by: Christophe Jauffret <[email protected]>

* Bump aquasecurity/trivy-action from 0.7.1 to 0.8.0 (#66)

Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.7.1 to 0.8.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](aquasecurity/trivy-action@0.7.1...0.8.0)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump github.com/hashicorp/hcl/v2 from 2.14.0 to 2.14.1 (#60)

Bumps [github.com/hashicorp/hcl/v2](https://github.com/hashicorp/hcl) from 2.14.0 to 2.14.1.
- [Release notes](https://github.com/hashicorp/hcl/releases)
- [Changelog](https://github.com/hashicorp/hcl/blob/main/CHANGELOG.md)
- [Commits](hashicorp/hcl@v2.14.0...v2.14.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcl/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* adding force_deregister (#58)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: lomeroe <[email protected]>
Co-authored-by: Christophe Jauffret <[email protected]>
Co-authored-by: Christophe Jauffret <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: lomeroe <[email protected]>
Co-authored-by: Christophe Jauffret <[email protected]>
Co-authored-by: Christophe Jauffret <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to Overwrite Images
2 participants