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

fix: use the id property instead of name for read ilm tier #579

Merged
merged 3 commits into from
Aug 12, 2024

Conversation

s-vitaliy
Copy link
Collaborator

Description

When terraform performs an import of a resource only the id property is available in the provider context. But the minio_ilm_tier resource uses the name property to get the tier from MinIO api (which is empty) and import of the ilm tier fails.

This PR implements the following changes:

  • Use the id context property instead of name for reading the minio_ilm_tier resource

Reference

Resolves #578

s-vitaliy and others added 3 commits August 12, 2024 16:23
This is needed due to a foundational change in Docker Compose CLI.
This is needed due to a change in Docker Compose CLI.
Copy link
Collaborator

@felladrin felladrin left a comment

Choose a reason for hiding this comment

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

That's great!

I took the chance to fix the "docker compose" issue directly in this PR, to save us time.

@felladrin felladrin merged commit b060c12 into aminueza:main Aug 12, 2024
2 checks passed
@s-vitaliy s-vitaliy deleted the fix-remote-tier-import branch August 12, 2024 18:40
kireque referenced this pull request in kireque/home-ops Aug 13, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [minio](https://registry.terraform.io/providers/aminueza/minio)
([source](https://togithub.com/aminueza/terraform-provider-minio)) |
required_provider | patch | `2.4.2` -> `2.4.3` |

---

### Release Notes

<details>
<summary>aminueza/terraform-provider-minio (minio)</summary>

###
[`v2.4.3`](https://togithub.com/aminueza/terraform-provider-minio/releases/tag/v2.4.3)

[Compare
Source](https://togithub.com/aminueza/terraform-provider-minio/compare/v2.4.2...v2.4.3)

#### What's Changed

- fix: use the id property instead of name for read ilm tier by
[@&#8203;s-vitaliy](https://togithub.com/s-vitaliy) in
[https://github.com/aminueza/terraform-provider-minio/pull/579](https://togithub.com/aminueza/terraform-provider-minio/pull/579)

**Full Changelog**:
aminueza/terraform-provider-minio@v2.4.2...v2.4.3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNS4yIiwidXBkYXRlZEluVmVyIjoiMzguMjUuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUvdGVycmFmb3JtIiwidHlwZS9wYXRjaCJdfQ==-->

Co-authored-by: kireque-bot[bot] <143391978+kireque-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import minio_ilm_tier resource
2 participants